From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Jacobowitz To: Paul Sulistio Cc: gdb@sources.redhat.com Subject: Re: corelow.c Date: Fri, 14 Sep 2001 19:31:00 -0000 Message-id: <20010914223304.A1535@nevyn.them.org> References: X-SW-Source: 2001-09/msg00128.html On Sat, Sep 15, 2001 at 02:24:40AM +0000, Paul Sulistio wrote: > Hi, > > I am porting info threads capabilities from FreeBSd to NetBSD 1.4.1 (not > support info thread) on i386 machine using gdb4.18 I am successfully ported > this but only when debugging the running threads. > When I tried to debug the core dump, i have problem > ---------------------------------------------------- > in corelow.c > > -add_to_thread_list () > if(strncmp(bfd_section_name(abfd,asect),".reg/",5)!=0) > return; > > when i extract the value of (asect)->name always gives me .stack > or .data instead of .reg/ > > Does anyone know why I get .stack and .data instead of .reg or .reg/ ? > > Any help would be greatly appreciated. You'll need to make BFD generate the .reg/ pseudosections for your core dumps. Look at bfd/elf.c for how ELF targets generally do this; I don't know what core format NetBSD or FreeBSD uses. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer