This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: corelow.c
- To: Paul Sulistio <psulistio at hotmail dot com>
- Subject: Re: corelow.c
- From: Daniel Jacobowitz <drow at mvista dot com>
- Date: Fri, 14 Sep 2001 22:33:04 -0400
- Cc: gdb at sources dot redhat dot com
- References: <F159DLnuAdmdFcOvZFL000102fa@hotmail.com>
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