From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.devel Subject: Re: gdb-ui can't handle mutiple debugging sessions Date: Sun, 12 Sep 2004 18:49:04 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <001001c49915$c144efe0$479460cb@h> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1095029400 4699 80.91.229.6 (12 Sep 2004 22:50:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Sep 2004 22:50:00 +0000 (UTC) Cc: Andreas Schwab , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 13 00:49:47 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C6dA4-0002Q5-00 for ; Mon, 13 Sep 2004 00:49:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C6dFZ-00062n-6L for ged-emacs-devel@m.gmane.org; Sun, 12 Sep 2004 18:55:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C6dFS-00062W-2a for emacs-devel@gnu.org; Sun, 12 Sep 2004 18:55:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C6dFQ-000626-Qk for emacs-devel@gnu.org; Sun, 12 Sep 2004 18:55:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C6dFQ-000622-Fj for emacs-devel@gnu.org; Sun, 12 Sep 2004 18:55:04 -0400 Original-Received: from [206.47.199.163] (helo=simmts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C6d9f-00078b-LZ; Sun, 12 Sep 2004 18:49:07 -0400 Original-Received: from empanada.home ([67.71.27.186]) by simmts5-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20040912224709.GYFN1635.simmts5-srv.bellnexxia.net@empanada.home>; Sun, 12 Sep 2004 18:47:09 -0400 Original-Received: by empanada.home (Postfix, from userid 502) id 134512E3AC7; Sun, 12 Sep 2004 18:49:04 -0400 (EDT) Original-To: Nick Roberts In-Reply-To: <001001c49915$c144efe0$479460cb@h> (Nick Roberts's message of "Mon, 13 Sep 2004 10:12:35 +1200") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (darwin) 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:27059 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27059 >> When trying to use two debugging sessions at the same time gdb-ui gets >> completely confused. As soon as I start the second session all input is >> sent to it, even when typed in the window of the first session. This is a >> serious regression compared the old interface. > Thats right, gdb-ui can only handle one debugging session at a time. Trying > to run more seemed to require the code to be a lot more complex and > at the time only one overlay arrow was available so, in any case the old > interface didn't do it very well. I have always found the best way to run > two > debugging sessions at the same time is to run two versions of Emacs. > Whats the problem with this approach? > I don't see this as a serious regression and so far no-one else appears to > (gdb-ui has been in CVS Emacs for almost two years now). If you > can convince me otherwise or if others agree with you I will look at > adding support for multiple sessions. However, I think this would be a > major task which I could not complete till after the next release. Do multiple sessions still work (at least as well as before) if you use `gdb --fullname'? What's the source of difficulty in supporting multiple sesions with gdb-ui? My experience in removing the "only one per Emacs process" limitation of various special modes (such as pcl-cvs) is that it's usually not that hard, only it requires care (basically: make all the relevant variables buffer-local in the main buffer and be careful to always select the main buffer before reading those vars). In Emacs-21.3, the multiple-session support in gud.el is pretty fragile: it only works if all the GUD sessions use the same backend (i.e. all gdb, or all dbx, or all perldb). That should be added to the TODO (which should have a KNOWN-BUGS section). Stefan