This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: -symbol gdb option
- From: "William A. Gatliff" <bgat at billgatliff dot com>
- To: Squal <pmarty at enssat dot fr>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 27 Aug 2002 09:40:34 -0500
- Subject: Re: -symbol gdb option
- References: <3D6B8FCE.4FC38D8A@enssat.fr>
- Reply-to: bgat at billgatliff dot com
Pascal:
What is the command line you're giving to gcc/ld? You should let gcc
write to its default output format (generally ELF or COFF), then
convert that file to S Records if you need to using objcopy.
Gdb will be very happy with the ELF or COFF file.
b.g.
On Tue, Aug 27, 2002 at 04:42:22PM +0200, Squal wrote:
> Hi,
>
> I'm using gdb to debug programs in a 68010 remote target.
> The format of the executable file is s-record so, I can't
> reach the symbol table (s-record format doesn't include
> this kind of informations).
> I tried to specify the map file genered by gcc during the
> compilation like the default symbol file with -s option
> but the map file format is not gdb compliant.
>
> I would like to know which file format can I use to specify
> a symbol file with -s option to gdb. And if it's possible
> which file format should I use with the -s option (map or others).
>
> Thanks and regards
>
> Pascal Marty
--
Bill Gatliff
bgat@billgatliff.com