public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] gdb and binary core files
@ 2001-08-22  1:30 Andrew Lunn
  2001-08-22  8:43 ` Grant Edwards
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 2001-08-22  1:30 UTC (permalink / raw)
  To: eCos Disuss

Hi Folks

Im trying to do something along the lines of a core dump for eCos. I
just want something realy simple. In my setup its easy for me to get a
complete copy of the DRAM contents onto my host system. I then have to
get gdb to use this data. By default arm-elf-gdb does not seem to
support core files. Not a good start. Also, it does not seem possible
to specify the format of the core file. You can use "set gnutarget" to
set the BFD format, but that seems to apply to everything. I want gdb
to use elf for my executable, and binary for my core file. 

Does anyone have any ideas or pointers?

        Thanks
                Andrew

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] gdb and binary core files
  2001-08-22  1:30 [ECOS] gdb and binary core files Andrew Lunn
@ 2001-08-22  8:43 ` Grant Edwards
  2001-08-22  8:45   ` Grant Edwards
  0 siblings, 1 reply; 3+ messages in thread
From: Grant Edwards @ 2001-08-22  8:43 UTC (permalink / raw)
  To: eCos Disuss

On Wed, Aug 22, 2001 at 10:30:30AM +0200, Andrew Lunn wrote:

> Im trying to do something along the lines of a core dump for eCos. I
> just want something realy simple. In my setup its easy for me to get a
> complete copy of the DRAM contents onto my host system. I then have to
> get gdb to use this data. By default arm-elf-gdb does not seem to
> support core files. Not a good start. Also, it does not seem possible
> to specify the format of the core file. You can use "set gnutarget" to
> set the BFD format, but that seems to apply to everything. I want gdb
> to use elf for my executable, and binary for my core file.

Sometime within the past couple years, somebody posted a patch
to the gdb mailing list that allowed you to dump a region of
memory to file (I don't remember the format, but I think it was
something understood by objcopy).

> Does anyone have any ideas or pointers?

It sure would be handy if gdb could dump chunks of memory to
disk.  Over the past couple years I've spent hours cutting and
pasting between xterms in order to run chunks of target memory
through post-mortem tools.

I'm sure it would have taken all of about half a day to add a
"dump-region" command to gdb and do it right.  One of these
days...

-- 
Grant Edwards
grante@visi.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] gdb and binary core files
  2001-08-22  8:43 ` Grant Edwards
@ 2001-08-22  8:45   ` Grant Edwards
  0 siblings, 0 replies; 3+ messages in thread
From: Grant Edwards @ 2001-08-22  8:45 UTC (permalink / raw)
  To: eCos Disuss

On Wed, Aug 22, 2001 at 10:45:38AM -0500, Grant Edwards wrote:
> On Wed, Aug 22, 2001 at 10:30:30AM +0200, Andrew Lunn wrote:
> 
> > Im trying to do something along the lines of a core dump for eCos. I
> > just want something realy simple. In my setup its easy for me to get a
> > complete copy of the DRAM contents onto my host system. I then have to
> > get gdb to use this data. By default arm-elf-gdb does not seem to
> > support core files. Not a good start. Also, it does not seem possible
> > to specify the format of the core file. You can use "set gnutarget" to
> > set the BFD format, but that seems to apply to everything. I want gdb
> > to use elf for my executable, and binary for my core file.
> 
> Sometime within the past couple years, somebody posted a patch
> to the gdb mailing list that allowed you to dump a region of
> memory to file (I don't remember the format, but I think it was
> something understood by objcopy).

I think I misunderstood -- you want to go the _other_ direction!

-- 
Grant Edwards
grante@visi.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-08-22  8:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-22  1:30 [ECOS] gdb and binary core files Andrew Lunn
2001-08-22  8:43 ` Grant Edwards
2001-08-22  8:45   ` Grant Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).