[PATCH v2 0/4] Introduce the "with" command
Philippe Waroquiers
philippe.waroquiers@skynet.be
Wed Jun 19 00:34:00 GMT 2019
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
More information about the Gdb-patches
mailing list