From 62747a60cb791459a9431d3f5f49ddec771084b8 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 13 Nov 2012 21:19:11 +0000 Subject: 2012-11-13 Giuseppe Montalto * 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. --- gdb/doc/ChangeLog | 5 +++++ gdb/doc/gdb.texinfo | 12 ++++++++++++ 2 files changed, 17 insertions(+) (limited to 'gdb/doc') 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 + + * 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 * 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 -- cgit v1.1