From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Simultaneous gdb session badness Date: Wed, 17 Aug 2005 09:20:34 +1200 Message-ID: <17154.22690.842273.458639@farnswood.snap.net.nz> References: <87acjhzjq7.fsf@cs.cmu.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1124228218 19108 80.91.229.2 (16 Aug 2005 21:36:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Aug 2005 21:36:58 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 16 23:36:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E596W-00089p-VX for ged-emacs-devel@m.gmane.org; Tue, 16 Aug 2005 23:36:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E599x-00061n-UL for ged-emacs-devel@m.gmane.org; Tue, 16 Aug 2005 17:39:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E597s-0005Rq-P9 for emacs-devel@gnu.org; Tue, 16 Aug 2005 17:37:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E597o-0005QU-0O for emacs-devel@gnu.org; Tue, 16 Aug 2005 17:37:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E597n-00055J-Mr for emacs-devel@gnu.org; Tue, 16 Aug 2005 17:37:35 -0400 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E5955-0003wI-A3 for emacs-devel@gnu.org; Tue, 16 Aug 2005 17:34:47 -0400 Original-Received: from farnswood.snap.net.nz (p232-tnt2.snap.net.nz [202.124.108.232]) by viper.snap.net.nz (Postfix) with ESMTP id 3739E68928E; Wed, 17 Aug 2005 09:18:39 +1200 (NZST) Original-Received: by farnswood.snap.net.nz (Postfix, from userid 501) id A155862A99; Tue, 16 Aug 2005 22:20:35 +0100 (BST) Original-To: Michael Welsh Duggan In-Reply-To: <87acjhzjq7.fsf@cs.cmu.edu> X-Mailer: VM 7.19 under Emacs 22.0.50.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:42153 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:42153 Michael Welsh Duggan writes: > I wish I could say just when this problem cropped up, but... > > In the current CVS, I cannot run gdb though the gud on two seperate > programs simultanously. For example, if I start a gud session for > program A, then one for program B, if I then type "b main" in program > A's gud buffer, the breakpoint gets set in program B. > > This definitely worked in 21.3, and I can remember doing it in earlier > versions of 22.0. It is a frequent occurence for me to want to run > seperate gdb session in the same emacs, especially when they are > intercommunicating processes. The default behaviour for gdb in Emacs has changed considerably since 21.3. You could read the manual to understand these differences. It says (GDB Graphical Interface): Manual> You can also run GDB in text command mode, which creates a buffer Manual> for input and output to GDB. To do this, set `gud-gdb-command-name' Manual> to `"gdb --fullname"' or edit the startup command in the minibuffer to Manual> say that. You need to do use text command mode to run multiple Manual> debugging sessions within one Emacs session. Text command mode refers to the mode used in 21.3. The default mode for 22.1 is referred to as graphical mode and uses "gdb --annotate=3". When your gdb sessions are independent, you can always uses separate Emacs sessions, of course. Nick