This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: about lin-lwp.c
- From: Kevin Buettner <kevinb at redhat dot com>
- To: Zheng Jian-Ming <zjm at cis dot nctu dot edu dot tw>, gdb at sources dot redhat dot com
- Date: Mon, 12 Aug 2002 07:59:32 -0700
- Subject: Re: about lin-lwp.c
- References: <20020811155249.GA19815@cissol7.cis.nctu.edu.tw>
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