From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.bugs Subject: bug#1155: 23.0.60; GUD hangs Date: Tue, 14 Oct 2008 23:10:03 +1300 Message-ID: <18676.28667.130454.937512@kahikatea.snap.net.nz> References: <48F2E984.2080003@gmail.com> <18676.20207.515928.981237@kahikatea.snap.net.nz> <48F4612C.1050204@gmail.com> Reply-To: Nick Roberts , 1155@emacsbugs.donarmstrong.com 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 1223981786 29316 80.91.229.12 (14 Oct 2008 10:56:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2008 10:56:26 +0000 (UTC) Cc: 1155@emacsbugs.donarmstrong.com To: Guillaume Salagnac Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 14 12:57:20 2008 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 1KphaJ-0006kW-NK for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 12:57:04 +0200 Original-Received: from localhost ([127.0.0.1]:35571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KphZF-00025z-0S for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 06:55:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KphCU-0003t0-Lo for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2008 06:32:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KphCQ-0003qt-Lw for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2008 06:32:23 -0400 Original-Received: from [199.232.76.173] (port=40150 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KphCP-0003qD-6l for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2008 06:32:21 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:43175) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KphCJ-0005zy-4Z for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2008 06:32:16 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9EATxuq020157; Tue, 14 Oct 2008 03:29:59 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9EAK3Q4017930; Tue, 14 Oct 2008 03:20:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Nick Roberts Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 14 Oct 2008 10:20:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1155 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1155-submit@emacsbugs.donarmstrong.com id=B1155.122397902816617 (code B ref 1155); Tue, 14 Oct 2008 10:20:03 +0000 Original-Received: (at 1155) by emacsbugs.donarmstrong.com; 14 Oct 2008 10:10:28 +0000 Original-Received: from viper.snap.net.nz (viper.snap.net.nz [202.37.101.25]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9EAAOuU016611 for <1155@emacsbugs.donarmstrong.com>; Tue, 14 Oct 2008 03:10:26 -0700 Original-Received: from kahikatea.snap.net.nz (98.29.255.123.static.snap.net.nz [123.255.29.98]) by viper.snap.net.nz (Postfix) with ESMTP id F111D3D98AB; Tue, 14 Oct 2008 23:10:23 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id B24A28FC6F; Tue, 14 Oct 2008 23:10:20 +1300 (NZDT) In-Reply-To: <48F4612C.1050204@gmail.com> X-Mailer: VM 7.19 under Emacs 22.3.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 14 Oct 2008 06:32:23 -0400 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:21470 Archived-At: > BTW, and this drives me crazy, sometimes-it-work-and-sometimes-it-doesnt > (tm). My suspicion is that the problem perhaps comes from the way emacs > communicate with gdb : what if there are different instances of gdb > running at the same time on the machine ? what if there are other > emacsen ? what if those emacsen also happen to run gdbs ? Anyway, when > it does not what I want, I switch to emacs 21, and this one works. > Still, it is not satisfying :-) Emacs communicates with GDB through a terminal (or a pipe) so it shouldn't matter if there are different instances of gdb, or other emacsen. > > emacs-pretest-bug@gnu.org is an active mailing list and the right one for > > reporting bugs in Emacs 23.0.60. Maybe there is something wrong with your > > mail server. > > > I don't know: on http://ists.gnu.org/archive/html/emacs-pretest-bug , > the last message is from july 2007, saying that the list is > discontinued. But maybe I missed something. I believe that emacs-pretest-bug is aliased to emacs-devel but if the subject header starts with 23.0.60; it goes through Don Armstrong's bug tracker. > > > ... > > > Recent input: > > > M-x g d b > > > > > > > > > h e l p C-c C-c M-x r > > > e p o r t - e m a c s - b u g > > > > What text do you have in the mini-buffer when you type for the > > second time? > > > When I type "M-x gdb", the text by default in the minibuffer is "Run > gdb (like this): gdb --annotate=3 foo", where "foo" is a random > executable file in my home directory. All the s are to remove > everything up to just "gdb" (the second one of course ; I do not modify > the prompt) You need to, at least, keep "gdb --annotate=3" > But hey ! that does seem to make a difference. In my home directory, I > start emacs 23 with -Q and I type M-x gdb. The text by default is "gdb > --annotate=3 .zshrc". If I just press return, I can ask for "help" and > get gdb help. If I remove everything but "gdb", so as to choose my > "file" and my "set args" later, it does not work. It's unlikely that you want to debug .zshrc (Emacs just looks for the last executable to be modified in default-directory) but it should look something like: "Run gdb (like this): gdb --annotate=3 myprog when you press in the mini-buffer, where myprog is the name your executable (use an absolute filename if you're not sure what directory you're in). > Hoho (typing as I'm reading the web) : the online documentation of gdb > (not the man page, not the info page, not the gdb --help) mention this > option, and says : > > http://sourceware.org/gdb/current/onlinedocs/gdb_3.html#IDX37 The node "GDB Graphical Interface" in the Emacs info manual is probably of more interest to you. If you have the tool bar present, which can be useful for debugging, you can click on the Info button (bulb or question mark) to get to this node from the GUD buffer. > ... > Now remains the questions as to why it does work like a charm in emacs > 21 without this option, and also why the necessity of this option for > gud is documented nowhere (if I, the end user, am not allowed to remove > this option from the command line without breaking GUD, either I should > not be allowed to remove it, or at least I should be warned.) Emacs 21 used "--fullname" which is the same as "--annotate=1" but it was hidden from the user. So yes, people coming from Emacs 21 have a different expectation and you have a point. However, the user may want to change the pathname to GDB, for example. C-h f gdb says The option "--annotate=3" must be included in this value. To run GDB in text command mode, use `gud-gdb'. You need to use text command mode to debug multiple programs within one Emacs session. at the end of the *Help* buffer. "Text command mode" is like M-x gdb in Emacs 21. -- Nick http://www.inet.net.nz/~nickrob