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: gdba probs Date: Thu, 12 Dec 2002 00:05:13 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <15863.53945.373935.975803@nick.uklinux.net> References: <15855.47556.171128.631234@nick.uklinux.net> <200212052149.gB5LnZ504967@rum.cs.yale.edu> <15857.24365.637778.876009@nick.uklinux.net> <200212101419.gBAEJnf31571@rum.cs.yale.edu> <15862.30022.647969.267154@nick.uklinux.net> <200212111411.gBBEBUn03805@rum.cs.yale.edu> <15863.48069.658013.465668@nick.uklinux.net> <200212112248.gBBMmR406249@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1039651748 22914 80.91.224.249 (12 Dec 2002 00:09:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 12 Dec 2002 00:09:08 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18MGuZ-0005xS-00 for ; Thu, 12 Dec 2002 01:09:07 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18MH5p-0002Av-00 for ; Thu, 12 Dec 2002 01:20:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18MGtE-0001gF-09 for emacs-devel@quimby.gnus.org; Wed, 11 Dec 2002 19:07:44 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18MGst-0001e0-00 for emacs-devel@gnu.org; Wed, 11 Dec 2002 19:07:23 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18MGsq-0001d0-00 for emacs-devel@gnu.org; Wed, 11 Dec 2002 19:07:22 -0500 Original-Received: from bts-0127.dialup.zetnet.co.uk ([194.247.48.127] helo=nick.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18MGsm-0001R5-00 for emacs-devel@gnu.org; Wed, 11 Dec 2002 19:07:16 -0500 Original-Received: by nick.uklinux.net (Postfix, from userid 501) id C142C76037; Thu, 12 Dec 2002 00:05:13 +0000 (GMT) Original-To: "Stefan Monnier" In-Reply-To: <200212112248.gBBMmR406249@rum.cs.yale.edu> X-Mailer: VM 6.97 under Emacs 21.3.50.2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10076 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10076 > I don't see why we need to change something to the generic part of GUD. Currently gdb-ui.el requires gud.el. If M-x gdb can be used with "-annotate=2" then gud.el will require gdb-ui.el. This means they might as well be one (large) file doesnt it ? > > @@ -2344,6 +2347,42 @@ > > > > (defun gud-filter (proc string) > > ;; Here's where the actual buffer insertion is done > > + (when (and gud-first-time (string-match > > + "\n\032\032[a-z]" string)) > > What if DBX outputs this same sequence? You take the patch too literally. It should have something like: (string-match "\n\032\032pre-prompt\|\n\032\032breakpoints-invalid" string) but I haven't worked out exactly what as gud-filter seems to process the last chunk first. The first annotaion might even be "\032\032error-begin" if gdb tries to debug a file that doesn't exist. Of course in the unlikely event of DBX ouputting this sequence it would choke but then it would probably have come from the program being debugged in which GDB would choke too. > Clearly, we want this hack to be GDB-specific and should thus put it in > GDB's filter. It could go there but you will still end up with only one file. So it might be better to keep M-x gdba. If, one day, it works properly, then M-x gdb could go. Nick