This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
linux-low.c: stop_all_processes vs longjmp snafu?
- From: dje at google dot com (Doug Evans)
- To: gdb at sourceware dot org
- Date: Fri, 12 Dec 2008 16:13:25 -0800 (PST)
- Subject: linux-low.c: stop_all_processes vs longjmp snafu?
linux-low.c:stop_all_processes is the only place that sets stopping_threads:
static void
stop_all_processes (void)
{
stopping_threads = 1;
for_each_inferior (&all_processes, send_sigstop);
for_each_inferior (&all_processes, wait_for_sigstop);
stopping_threads = 0;
}
and all functions that test stopping_threads can throw an error
(call longjmp).
I'm guessing fixing this is waiting on someone to remove stopping_threads,
right?