public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Is there an option to "silent-step"/ "silent-next" (possibly in python and/or mi)?
@ 2023-02-08 13:44 Simon Sobisch
  2023-02-09  7:00 ` Chris Packham
  2023-02-10 16:59 ` Tom Tromey
  0 siblings, 2 replies; 8+ messages in thread
From: Simon Sobisch @ 2023-02-08 13:44 UTC (permalink / raw)
  To: GDB Mailing list

For "stepping in the current source" (given a mixed-source) I look for a 
way to "silent step" / "silent next".
This will be useful for example if you debug within Bison and/or Flex 
generated sources and don't want to step through the state / token 
machine, having only the Bison / Flex _source_ be visible.

Getting the source name from the frame and comparing this after a 
step/next is no big problem in GDB using python
    gdb.selected_frame().find_sal().symtab.fullname()

Using GDB in TUI mode I commonly "stay" in the source I'm interested in 
this way, but the GDB command line gets "flooded" with all the 
intermediate frame positions I'm not interested in.

So: is there a way to do a "step"/"next" with suppressing the normal 
output and mi stop events normally send?

Thank you for any pointers,
Simon

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-02-13  7:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-08 13:44 Is there an option to "silent-step"/ "silent-next" (possibly in python and/or mi)? Simon Sobisch
2023-02-09  7:00 ` Chris Packham
2023-02-09  8:36   ` Simon Sobisch
2023-02-10 16:59 ` Tom Tromey
2023-02-12 12:38   ` Philippe Waroquiers
2023-02-12 14:46     ` Tom Tromey
2023-02-12 17:22       ` Philippe Waroquiers
2023-02-13  7:38         ` Aktemur, Tankut Baris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).