This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] [python] python/12686
>>>>> "Kevin" == Kevin Pouget <kevin.pouget@gmail.com> writes:
Tom> ÂTBH I think asking the user questions here is weird.
Kevin> I'm not sure about the right way to do, I haven't had time to consider
Kevin> your suggestion on the main mailing list, but if you consider the
Kevin> situation where you want to ask the user (from Python) if s/he wants
Kevin> to stop the inferior.
I would suggest simply not asking.
Kevin> Currently, one way would be to do it here, the other would be in the
Kevin> "stop" event handler, with `gdb.execute("continue")', but I don't
Kevin> really like this solution, being under a Python callstack during the
Kevin> execution seems a bit strange, doesn't it ?
Yeah, if you are committed to asking, then I agree about the placement
of the query.
Tom