From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6972 invoked by alias); 11 Apr 2011 14:53:02 -0000 Received: (qmail 6962 invoked by uid 22791); 11 Apr 2011 14:53:01 -0000 X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_40 X-Spam-Check-By: sourceware.org Received: from imr4.ericy.com (HELO imr4.ericy.com) (198.24.6.8) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 Apr 2011 14:52:55 +0000 Received: from eusaamw0712.eamcs.ericsson.se ([147.117.20.181]) by imr4.ericy.com (8.14.3/8.14.3/Debian-9.1ubuntu1) with ESMTP id p3BEqrKS012933 for ; Mon, 11 Apr 2011 09:52:54 -0500 Received: from EUSAACMS0703.eamcs.ericsson.se ([169.254.1.203]) by eusaamw0712.eamcs.ericsson.se ([147.117.20.181]) with mapi; Mon, 11 Apr 2011 10:52:47 -0400 From: Marc Khouzam To: "'gdb@sourceware.org'" Date: Mon, 11 Apr 2011 14:53:00 -0000 Subject: Breakpoints and multi-process using the same binary Message-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-04/txt/msg00030.txt.bz2 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=20 thread stopped. The problem is that there is another process fully running, which uses the same binary (parent/child of a fork()). =46rom what I can see, I cannot set such a breakpoint without interrupting a thread for each and every process sharing the=20 binary. I just wanted to confirm that this was the right behavior for GDB.=20=20 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