From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: Starting multiple GUD session; doc problem Date: Sun, 26 Nov 2006 05:08:17 -0500 Message-ID: References: <17767.37609.24236.660750@kahikatea.snap.net.nz> <17769.7604.137412.491382@kahikatea.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164535727 27387 80.91.229.2 (26 Nov 2006 10:08:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 26 Nov 2006 10:08:47 +0000 (UTC) Cc: Stephen Leake , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 26 11:08:46 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GoGwE-0007Km-Nz for ged-emacs-devel@m.gmane.org; Sun, 26 Nov 2006 11:08:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GoGwD-0007U9-Cu for ged-emacs-devel@m.gmane.org; Sun, 26 Nov 2006 05:08:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GoGvu-0007U3-S7 for emacs-devel@gnu.org; Sun, 26 Nov 2006 05:08:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GoGvu-0007Te-0M for emacs-devel@gnu.org; Sun, 26 Nov 2006 05:08:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GoGvt-0007TG-IX for emacs-devel@gnu.org; Sun, 26 Nov 2006 05:08:21 -0500 Original-Received: from [207.172.157.102] (helo=smtp02.lnh.mail.rcn.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GoGvs-0004AF-PL for emacs-devel@gnu.org; Sun, 26 Nov 2006 05:08:21 -0500 Original-Received: from mr02.lnh.mail.rcn.net ([207.172.157.22]) by smtp02.lnh.mail.rcn.net with ESMTP; 26 Nov 2006 05:08:21 -0500 Original-Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr02.lnh.mail.rcn.net (MOS 3.7.5a-GA) with ESMTP id MOM50881; Sun, 26 Nov 2006 05:08:19 -0500 (EST) Original-Received: from 208-59-165-113.c3-0.slvr-ubr1.lnh-slvr.md.cable.rcn.com (HELO ACS1100007992) ([208.59.165.113]) by smtp01.lnh.mail.rcn.net with ESMTP; 26 Nov 2006 05:08:20 -0500 X-IronPort-AV: i="4.09,460,1157342400"; d="scan'208"; a="319009058:sNHT25269784" Original-To: Nick Roberts In-Reply-To: <17769.7604.137412.491382@kahikatea.snap.net.nz> (Nick Roberts's message of "Sun, 26 Nov 2006 17:53:08 +1300") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) X-Junkmail-Status: score=10/50, host=mr02.lnh.mail.rcn.net X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A090207.456966B7.0081,ss=1,fgs=0, ip=207.172.4.11, so=2006-05-09 23:27:51, dmn=5.2.121/2006-09-27 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:62810 Archived-At: Nick Roberts writes: > > Since the info manual never mentions "--annotate=3", I thought it was > > always necessary. So yes, I found it ambiguous. > > I guess it presupposes a knowledge of "--fullname" and > "--annotate=3". Yes. > Ideally it would mention neither but give the user the option of > switching between the two in terms of their functionality. Yes. Maybe after the release. > > and that is the behavior I was expecting. In > > particular, I don't have to do anything special to get two debugging > > sessions. > > > > At the same time, if you don't customize 'gdb-many-windows', "gdb > > --annotate=3" in Emacs 22 also works the same as "gdb" in Emacs 21, > > except that it doesn't allow multiple debugging sessions. So that's > > why I was surprised by this. > > I've arranged so that it starts up the same way. However it has much > more functionality. If you create a breakpoint a red bullet is > placed in the fringe/margin so you don't have to remember where your > breakpoints are. That is nice. > You can view the stack, examine watch expressions, manipulate > breakpoints... You can do all that with text command mode as well. But with GUI mode, you can do it with only the mouse, and all of the results are always visible. It's a trade of screen usage between showing program state and program source, and of mouse vs keyboard. It is nice to have the choice. > > (aside; I don't understand why the tooltips are not available in "text > > command mode". Is "--annotate" required to get tooltip variable values?) > > The section Debugger Operation says > > GUD tooltips are disabled when you use GDB in text command mode > (*note GDB Graphical Interface::), because displaying an expression's > value in GDB can sometimes expand a macro and result in a side effect > that interferes with the program's operation. The GDB graphical > interface supports GUD tooltips and assures they will not cause side > effects. Ok. I'm mostly using Ada, which doesn't have macros. So perhaps after the release we could explore relaxing that restriction for Ada (and other languages where it would be safe). I _often_ run two debugging sessions, to find the difference between two programs (one that works and one that doesn't). Running them in separate Emacs sessions is dangerous, because they usually share lots of code, and I don't want to risk editing the same file in two different Emacs sessions. (This is one area where Emacs is better than other IDEs.) So I'd like to have as many debugger features as possible while running two debugging sessions. I'll go read the manual more thoroughly now :). -- -- Stephe