corelow.c
Daniel Jacobowitz
drow@mvista.com
Fri Sep 14 19:31:00 GMT 2001
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
More information about the Gdb
mailing list