From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.bugs Subject: bug#5060: More debugging information Date: Sun, 29 Nov 2009 22:59:02 -0500 Message-ID: <87ocmk1x4p.fsf@maru.md5i.com> References: <874oofl2aq.fsf@maru.md5i.com> <19217.49653.913430.150725@totara.tehura.co.nz> Reply-To: Michael Welsh Duggan , 5060@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1259554063 30417 80.91.229.12 (30 Nov 2009 04:07:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Nov 2009 04:07:43 +0000 (UTC) Cc: 5060@emacsbugs.donarmstrong.com To: nickrob@snap.net.nz (Nick Roberts) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 30 05:07:36 2009 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 1NExY0-0003ss-07 for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Nov 2009 05:07:36 +0100 Original-Received: from localhost ([127.0.0.1]:43338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NExXz-0005AF-J9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Nov 2009 23:07:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NExXv-0005A1-BT for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2009 23:07:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NExXq-00059Z-Rm for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2009 23:07:30 -0500 Original-Received: from [199.232.76.173] (port=54532 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NExXq-00059W-Jp for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2009 23:07:26 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44546) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NExXq-0002fx-51 for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2009 23:07:26 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAU47Nom021974; Sun, 29 Nov 2009 20:07:23 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAU455xv021074; Sun, 29 Nov 2009 20:05:05 -0800 Resent-Date: Sun, 29 Nov 2009 20:05:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Michael Welsh Duggan Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 30 Nov 2009 04:05:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 5060 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5060-submit@emacsbugs.donarmstrong.com id=B5060.125955356520232 (code B ref 5060); Mon, 30 Nov 2009 04:05:05 +0000 Original-Received: (at 5060) by emacsbugs.donarmstrong.com; 30 Nov 2009 03:59:25 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from maru.md5i.com (md5i.com [75.151.244.229]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAU3xONS020229 for <5060@emacsbugs.donarmstrong.com>; Sun, 29 Nov 2009 19:59:25 -0800 Original-Received: from md5i by maru.md5i.com with local (Exim 4.69) (envelope-from ) id 1NExPi-0005Tl-5C; Sun, 29 Nov 2009 22:59:02 -0500 In-Reply-To: <19217.49653.913430.150725@totara.tehura.co.nz> (Nick Roberts's message of "Sun, 29 Nov 2009 13:36:05 +1300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 29 Nov 2009 23:07:30 -0500 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:33050 Archived-At: nickrob@snap.net.nz (Nick Roberts) writes: > > Shortly before the failure occurs, gdb-frame-handler is called. In the > > context of the failure, the frame variable is set to: > > > > ((line . "29") (file . "longjmp.c") (func . "__libc_siglongjmp") > > (addr . "0xb79ef6c1") (level . "0")) > > > > gdb-selected-file is nil, since there is no 'fullname. > > gdb-selected-line gets 29. So, gud-last-frame is '(nil . 29). > > gud-display-frame is then called, which calls gud-display-line with the > > args from gud-last frame. I.e., (gud-display-frame nil 29). This nil > > is what is later causing problems when gud-find-file is called. > > > > My guess is that gud-display-frame should not be called if > > gdb-selected-file is nil. But I do not understand the code well enough > > to know that this is the case. > > That sounds right. Using gdb-frame-handler to get the current line is > a bit of a hack because gdb doesn't always print the location when it > stops. This code doesn't look quite right. Does the patch below > work? It does work. I will be submitting a followup misfeature as a separate bug. -- Michael Welsh Duggan (md5i@md5i.com)