This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] persistence of schedlock mode
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Michael Snyder <msnyder at vmware dot com>
- Date: Wed, 12 May 2010 19:57:34 +0100
- Subject: Re: [RFC] persistence of schedlock mode
- References: <4BEAEEB0.5040202@vmware.com>
On Wednesday 12 May 2010 19:08:48, Michael Snyder wrote:
> Bug 11580 points out a problem related to persistence of the
> scheduler locking mode. If you set the mode to "on" (which
> means that only one thread can run), and then kill and restart
> your program, the mode persists and your program may deadlock.
>
> I don't think this is a problem for mode "step", and it could
> be argued that mode "on" is "use at your own risk". However
> I've been thinking about how to resolve it, and this simple
> but intrusive patch is what I come up with.
>
> Comments?
I think this is not a good idea. (I added a larger comment on
the PR before noticing this email).
--
Pedro Alves