GDB/MI executing a python command

David Griffiths <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CA++j6c4QJhh1n2x2EOt+tzy0me_dLM9adOUqAuL4u1Y7szE_DA@mail.gmail.com>
Hi, I have a GDB/MI front-end and would like to execute a GDB Python
extension command. This command will then in turn issue a number of
gdb.execute commands itself (for reasons to do with storing state, it is
potentially easier this way than issuing multiple MI commands). I expected
that when I run gdb.execute with "to_string=True" that all the output would
be captured. But this is not the case - lots of stuff gets output on the MI
channel. For instance doing a stepi I get:

^running
*running,thread-id="all"
~"0x00007ff54501f1f5 in ?? ()\n"
*stopped,reason="end-stepping-range",frame={addr="0x00007ff54501f1f5",func="??",args=[]},thread-id="2",stopped-threads="all"

this is in addition to the captured gdb.execute reply.

Is there a way to disable this additional MI output whilst my command is
running? Or maybe a better way of doing this?

Thanks,

David

-- 

David Griffiths, Senior Software Engineer

Undo <https://undo.io> | Resolve even the most challenging software defects
with software flight recorder technology
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.