From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: gdba probs Date: Tue, 10 Dec 2002 09:19:49 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200212101419.gBAEJnf31571@rum.cs.yale.edu> References: <15855.47556.171128.631234@nick.uklinux.net> <200212052149.gB5LnZ504967@rum.cs.yale.edu> <15857.24365.637778.876009@nick.uklinux.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039531412 3828 80.91.224.249 (10 Dec 2002 14:43:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Dec 2002 14:43:32 +0000 (UTC) Cc: Stefan Monnier Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Llbe-0000zT-00 for ; Tue, 10 Dec 2002 15:43:30 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18LlmF-0000to-00 for ; Tue, 10 Dec 2002 15:54:27 +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 18LlFB-00007h-00 for emacs-devel@quimby.gnus.org; Tue, 10 Dec 2002 09:20:17 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18LlEo-000070-00 for emacs-devel@gnu.org; Tue, 10 Dec 2002 09:19:54 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18LlEl-00006p-00 for emacs-devel@gnu.org; Tue, 10 Dec 2002 09:19:53 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18LlEl-00006j-00 for emacs-devel@gnu.org; Tue, 10 Dec 2002 09:19:51 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id gBAEJnf31571; Tue, 10 Dec 2002 09:19:49 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Nick Roberts Original-cc: emacs-devel@gnu.org 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:10035 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10035 > I don't know exactly what happens if gdba starts without "--annotate=2" but > the annotations are needed to tell it the status of the prgram. "--fullname" > just gives line information for display of the source. I understand that. But the `M-x gdb' subset of `M-x gdba' should still work if you pass `-fullname'. The rest of course won't, but that's OK: you get what you asked for. > Looking at it, gdba doesn't freeze but to seems expect its input to come from > the input/output buffer (try, for example, typing break main in there) Interesting. > > I understand that with "gdb --fullname foo" most things won't work, but I'd > > like to slowly merge M-x gdb and M-x gdba, so I think that the gdba > > code should be made to work even if the underlying gdb process is not > > configured as expected: it should then behave more or less like M-x gdb does. > > You could infer how gdb was running from the lack/type of annotations (=1, =2) > but I don't think this would be easy. At the moment I run two gdb commands > requiring annotations *before* the executable is run to find out in what > file main is stored. And probably more in order to get the initial `info breakpoints' and things like that. That should just result in error messages or other unexpected output in the *gdb* buffer, but without breaking the command-line prompt behavior. Stefan