This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: linux core support
- To: "'more'" <morezeng at certaingroup dot com>
- Subject: RE: linux core support
- From: Hiro Sugawara <hsugawar at brocade dot com>
- Date: Tue, 26 Jun 2001 10:23:23 -0700
- Cc: gdb at sources dot redhat dot com
> -----Original Message-----
> From: more [mailto:morezeng@certaingroup.com]
> Sent: Monday, June 25, 2001 20:35
> To: Hiro Sugawara
> Subject: Re: linux core support
>
>
> Very thanks for your reply, it seems I should modify some
> code to make the
> cross core file supported. But I am not very clear of the
> inner mechanism,
> the blow is my curious problem.
>
> > When I ported GDB for SunOS-to-PowerPC, I found two tricks
> were needed to
> > make the cross GDB support core files:
> > 1) Shuffle Makefile fragments (*.mh and *.mt) so that core
> file support is
> > included;
> In these fragments, there are some objfiles registering, you
> mean I should
> provide my own cross core file supporting file and register
> it in *.mh and
> *.mt?
If the native build already has all the necessary files, reshuffling
is good enough; otherwise, you may have to provide your own.
> > 2) Modify Makefile to use the target's <sys/procfs.h> and
> other related
> > files
> > to compile bfd/elf.c.
> You mean I should read some document concerning elf and core
> file format,
> have you any suggestion?
For ELF and other file formats, check
http://developer.intel.com/vtune/tis.htm.
hiro