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 0/4] Introduce the "with" command


On Tue, 2019-06-18 at 01:38 +0100, Pedro Alves wrote:
> ( See original discussion and prototype here:
>    https://sourceware.org/ml/gdb-patches/2019-05/msg00570.html )
> 
>  (gdb) help with
>  Temporarily set SETTING to VALUE, run COMMAND, and restore SETTING.
>  Usage: with SETTING [VALUE] [-- COMMAND]
>  Usage: w SETTING [VALUE] [-- COMMAND]
>  With no COMMAND, repeats the last executed command.
>  SETTING is any setting settable with the "set" command.
>  E.g.:
>    with language pascal -- print obj
>    with print elements unlimited -- print obj
> 
> More details in patch #4.
> 
> New in v2:
I played a little bit with this version, no bug encountered.

2 small nits in the error message for unknown 'with settings':
   (gdb) with xxxx yyyy -- echo coucou
   Undefined withcommand: "xxxx".  Try "help wit".
   (gdb) 

(this message is produced by lookup_cmd, that is not too
much 'with' aware it seems ...)

Philippe


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