This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] [python] python/12686
- From: Kevin Pouget <kevin dot pouget at gmail dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: pmuldoon at redhat dot com, gdb-patches at sourceware dot org
- Date: Wed, 20 Apr 2011 22:09:32 +0200
- Subject: Re: [patch] [python] python/12686
- References: <m3fwpdav6y.fsf@redhat.com> <m3aafk1zxn.fsf@fleche.redhat.com>
> ?TBH I think asking the user questions here is weird.
I'm not sure about the right way to do, I haven't had time to consider
your suggestion on the main mailing list, but if you consider the
situation where you want to ask the user (from Python) if s/he wants
to stop the inferior.
Currently, one way would be to do it here, the other would be in the
"stop" event handler, with `gdb.execute("continue")', but I don't
really like this solution, being under a Python callstack during the
execution seems a bit strange, doesn't it ?
Cordially,
Kevin