[Fwd: gcore for netbsd]

Love lha@stacken.kth.se
Tue Aug 6 10:39:00 GMT 2002


Andrew Cagney <ac131313@ges.redhat.com> writes:

> I've checked the attached in (first bit :-).
> 
> Andrew
> 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
> 
> 	* gcore.c: Do not include <sys/procfs.h>.
> 	* Makefile.in (gcore.o): Update dependencies.

Thanks,

There are three pieces of code left then. The memory dumper
(nbsd_find_memory_regions), the corefile elf-note writer
(nbsd_make_corefile_notes) and a optimation (start to use PT_IO).

The first patch is somewhat iffy since I've not yet commited the ptrace
PT_MEMMAP interface to netbsd what will make it work.

I think I need some help where I should put the stuff right now I've put
all in nbsd-nat.c, but I'm not sure that the elf-note stuff should live
there. Dump core-file from a netbsd machine over gdbserver ?

Also, should I just add #ifdef PT_IO and use that if it exists. Using PT_IO
is about 7-10 times faster the using PT_READ_[ID], make large diffrence
when writing large core-files.

The patches are in http://www.e.kth.se/~lha/patches/netbsd/gdb-core/

Also, do I need to do dead tree work ?

Love



More information about the Gdb-patches mailing list