Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* A copy/save command ...
@ 2002-01-03  1:02 Andrew Cagney
  2002-01-03 12:58 ` Daniel Jacobowitz
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Andrew Cagney @ 2002-01-03  1:02 UTC (permalink / raw)
  To: gdb

Hello,

To toss out an idea.  One of those oft mentioned missing features is a 
command to read/write binary data to/from GDB's target memory.  There is 
the load command, but that works on object files (readable via BFD).

Anyway, I've two vague thoughts on the syntax/semantics:

1. (gdb) copy <expression> <file>

The result of <expression> is written to the raw file.  This expoits the 
fact that GDB stores an expression in target form in host memory. 
Consequently, the copy command just writes that raw data to the file.


2. (gdb) copy <address> <length> <file>
or (gdb) copy/<length> <address> <file>

or similar.  A more traditional <address>/<length> approach. 
``copy/<length>'' comes from ``x/<length>''.


better suggestions welcome.

enjoy,
Andrew


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

end of thread, other threads:[~2002-02-23 18:24 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1010165997.16220.ezmlm@sources.redhat.com>
2002-01-04 12:03 ` A copy/save command Edward Swarthout
2002-01-04 12:48   ` Andrew Cagney
2002-01-04 13:18     ` Edward Swarthout
2002-01-04 14:14   ` Michael Snyder
2002-01-03  1:02 Andrew Cagney
2002-01-03 12:58 ` Daniel Jacobowitz
2002-01-03 20:29   ` Andrew Cagney
2002-01-04  9:39     ` Frank Ch. Eigler
2002-01-04 11:54       ` Daniel Jacobowitz
2002-01-04 12:57       ` Andrew Cagney
2002-01-04 13:02         ` Frank Ch. Eigler
2002-01-04 13:24           ` Andrew Cagney
2002-01-04 14:12       ` Michael Snyder
2002-01-04 14:48         ` Grant Edwards
2002-01-04 14:10 ` Michael Snyder
2002-01-17 16:27 ` Andrew Cagney
2002-01-17 17:14   ` Frank Ch. Eigler
2002-02-08 13:55     ` Andrew Cagney
2002-02-23 10:24       ` Andrew Cagney
2002-01-17 17:29   ` Vlasios Tsiatsis
2002-02-08 13:24     ` Andrew Cagney
2002-01-17 23:20   ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox