This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
A question about All-stop and Non-stop
- From: xingxing pan <forandom at gmail dot com>
- To: gdb <gdb at sourceware dot org>
- Date: Tue, 4 May 2010 16:55:16 +0800
- Subject: A question about All-stop and Non-stop
Dose GDB in the All-stop mode has the same problem as in the Non-stop
mode when continues over a breakpoint instruction?
When GDB continues over a breakpoint instruction in the Non-stop mode,
replacing the breakpoint instruction with the original instruction
may cause the other running threads can't hit the breakpoint. That's
why GDB needs the displaced instructions. But what about the All-stop
mode, dose GDB has the same problem in this mode?
If it does, how dose GDB solve the problem? It seems there's no trick
like the displaced instructions before Non-stop's debut.
Can anyone help?
Thank you!