This is the mail archive of the gdb@sources.redhat.com 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: about lin-lwp.c


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


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