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 00:57:32 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: 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 X-Trace: sea.gmane.org 1082581721 20160 80.91.224.253 (21 Apr 2004 21:08:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Apr 2004 21:08:41 +0000 (UTC) Cc: Nick Roberts , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Apr 21 23:08:31 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 1BGOxL-00035j-00 for ; Wed, 21 Apr 2004 23:08:31 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BGOxL-0002MD-00 for ; Wed, 21 Apr 2004 23:08:31 +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 1BGOww-0004LL-9S for emacs-devel@quimby.gnus.org; Wed, 21 Apr 2004 17:08:06 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BGOnh-0001RT-RM for emacs-devel@gnu.org; Wed, 21 Apr 2004 16:58:33 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BGOn9-0000lU-Ug for emacs-devel@gnu.org; Wed, 21 Apr 2004 16:58:31 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BGOn4-0000WJ-Tr for emacs-devel@gnu.org; Wed, 21 Apr 2004 16:57:55 -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 836BB262808; Wed, 21 Apr 2004 22:57:50 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: Original-Lines: 26 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:22007 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22007 Stefan Monnier writes: > >> If I have a running gdb process (M-x gdb ... run), and accidentally do > >> M-x gdb again (instead of switching to the gdb buffer), things get > >> really messy... > > >> Maybe the second M-x gdb should just switch to the current gdb buffer > >> if I enter the same command line as a previous gdb run. > > > How about this patch. The catch form would have to be added to the other > > debugger functions (dbx, pdb, perldb etc) to be consistent. I haven't had time to try this. > > 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... :-) -- Kim F. Storm http://www.cua.dk