From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: M-x gdb troubles Date: 22 Apr 2004 02:46:58 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <16518.51349.955232.751075@nick.uklinux.net> <16518.61737.729426.615768@nick.uklinux.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1082588059 29114 80.91.224.253 (21 Apr 2004 22:54:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Apr 2004 22:54:19 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Apr 22 00:54:11 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BGQbb-0001ST-00 for ; Thu, 22 Apr 2004 00:54:11 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BGQbb-0003uO-00 for ; Thu, 22 Apr 2004 00:54:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BGQXn-0002fG-Af for emacs-devel@quimby.gnus.org; Wed, 21 Apr 2004 18:50:15 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BGQWw-0002Zt-Rg for emacs-devel@gnu.org; Wed, 21 Apr 2004 18:49:22 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BGQWN-0002RQ-A5 for emacs-devel@gnu.org; Wed, 21 Apr 2004 18:49:18 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BGQUw-00024X-Fd for emacs-devel@gnu.org; Wed, 21 Apr 2004 18:47:18 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepc.post.tele.dk (Postfix) with SMTP id 0B7A6262807; Thu, 22 Apr 2004 00:47:16 +0200 (CEST) Original-To: Nick Roberts In-Reply-To: <16518.61737.729426.615768@nick.uklinux.net> Original-Lines: 29 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22013 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22013 Nick Roberts writes: > > > Yuck. I'd much rather just throw an error and be done with it. > > > Let the user switch to the gdb buffer manually. > > > > > > > Well, what if it jumped to the existing buffer and then signalled an error > > (e.g. gdb already running). > > > > I could live with that... :-) > > The patch does jump to the existing buffer. In the case of "annotate=3", I had > meant to call gdb-restore-windows when there was an existing buffer. However, > this just restores to a standard layout and probably doesn't warrant the > ugliness of using catch. > > It also removes the problem with the debuggers in gud which would insert an > unwanted "Current directory is ..." into the GUD buffer. > > So shall I use error where I've put throw and take out the catch part? I prefer if things work smoothly -- so I like your patch (and don't object). However, if others object to that approach, I can live with less... So if you don't get more objections, I think you can install your patch. (Stefan may disagree of course). -- Kim F. Storm http://www.cua.dk