Print this page
27908 ::gcore breaks sparc build

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libproc/sparc/Pisadep.c
          +++ new/usr/src/lib/libproc/sparc/Pisadep.c
↓ open down ↓ 179 lines elided ↑ open up ↑
 180  180  
 181  181          return (rv);
 182  182  }
 183  183  
 184  184  static int
 185  185  read_gwin(struct ps_prochandle *P, struct rwindow *rwp, uintptr_t sp)
 186  186  {
 187  187          gwin_query_t gq;
 188  188  
 189  189          if (P->state == PS_DEAD) {
 190      -                lwp_info_t *lwp = list_next(&P->core->core_lwp_head);
      190 +                core_info_t *core = P->data;
      191 +                lwp_info_t *lwp = list_next(&core->core_lwp_head);
 191  192                  uint_t n;
 192  193                  int i;
 193  194  
 194      -                for (n = 0; n < P->core->core_nlwp; n++, lwp = list_next(lwp)) {
      195 +                for (n = 0; n < core->core_nlwp; n++, lwp = list_next(lwp)) {
 195  196                          gwindows_t *gwin = lwp->lwp_gwins;
 196  197  
 197  198                          if (gwin == NULL)
 198  199                                  continue; /* No gwindows for this lwp */
 199  200  
 200  201                          /*
 201  202                           * If this lwp has gwindows associated with it, iterate
 202  203                           * through the buffers looking for a stack pointer
 203  204                           * match; if one is found, copy out the register window.
 204  205                           */
↓ open down ↓ 165 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX