This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: linux core support
- To: Hiro Sugawara <hsugawar at brocade dot com>
- Subject: Re: linux core support
- From: more <morezeng at certaingroup dot com>
- Date: Wed, 27 Jun 2001 10:13:11 +0800
- Cc: gdb at sources dot redhat dot com
- Organization: certaingroup
- References: <F13508319A1CD41187DE00508BACED6A02067390@cs2ex.brocade.com>
Greatly thanks for your help, I will manage to do that.
> > 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