[BACK]Return to bsd-kvm.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / gpl3 / gdb / dist / gdb

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/external/gpl3/gdb/dist/gdb/bsd-kvm.c between version 1.1 and 1.2

version 1.1, 2011/09/24 20:09:26 version 1.2, 2011/09/25 16:30:24
Line 222  bsd_kvm_fetch_registers (struct target_o
Line 222  bsd_kvm_fetch_registers (struct target_o
       return;        return;
     }      }
   
   #if 1 /* TODO: HAVE_STRUCT_LWP_L_ADDR */
     memset (nl, 0, sizeof nl);
     nl[0].n_name = "_lwp0";
   
     if (kvm_nlist (core_kd, nl) == -1)
       error (("%s"), kvm_geterr (core_kd));
   
     if (nl[0].n_value != 0)
       {
         struct pcb *paddr;
   
         /* Found lwp0.  */
         nl[0].n_value += offsetof (struct lwp, l_addr);
         if (kvm_read (core_kd, nl[0].n_value, &paddr, sizeof paddr) == -1)
           error (("%s"), kvm_geterr (core_kd));
   
         bsd_kvm_fetch_pcb (paddr);
         return;
       }
   #endif
   
 #ifdef HAVE_STRUCT_THREAD_TD_PCB  #ifdef HAVE_STRUCT_THREAD_TD_PCB
   /* In FreeBSD kernels for 5.0-RELEASE and later, the PCB no longer    /* In FreeBSD kernels for 5.0-RELEASE and later, the PCB no longer
      lives in `struct proc' but in `struct thread'.  The `struct       lives in `struct proc' but in `struct thread'.  The `struct

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb <webmaster@jp.NetBSD.org>