This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

> Date: Sat, 11 Jul 2009 16:46:28 +0800
> From: Hui Zhu <>
> Cc: gdb-patches ml <>
> @@ -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

> +++ 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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]