Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* corelow.c
@ 2001-09-14 19:24 Paul Sulistio
  2001-09-14 19:31 ` corelow.c Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Sulistio @ 2001-09-14 19:24 UTC (permalink / raw)
  To: gdb

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.

Thanks,
-paul

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: corelow.c
  2001-09-14 19:24 corelow.c Paul Sulistio
@ 2001-09-14 19:31 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2001-09-14 19:31 UTC (permalink / raw)
  To: Paul Sulistio; +Cc: gdb

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-14 19:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-14 19:24 corelow.c Paul Sulistio
2001-09-14 19:31 ` corelow.c Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox