This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Single stepping and threads
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Rob Quill <rob dot quill at gmail dot com>
- Cc: Michael Snyder <Michael dot Snyder at palmsource dot com>, gdb at sourceware dot org
- Date: Sat, 2 Dec 2006 08:36:54 -0800
- Subject: Re: Single stepping and threads
- References: <20061129052942.GA16029@nevyn.them.org> <20061129055915.GM9968@adacore.com> <20061129132535.GA28834@nevyn.them.org> <20061129163844.GN9968@adacore.com> <1164929776.14460.36.camel@localhost.localdomain> <baf6008d0612020827y3fd13229v16e14c24da321e6a@mail.gmail.com>
> I fail to see how stopping all threads and just going forward with one
> should stop "correct" code from executiong properly.
Consider a rendez-vous, for instance. I'm not sure if a "rendez-vous"
is a universal term or not, so I'll briefly explain what I mean:
"rendez-vous" is used in Ada speak to represent a situation where
one task is blocked waiting for another task to call one of its
entries; neither task is allowed to run until both tasks reach the
entry.
Back to our question: If one of the tasks is not running, it cannot
reach its entry, and thus the other task gets stuck on that entry call.
--
Joel