From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Minor gdb-ui patches to make it a bit more robust Date: Tue, 19 Feb 2008 10:57:59 -0500 Message-ID: References: <18362.728.368749.836476@kahikatea.snap.net.nz> <18362.43848.977271.737049@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203436711 18641 80.91.229.12 (19 Feb 2008 15:58:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Feb 2008 15:58:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nick Roberts Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 19 16:58:55 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 1JRUrm-0005Ir-HV for ged-emacs-devel@m.gmane.org; Tue, 19 Feb 2008 16:58:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRUrH-00062d-9l for ged-emacs-devel@m.gmane.org; Tue, 19 Feb 2008 10:58:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JRUrC-00060y-VH for emacs-devel@gnu.org; Tue, 19 Feb 2008 10:58:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JRUrB-0005yq-Gx for emacs-devel@gnu.org; Tue, 19 Feb 2008 10:58:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRUrB-0005yf-DX for emacs-devel@gnu.org; Tue, 19 Feb 2008 10:58:09 -0500 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JRUrA-0006ca-0y for emacs-devel@gnu.org; Tue, 19 Feb 2008 10:58:09 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 9CF132CF8F9; Tue, 19 Feb 2008 10:58:06 -0500 (EST) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id EEB643FE0; Tue, 19 Feb 2008 10:57:59 -0500 (EST) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id D2D6F6C809; Tue, 19 Feb 2008 10:57:59 -0500 (EST) In-Reply-To: <18362.43848.977271.737049@kahikatea.snap.net.nz> (Nick Roberts's message of "Tue, 19 Feb 2008 23:11:20 +1300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.81, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_POURMOI 0.01) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:89575 Archived-At: > 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 Of course, I'm not deluding myself: these are nothing more than sanity checks, but they can come *real* handy to the user. I wasted a good 10 minutes trying to understand why my GDB was not responsive. >> 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. Process properties are nothing magical: they're just a property-list attached to processes, that you can set and read via process-put and process-get. Handy for variables which are really per-process (e.g. the yet-to-be-processed process output that needs to be passed from one invocation of the process filter to the next). > Bear in mind, though, that the (long term) plan is to move away from > annotations and fully use GDB/MI. I don't see in what way that would make any difference: global variables will still be a source of bugs (and will still prevent the co-existence of multiple gdb-ui processes in the same Emacs instance). >> 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". So is there any hope to make gdb-ui rely on that rather than on --annotate=3? Stefan