From: "William A. Gatliff" <bgat@billgatliff.com>
To: Squal <pmarty@enssat.fr>
Cc: bgat@billgatliff.com, gdb@sources.redhat.com
Subject: Re: -symbol gdb option
Date: Tue, 27 Aug 2002 07:58:00 -0000 [thread overview]
Message-ID: <20020827095853.E23795@saturn.billgatliff.com> (raw)
In-Reply-To: <3D6B942E.C398A4AF@enssat.fr>; from pmarty@enssat.fr on Tue, Aug 27, 2002 at 05:01:02PM +0200
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
next prev parent reply other threads:[~2002-08-27 14:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-27 7:37 Squal
2002-08-27 7:40 ` William A. Gatliff
2002-08-27 7:55 ` Squal
2002-08-27 7:58 ` William A. Gatliff [this message]
2002-08-27 8:01 ` Daniel Jacobowitz
2002-08-27 8:03 ` William A. Gatliff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020827095853.E23795@saturn.billgatliff.com \
--to=bgat@billgatliff.com \
--cc=gdb@sources.redhat.com \
--cc=pmarty@enssat.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox