Add a new modifier /c to "disassemble" command to make it output binary code

Eli Zaretskii eliz@gnu.org
Sat Jul 11 12:42:00 GMT 2009


> Date: Sat, 11 Jul 2009 16:46:28 +0800
> From: Hui Zhu <teawater@gmail.com>
> Cc: gdb-patches ml <gdb-patches@sourceware.org>
> 
> @@ -1454,6 +1458,7 @@ With two args if one is empty it stands
>  Disassemble a specified section of memory.\n\
>  Default is the function surrounding the pc of the selected frame.\n\
>  With a /m modifier, source lines are included (if available).\n\
> +With a /r modifier, instruction in hex are included.\n\

 With a /r modifier, raw instructions in hex are included.

(Use "raw" explicitly to help people remember why there's an `r' in
"/r".)

> +++ b/doc/gdb.texinfo
> @@ -6178,9 +6178,11 @@ Variables}).
>  @cindex listing machine instructions
>  @item disassemble
>  @itemx disassemble /m
> +@itemx disassemble /r
>  This specialized command dumps a range of memory as machine
>  instructions.  It can also print mixed source+disassembly by specifying
> -the @code{/m} modifier.
> +the @code{/m} modifier and print the instruction in hex as well as in
> +symbolic form by specifying the @code{/r}.

 and print the raw instructions in hex as well as in symbolic form

Again, please use the word "raw" in the text.

Also, what about NEWS? didn't we agree that an entry there would be a
Good Thing?



More information about the Gdb-patches mailing list