From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.devel Subject: Re: Simultaneous gdb session badness Date: Thu, 18 Aug 2005 01:36:33 -0400 Message-ID: <87zmrfyffi.fsf@cs.cmu.edu> References: <87acjhzjq7.fsf@cs.cmu.edu> <17154.22690.842273.458639@farnswood.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1124343784 7149 80.91.229.2 (18 Aug 2005 05:43:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Aug 2005 05:43:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 18 07:43:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E5dAs-0005zg-Qb for ged-emacs-devel@m.gmane.org; Thu, 18 Aug 2005 07:42:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5dEN-0005C9-UU for ged-emacs-devel@m.gmane.org; Thu, 18 Aug 2005 01:46:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E5dAR-00044u-Nd for emacs-devel@gnu.org; Thu, 18 Aug 2005 01:42:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E5dAO-00042G-7u for emacs-devel@gnu.org; Thu, 18 Aug 2005 01:42:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5dAN-0003sL-2n for emacs-devel@gnu.org; Thu, 18 Aug 2005 01:42:15 -0400 Original-Received: from [205.201.10.244] (helo=maru) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1E5dKq-0002Am-T9 for emacs-devel@gnu.org; Thu, 18 Aug 2005 01:53:05 -0400 Original-Received: from md5i by maru with local (Exim 4.52) id 1E5d4r-0003pl-Gt; Thu, 18 Aug 2005 01:36:33 -0400 Original-To: Nick Roberts In-Reply-To: <17154.22690.842273.458639@farnswood.snap.net.nz> (Nick Roberts's message of "Wed, 17 Aug 2005 09:20:34 +1200") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) 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:42208 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:42208 Nick Roberts writes: > 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. Yes, I see that now. It was not obvious from NEWS, so I didn't realize I needed to reread the gdb manual. (I remember reading the messages covering bits of this on emacs-devel now that you brought this up, but I obviously didn't read them closely enough.) More importantly though, if one cannot run multiple sessions without using --fullname, M-x gdb should not allow you to attempt to so. It would be much better for it to give an understandable error message letting the user know what is going on. > 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. Of course, but I have this thing about running more than one emacs on a machine at a time. Call it silly, but I prefer not to do it. -- Michael Welsh Duggan (md5i@cs.cmu.edu)