This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Breakpoints and multi-process using the same binary
- From: Marc Khouzam <marc dot khouzam at ericsson dot com>
- To: "'gdb at sourceware dot org'" <gdb at sourceware dot org>
- Date: Mon, 11 Apr 2011 10:52:45 -0400
- Subject: Breakpoints and multi-process using the same binary
Hi,
the next release of Eclipse CDT will make use of GDB's great
multi-process (multi-exec) support. Nice work!
Quick question about breakpoints in that case (with non-stop).
I'm trying to set a breakpoint in a process that has one
thread stopped. The problem is that there is another
process fully running, which uses the same binary
(parent/child of a fork()).
From what I can see, I cannot set such a breakpoint without
interrupting a thread for each and every process sharing the
binary.
I just wanted to confirm that this was the right behavior
for GDB.
Of course, when I run the same binary on two
different GDBs, things are completely independent.
I guess that is not possible under the same GDB?
Thanks
Marc