bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: core file writing


From: Jon Arney
Subject: Re: core file writing
Date: Wed, 13 Mar 2002 09:10:25 -0700

Roland:

> I checked in the fix for that stupid libc bug (d'oh!).
No problem.  Just glad I could help in some small way.

> As to gdb, did you test the gdb "gcore" command?  Your patch didn't include
> any changes to the gnu_find_memory_regions function, but you also didn't
> say that it works.  Since that part of the code works independent of the
> new note formats, I would like to get it folded into gdb asap.

I hadn't had time to really test it.  I just ran 'generate-core-file'
from
GDB today though and did manage to create a core using your code, so the
'find_memory_regions' seems to work ok.  In order to get it to generate
a core file, though, you need to fill in a notes section by giving GDB
a notes section hook:

  gnu_ops.to_make_corefile_notes = gnu_to_make_corefile_notes;

I dummied up one for now and thought I would wait for your thinking on
notes formats to solidify before adding "real" code there, but whatever
note format is used in 'crash' should also go here.

> The i386-specific code will go into i386gnu-nat.c, not gnu-nat.c (but don't
> worry about that right now).
D'oh.

Let me know if there are any other ways in which I can help on the
project.

Jonathan S. Arney
Software Engineer
jarney1@cox.net
------------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]