From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: Minor gdb-ui patches to make it a bit more robust Date: Tue, 19 Feb 2008 23:11:20 +1300 Message-ID: <18362.43848.977271.737049@kahikatea.snap.net.nz> References: <18362.728.368749.836476@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1203416690 7688 80.91.229.12 (19 Feb 2008 10:24:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Feb 2008 10:24:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 19 11:25:14 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JRPez-00047h-16 for ged-emacs-devel@m.gmane.org; Tue, 19 Feb 2008 11:25:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRPeU-0008VL-38 for ged-emacs-devel@m.gmane.org; Tue, 19 Feb 2008 05:24:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JRPcy-0007Cx-OL for emacs-devel@gnu.org; Tue, 19 Feb 2008 05:23:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JRPcw-0007Bp-2s for emacs-devel@gnu.org; Tue, 19 Feb 2008 05:23:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRPcv-0007BV-CR for emacs-devel@gnu.org; Tue, 19 Feb 2008 05:23:05 -0500 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JRPcu-0003PU-Nn for emacs-devel@gnu.org; Tue, 19 Feb 2008 05:23:05 -0500 Original-Received: from kahikatea.snap.net.nz (39.60.255.123.dynamic.snap.net.nz [123.255.60.39]) by viper.snap.net.nz (Postfix) with ESMTP id 67EC43DA5ED; Tue, 19 Feb 2008 23:22:58 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id A6C858FC6D; Tue, 19 Feb 2008 23:11:21 +1300 (NZDT) In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.1.90.4 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89562 Archived-At: > Yes, I saw that. You may want to keep the gdba alias, tho. That's a good idea, so I've done it in EMACS_22_BASE. > Detecting a (gdb) prompt when we don't expect it is part of > defensive coding. Maybe falling back automatically to gud-gdb is not > a good idea, but detecting the situation and signalling it to the user > is important. There might be all kinds of reasons why the user failed > to provide the --annotate=3 argument. The flexibility of the command line means that there are always ways round these types of checks. For example, the prompt can be changed, e.g when debugging gdb, set prompt (top-gdb) is used. > Also I think a good way to make it more reliable would be to make > it work with several gud buffers by moving most global vars to > process properties, so they're necessarily correctly initialized, and > we'd be forced to think a bit harder about what's going on where. I'm not familar with process properties but I trust your judgement to make these changes. (In fact if Emacs was a democracy, I'd vote for you as maintainer!). Bear in mind, though, that the (long term) plan is to move away from annotations and fully use GDB/MI. > PS: Is there any hope for GDB to accept a command that puts it in > annotate=3 mode, rather than having to tweak the command line for it? > That would solve a lot of those problems. Yes, if you mean "set annotate 3". -- Nick http://www.inet.net.nz/~nickrob