This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] Always pass signals to the right thread.


> Date: Fri, 25 Jul 2014 11:32:29 +0100
> From: Pedro Alves <palves@redhat.com>
> CC: gdb-patches@sourceware.org
> 
> >   @emph{Note:} When resuming a multi-threaded program, @var{signal} is
> >   by default delivered to the currently selected thread, not the thread
> >   that last reported a stop.  This includes the situation where a thread
> >   was stopped due to a signal.  So if you want to continue execution
> >   suppressing the signal that stopped a thread, you should select that
> >   same thread before issuing the @samp{signal 0} command.  If you issue
> >   the @samp{signal 0} command with another thread as the selected one,
> >   @value{GDBN} detects that and asks for confirmation.
> > 
> > Otherwise, OK.
> 
> That looks great, thanks a lot!  Would you mind if I drop the "by default",
> though?  When I read that I get the impression that there might be a knob
> to configure this behavior, while there's none (and nor should there be one).

You mean, if GDB asks for confirmation, per the above, and the user
confirms, GDB still won't signal the other thread?  If it will, then
there's your knob.

But I agree to remove "by default" from this text.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]