Is there an option to "silent-step"/ "silent-next" (possibly in python and/or mi)?
Aktemur, Tankut Baris
tankut.baris.aktemur@intel.com
Mon Feb 13 07:38:08 GMT 2023
On Sunday, February 12, 2023 6:23 PM, Philippe Waroquiers wrote:
> At least some of the output is discarded:
> (gdb) alias wwww = | next | cat > /dev/null
> (gdb) n
> 33 for (int i = 0; i < MAX/3; i++)
> (gdb) wwww
> (gdb)
>
> Philippe
>
>
> On Sun, 2023-02-12 at 07:46 -0700, Tom Tromey wrote:
> > Philippe> As a (not very clean) bypass, you might do something like:
> > Philippe> alias silent-next = | next | grep -e some_regexp_to_see
> what_you_are_interested_in
> > Philippe> and if you want to see nothing:
> > Philippe> alias silent-next = | next | cat > /dev/null
> >
> > I'm not completely sure but I think some of the inferior-control
> > commands work in a way that circumvents this. At least, IIRC, there's a
> > bug open about not being able to capture this output using
> > gdb.execute(to_string=True).
> >
> > Tom
>
There is "set suppress-cli-notifications". Does it satisfy the needs?
(gdb) set suppress-cli-notifications on
(gdb) step
(gdb) next
(gdb) next
(gdb) next
(gdb)
Regards,
-Baris
Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
More information about the Gdb
mailing list