diff options
author | Tom Tromey <tromey@redhat.com> | 2012-11-13 21:19:11 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-11-13 21:19:11 +0000 |
commit | 62747a60cb791459a9431d3f5f49ddec771084b8 (patch) | |
tree | 4a3cc5574877f44996b3dfad6ec8629a81a269a1 /gdb/doc | |
parent | 4cd29721179a29be4f31798c5860d0964130b78c (diff) | |
download | gdb-62747a60cb791459a9431d3f5f49ddec771084b8.zip gdb-62747a60cb791459a9431d3f5f49ddec771084b8.tar.gz gdb-62747a60cb791459a9431d3f5f49ddec771084b8.tar.bz2 |
2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
* mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
parameter COUNT, for pattern filling of memory regions.
* NEWS: Mention it.
doc
* gdb.texinfo (GDB/MI Data Manipulation): Document new optional
parameter "count" of -data-write-memory-bytes, and add an example.
testsuite
* gdb.mi/mi-fill-memory.exp: New test.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 0410dbc..dc0ca89 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com> + + * gdb.texinfo (GDB/MI Data Manipulation): Document new optional + parameter "count" of -data-write-memory-bytes, and add an example. + 2012-11-12 Tom Tromey <tromey@redhat.com> * gdb.texinfo (Symbols): Document "info type-printers", diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 86cfe8e..f45b65e 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -31443,6 +31443,7 @@ The corresponding @value{GDBN} command is @samp{x}. @smallexample -data-write-memory-bytes @var{address} @var{contents} + -data-write-memory-bytes @var{address} @var{contents} @r{[}@var{count}@r{]} @end smallexample @noindent @@ -31457,6 +31458,11 @@ quoted using the C convention. @item @var{contents} The hex-encoded bytes to write. +@item @var{count} +Optional argument indicating the number of bytes to be written. If @var{count} +is greater than @var{contents}' length, @value{GDBN} will repeatedly +write @var{contents} until it fills @var{count} bytes. + @end table @subsubheading @value{GDBN} Command @@ -31472,6 +31478,12 @@ There's no corresponding @value{GDBN} command. (gdb) @end smallexample +@smallexample +(gdb) +-data-write-memory-bytes &a "aabbccdd" 16e +^done +(gdb) +@end smallexample @c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @node GDB/MI Tracepoint Commands |