From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: M-x gdb troubles Date: Wed, 21 Apr 2004 23:09:45 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <16518.61737.729426.615768@nick.uklinux.net> References: <16518.51349.955232.751075@nick.uklinux.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1082586274 25366 80.91.224.253 (21 Apr 2004 22:24:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Apr 2004 22:24:34 +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:24:25 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 1BGQ8n-00084z-00 for ; Thu, 22 Apr 2004 00:24:25 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BGQ8n-0003Rk-00 for ; Thu, 22 Apr 2004 00:24:25 +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 1BGQ6n-0002Yx-Gb for emacs-devel@quimby.gnus.org; Wed, 21 Apr 2004 18:22:21 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BGQ1V-0000mC-PK for emacs-devel@gnu.org; Wed, 21 Apr 2004 18:16:53 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BGPzC-0007ye-TS for emacs-devel@gnu.org; Wed, 21 Apr 2004 18:15:02 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1BGPyw-0007lQ-Tw for emacs-devel@gnu.org; Wed, 21 Apr 2004 18:14:15 -0400 Original-Received: from [194.247.51.103] (helo=nick.uklinux.net) by mx20.gnu.org with esmtp (Exim 4.30) id 1BGPv2-0007ba-LN for emacs-devel@gnu.org; Wed, 21 Apr 2004 18:10:13 -0400 Original-Received: by nick.uklinux.net (Postfix, from userid 501) id 5520275FDE; Wed, 21 Apr 2004 23:09:46 +0100 (BST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: X-Mailer: VM 6.97 under Emacs 21.2.1 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:22010 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22010 > > 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? Nick