From: Andrew Cagney <ac131313@cygnus.com>
To: gdb@sources.redhat.com
Cc: "Frank Ch. Eigler" <fche@redhat.com>
Subject: Re: A copy/save command ...
Date: Fri, 08 Feb 2002 13:55:00 -0000 [thread overview]
Message-ID: <3C644931.6050401@cygnus.com> (raw)
In-Reply-To: <o5sn948npy.fsf@tooth.toronto.redhat.com>
> cagney wrote:
>
>
>> [...]
>> The next was a more explicit save / unload / ... Michael's added
>> ``generate-core-file'' following following on from that my next guess
>> is to change that command to:
>> (gdb) generate core-file <file>
>> and then also add things like:
>> (gdb) generate <target> <file> <arguments/sections>
>> for instance:
>> (gdb) generate binary afile <address> <address> ...
>> [...]
>
>
> That looks good. (Please consider "dump" or "emit" or "unload" or
> "save" (yes, asking the tracepoint save function to be renamed) or
> something instead of "generate" as the verb though.)
Renameing ``save-tracepoints'' is possible using the deprecate command
mechanism. But perhaphs ``save'' should be reserved for GDB things.
``unload'' reminds me too much of shared libraries. But close to that
is ``upload'' as suggested in the earlier thread the other is ``dump''.
I show both below:
upload value <file> <expression>
dump value <file> <expression>
write the TARGET value of
<expression> as a sequence
of bytes.
upload memory <file> <start> <length>
dump memory <file> <start> <length>
write memory from <start> to
<start>+<length>-1 as bytes.
While:
(*(char*)START)@LENGTH
is equvalent this would be
more efficient.
upload core <file>
dump core <file>
Hmm, the latter parses well.
With the option:
/a append to file
(assuming I can get it to work and where applicable :-).
As for creating files in different formats objcopy can be used but that
certainly doesn't preclude extra options being added.
Example:
shell rm goo
upload value/a goo (uint32) 0xdeadbeef
upload value/a goo (uint8) 2
upload value/a goo (uint8) 3
would write:
BE: de ad be ef 02 03
LE: ef be ad de 02 03
to a file.
thoughts?
Andrew
next prev parent reply other threads:[~2002-02-08 21:55 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
[not found] <1010165997.16220.ezmlm@sources.redhat.com>
2002-01-04 12:03 ` Edward Swarthout
2002-01-04 12:48 ` Andrew Cagney
2002-01-04 13:18 ` Edward Swarthout
2002-01-04 14:14 ` Michael Snyder
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=3C644931.6050401@cygnus.com \
--to=ac131313@cygnus.com \
--cc=fche@redhat.com \
--cc=gdb@sources.redhat.com \
/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