Gdbserver Threading Issues

Paul Mundt paul.mundt@timesys.com
Fri Dec 6 13:20:00 GMT 2002


On Fri, 2002-12-06 at 16:17, Daniel Jacobowitz wrote:
> Thread events aren't reported immediately for latency reasons; but they
> should all be delivered the first time the child stops...
> 
Even after the threads are all finished, I don't see anything stepping
into handle_inferior_event() other then when the initial manager thread
is created.

> > Also, on the gdb side of things, it doesn't look like there are any
> > events happening .. thus handle_inferior_event() is never stepped into
> > at thread creation/running/exit time. Although td_thr_event_enable()
> > still returns TD_OK.
> 
> Wait, what's going on?  Are you saying td_thr_event_enable is being
> called on your host GDB?  That's not going to work right.
> 
I meant handle_inferior_event() on host gdb and td_thr_event_enable()
being invoked from maybe_attach_thread() on the gdbserver side.

> > Notably, if I connect gdb to gdbserver while gdb and gdbserver are both
> > running under gdb control, SIG32 issues appear again.. 
> 
> gdbserver may get a SIG32 while debugging; set the process debugging
> gdbserver to "nostop noprint pass" that signal.  Ditto SIG33, I think.

Doing that already as a workaround, wasn't positive if this was expected
or not.

Regards,

-- 
Paul Mundt <paul.mundt@timesys.com>
TimeSys Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://sourceware.org/pipermail/gdb/attachments/20021206/5dd010d0/attachment.sig>


More information about the Gdb mailing list