This is the mail archive of the gdb-patches@sourceware.org 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: [PATCH v2 13/24] Make "print" and "compile print" support -OPT options


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> This patch adds support for "print -option optval --", etc.
Pedro> Likewise for "compile print".

Pedro> We'll get:

Pedro> (gdb) help print
Pedro> Print value of expression EXP.
Pedro> Usage: print [[OPTION]... --] [/FMT] [EXP]

Pedro> Options:
Pedro>   -address [on|off]
Pedro>     Set printing of addresses.

Pedro>   -array [on|off]
Pedro>     Set pretty formatting of arrays.
[...]
Pedro> -null-stop [on|off]
Pedro>     Set printing of char arrays to stop at first null char.

I assume -null-stop is out-dented due to a cut-and-paste error with the
email, but I wanted to double-check that there isn't a bug here.


Pedro> I want to highlight the comment above about "--".
[...]

I think this approach makes sense, and it addresses the one thing that
made me hesitate about this idea.

Tom


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