Re: [patch] [python] python/12686

Kevin Pouget
2011-04-28T13:40:14Z

one thing I just noticed, python debugging ("import pdb ;
pdb.set_trace()") faces the same SIGTTIN problem ...

On Mon, Apr 25, 2011 at 3:28 PM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "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
>