* how to get last created inferior, python api
@ 2015-04-19 11:36 quentin sabah
[not found] ` <CADPb22T-y6RydUGrKXOgUQeDZc-k85_7cTbFTz-U23qzgWCT6w@mail.gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: quentin sabah @ 2015-04-19 11:36 UTC (permalink / raw)
To: gdb
Hi, I have been using gdb for many years and I am just starting to use
the python api.
I am wondering if there is a simple way to retrieve the last created
inferior using the python api.
Currently (gdb 7.7) I can create a new inferior with
gdb.execute("add-inferior"). There is no value returned, just a
messages printed in the CLI ("Added inferior N").
The only way that I can think of, is to call gdb.inferiors() before
and after creating a new one, and then compare the two lists to find
the new inferior.
Thanks!
--
Quentin Sabah
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-22 11:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-19 11:36 how to get last created inferior, python api quentin sabah
[not found] ` <CADPb22T-y6RydUGrKXOgUQeDZc-k85_7cTbFTz-U23qzgWCT6w@mail.gmail.com>
2015-04-22 11:39 ` quentin sabah
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).