about lin-lwp.c

Kevin Buettner kevinb@redhat.com
Mon Aug 12 07:59:00 GMT 2002


On Aug 11, 11:52pm, Zheng Jian-Ming wrote:

> I see this function "lin_lwp_resume()" in gdb/lin-lwp.c, but don't
> know what "gdb_assert(signo == TARGET_SIGNAL_0)" to do.

gdb_assert() generates an internal error if the condition in question
does NOT hold.  So for the above, an internal error will be generated
if !(signo == TARGET_SIGNAL_0).

Please note the exact context of this assertion.  I.e, we have a
wait status already associated with the thread.  You should also
read the FIXME just prior to the assert.

> Does statement "iterate_over_lwps(resume_callback, NULL)" cause all
> threads to resume?

Yes.  (Well, technically, it causes all LWPs to resume.)

Kevin



More information about the Gdb mailing list