gdb/NEWS | 2 ++ gdb/doc/gdb.texinfo | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletions(-) diff --git a/gdb/NEWS b/gdb/NEWS index abd0932..f32e51e 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -57,6 +57,8 @@ py [command] using new async records "=tsv-created" and "=tsv-deleted". ** The start and stop of process record are now notified using new async record "=record-started" and "=record-stopped". + ** New optional parameter added to the "-data-write-memory-bytes" command, + to allow pattern filling of memory areas. *** Changes in GDB 7.5 diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 5fcbada..13fc63f 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -31192,7 +31192,7 @@ The corresponding @value{GDBN} command is @samp{x}. @subsubheading Synopsis @smallexample - -data-write-memory-bytes @var{address} @var{contents} + -data-write-memory-bytes @var{address} @var{contents} @r{[}@var{count}@r{]} @end smallexample @noindent @@ -31207,6 +31207,9 @@ 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 bigger than @var{contents}' length, pattern filling occurs. + @end table @subsubheading @value{GDBN} Command @@ -31222,6 +31225,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