Print this page
27908 ::gcore breaks sparc build

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libproc/sparcv9/Pisadep.c
          +++ new/usr/src/lib/libproc/sparcv9/Pisadep.c
↓ open down ↓ 227 lines elided ↑ open up ↑
 228  228  
 229  229          return (rv);
 230  230  }
 231  231  
 232  232  static int
 233  233  read_gwin(struct ps_prochandle *P, struct rwindow *rwp, uintptr_t sp)
 234  234  {
 235  235          gwin_query_t gq;
 236  236  
 237  237          if (P->state == PS_DEAD) {
 238      -                lwp_info_t *lwp = list_next(&P->core->core_lwp_head);
      238 +                core_info_t *core = P->data;
      239 +                lwp_info_t *lwp = list_next(&core->core_lwp_head);
 239  240                  uint_t n;
 240  241                  int i;
 241  242  
 242      -                for (n = 0; n < P->core->core_nlwp; n++, lwp = list_next(lwp)) {
      243 +                for (n = 0; n < core->core_nlwp; n++, lwp = list_next(lwp)) {
 243  244                          gwindows_t *gwin = lwp->lwp_gwins;
 244  245  
 245  246                          if (gwin == NULL)
 246  247                                  continue; /* No gwindows for this lwp */
 247  248  
 248  249                          /*
 249  250                           * If this lwp has gwindows associated with it, iterate
 250  251                           * through the buffers looking for a stack pointer
 251  252                           * match; if one is found, copy out the register window.
 252  253                           */
↓ open down ↓ 246 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX