From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pierre-Louis Escouflaire Newsgroups: gmane.emacs.bugs Subject: Re: gud-mode --annotate=3 and synchronization problems Date: Wed, 05 Sep 2007 17:53:02 +0200 Message-ID: <46DED0DE.7040007@eurocontrol.int> References: <46DD45BD.1060300@eurocontrol.int> <18142.15489.961065.713549@kahikatea.snap.net.nz> Reply-To: pierre-louis.escouflaire@eurocontrol.int NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189007614 21103 80.91.229.12 (5 Sep 2007 15:53:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2007 15:53:34 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Nick Roberts Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 05 17:53:33 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ISxC2-000866-8S for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Sep 2007 17:53:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISxC0-0005lS-JN for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Sep 2007 11:53:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISxBy-0005lK-Ha for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2007 11:53:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISxBw-0005kz-TM for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2007 11:53:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISxBw-0005kw-Ly for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2007 11:53:20 -0400 Original-Received: from exprod8og58.obsmtp.com ([64.18.3.98]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1ISxBw-0001sY-1m for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2007 11:53:20 -0400 Original-Received: from source ([193.221.170.178]) by exprod8ob58.obsmtp.com ([64.18.7.12]) with SMTP; Wed, 05 Sep 2007 08:53:09 PDT Original-Received: from HHBRUE011.hq.corp.eurocontrol.int (hhbrue011.hq.corp.eurocontrol.int [193.221.161.80]) by ecw.eurocontrol.int (8.12.10/8.12.7) with ESMTP id l85Fr4H3006511; Wed, 5 Sep 2007 17:53:05 +0200 (MEST) Original-Received: from FFBRUE001.cfmu.corp.eurocontrol.int ([193.58.25.51]) by HHBRUE011.hq.corp.eurocontrol.int with Microsoft SMTPSVC(6.0.3790.1830); Wed, 5 Sep 2007 17:53:04 +0200 Original-Received: from eurocontrol.int ([193.221.189.138]) by FFBRUE001.cfmu.corp.eurocontrol.int with Microsoft SMTPSVC(6.0.3790.1830); Wed, 5 Sep 2007 17:53:04 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3) Gecko/20040924 X-Accept-Language: en-us, en, fr-fr In-Reply-To: <18142.15489.961065.713549@kahikatea.snap.net.nz> X-OriginalArrivalTime: 05 Sep 2007 15:53:04.0407 (UTC) FILETIME=[D8484A70:01C7EFD4] X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16488 Archived-At: Nick Roberts wrote: > > Not doing anything but `M-x describe-variable RET gdb-ready' before gdb > > prompt appears tells "No match" and then commands make gdb freeze. Plus, > > hre are some messages I had: > > when: Symbol's value as variable is void: gdb-ready > >... > > I don't get that because: > > *** gud.el 13 Aug 2007 20:51:56 +1200 1.129.2.6 > --- gud.el 02 Sep 2007 15:20:41 +1200 > *************** If SOFT is non-nil, returns nil if the s > *** 104,109 **** > --- 104,111 ---- > "Non-nil if debugged program is running. > Used to grey out relevant toolbar icons.") > > + (defvar gdb-ready nil) > + > ... > > Have you byte compiled gud.el? (You may be loading an old version). > These diffs were made against Emacs in CVS (EMACS_22_BASE branch) so you might > need to adjust them a bit for Emacs 22.1. OK, I just took the one from CVS (with no gdb-ready variable) and tested a bit with different configurations and I don't have any synchronization problems remaining. I have seen that the default behavior is now 'gdb' with no option which I think to be much better (one generally removes the --annotate=3 option). However, I have tested with the --annotate=3 option and I have seen that navigation through files is broken. In fact, it is due to the file location: it tries to open the file within directory "$(pwd)/source ${REAL_LOCATION}" (strings concatenation). Note that gud-mode also behaves as gdb outside emacs, i.e. outputting those ^Z characters and current operation (pre-prompt, starting, breakpoint, etc.) sequence. I do not know if it is normal, but to me Anyways, to me, it seems much better this way since one is not lost with options (s)he never used before and since the use of gdb is now much easier. Thanks a lot for your concern. Regards, Pierre-Louis ESCOUFLAIRE ____ This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy. Any views expressed in this message are those of the sender.