Print this page
27908 ::gcore breaks sparc build

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libproc/common/Pservice.c
          +++ new/usr/src/lib/libproc/common/Pservice.c
↓ open down ↓ 168 lines elided ↑ open up ↑
 169  169  
 170  170  #if defined(sparc) || defined(__sparc)
 171  171  
 172  172  ps_err_e
 173  173  ps_lgetxregsize(struct ps_prochandle *P, lwpid_t lwpid, int *xrsize)
 174  174  {
 175  175          char fname[PATH_MAX];
 176  176          struct stat statb;
 177  177  
 178  178          if (P->state == PS_DEAD) {
 179      -                lwp_info_t *lwp = list_next(&P->core->core_lwp_head);
      179 +                core_info_t *core = P->data;
      180 +                lwp_info_t *lwp = list_next(&core->core_lwp_head);
 180  181                  uint_t i;
 181  182  
 182      -                for (i = 0; i < P->core->core_nlwp; i++, lwp = list_next(lwp)) {
      183 +                for (i = 0; i < core->core_nlwp; i++, lwp = list_next(lwp)) {
 183  184                          if (lwp->lwp_id == lwpid) {
 184  185                                  if (lwp->lwp_xregs != NULL)
 185  186                                          *xrsize = sizeof (prxregset_t);
 186  187                                  else
 187  188                                          *xrsize = 0;
 188  189                                  return (PS_OK);
 189  190                          }
 190  191                  }
 191  192  
 192  193                  return (PS_BADLID);
↓ open down ↓ 186 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX