This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] "single step" atomic instruction sequences as a whole on PPC
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: drow at false dot org (Daniel Jacobowitz)
- Cc: jan dot kratochvil at redhat dot com (Jan Kratochvil), luisgpm at linux dot vnet dot ibm dot com (Luis Machado), gdb-patches at sourceware dot org
- Date: Wed, 9 May 2007 21:09:57 +0200 (CEST)
- Subject: Re: [RFC] "single step" atomic instruction sequences as a whole on PPC
Daniel Jacobowitz wrote:
> I hadn't thought about this case, of trying to step over a touchy
> atomic sequence; I don't see any way we could make it work if we let
> more than one thread run at once.
However, in particular when atomic sequences are involved, the
current thread might be trying to acquire a lock held by another
thread. If we keep running just the one thread, it'll never
get the lock ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com