* -symbol gdb option
@ 2002-08-27 7:37 Squal
2002-08-27 7:40 ` William A. Gatliff
0 siblings, 1 reply; 6+ messages in thread
From: Squal @ 2002-08-27 7:37 UTC (permalink / raw)
To: gdb, pmarty
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: -symbol gdb option
2002-08-27 7:37 -symbol gdb option Squal
@ 2002-08-27 7:40 ` William A. Gatliff
2002-08-27 7:55 ` Squal
0 siblings, 1 reply; 6+ messages in thread
From: William A. Gatliff @ 2002-08-27 7:40 UTC (permalink / raw)
To: Squal; +Cc: gdb
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: -symbol gdb option
2002-08-27 7:40 ` William A. Gatliff
@ 2002-08-27 7:55 ` Squal
2002-08-27 7:58 ` William A. Gatliff
0 siblings, 1 reply; 6+ messages in thread
From: Squal @ 2002-08-27 7:55 UTC (permalink / raw)
To: bgat, gdb
I specify the OUTPUT_FORMAT in the ld file:
OUTPUT_FORMAT ( srec )
William A. Gatliff wrote:
>
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: -symbol gdb option
2002-08-27 7:55 ` Squal
@ 2002-08-27 7:58 ` William A. Gatliff
2002-08-27 8:01 ` Daniel Jacobowitz
0 siblings, 1 reply; 6+ messages in thread
From: William A. Gatliff @ 2002-08-27 7:58 UTC (permalink / raw)
To: Squal; +Cc: bgat, gdb
Pascal:
Yea, you don't want to do that. :^)
Strike that line from your linker command file entirely. Use objdump
(probably m68k-elf-objdump or m68k-coff-objdump in your case) to
translate the linker's default output to srec. Load the default
output into gdb, load the srec file into your chip burner.
HTH,
b.g.
On Tue, Aug 27, 2002 at 05:01:02PM +0200, Squal wrote:
> I specify the OUTPUT_FORMAT in the ld file:
>
> OUTPUT_FORMAT ( srec )
>
> William A. Gatliff wrote:
> >
> > 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
--
Bill Gatliff
bgat@billgatliff.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: -symbol gdb option
2002-08-27 7:58 ` William A. Gatliff
@ 2002-08-27 8:01 ` Daniel Jacobowitz
2002-08-27 8:03 ` William A. Gatliff
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2002-08-27 8:01 UTC (permalink / raw)
To: William A. Gatliff; +Cc: Squal, gdb
On Tue, Aug 27, 2002 at 09:58:53AM -0500, William A. Gatliff wrote:
> Pascal:
>
>
> Yea, you don't want to do that. :^)
>
> Strike that line from your linker command file entirely. Use objdump
> (probably m68k-elf-objdump or m68k-coff-objdump in your case) to
> translate the linker's default output to srec. Load the default
> output into gdb, load the srec file into your chip burner.
... you mean objcopy.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: -symbol gdb option
2002-08-27 8:01 ` Daniel Jacobowitz
@ 2002-08-27 8:03 ` William A. Gatliff
0 siblings, 0 replies; 6+ messages in thread
From: William A. Gatliff @ 2002-08-27 8:03 UTC (permalink / raw)
To: gdb
Daniel:
Er, yea. That's what I meant.
*blush*
:^)
b.g.
On Tue, Aug 27, 2002 at 11:02:54AM -0400, Daniel Jacobowitz wrote:
> On Tue, Aug 27, 2002 at 09:58:53AM -0500, William A. Gatliff wrote:
> > Pascal:
> >
> >
> > Yea, you don't want to do that. :^)
> >
> > Strike that line from your linker command file entirely. Use objdump
> > (probably m68k-elf-objdump or m68k-coff-objdump in your case) to
> > translate the linker's default output to srec. Load the default
> > output into gdb, load the srec file into your chip burner.
>
> ... you mean objcopy.
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
--
Bill Gatliff
bgat@billgatliff.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-08-27 15:03 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-27 7:37 -symbol gdb option Squal
2002-08-27 7:40 ` William A. Gatliff
2002-08-27 7:55 ` Squal
2002-08-27 7:58 ` William A. Gatliff
2002-08-27 8:01 ` Daniel Jacobowitz
2002-08-27 8:03 ` William A. Gatliff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox