From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#4200: 23.1.50; gdb mode screwup when setting breakpoint Date: Wed, 19 Aug 2009 17:30:33 +0900 Message-ID: Reply-To: Miles Bader , 4200@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 1250803342 12676 80.91.229.12 (20 Aug 2009 21:22:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Aug 2009 21:22:22 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 20 23:22:15 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 1MeF5I-0000mL-5p for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Aug 2009 23:22:12 +0200 Original-Received: from localhost ([127.0.0.1]:42508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeF5H-0001bk-Eu for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Aug 2009 17:22:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeF5B-0001YQ-Ep for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 17:22:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MeF57-0001Qf-3T for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 17:22:04 -0400 Original-Received: from [199.232.76.173] (port=58874 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeF56-0001QJ-Rg for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 17:22:00 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52315) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MeF55-0007El-QS for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 17:22:00 -0400 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 n7KKkpou019227; Thu, 20 Aug 2009 13:48:07 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7KKYljY016758; Thu, 20 Aug 2009 13:34:47 -0700 Resent-Date: Thu, 20 Aug 2009 13:34:47 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Miles Bader Original-Sender: miles.bader@necel.com Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 20 Aug 2009 20:34:47 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4200 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125067064519141 (code B ref -1); Thu, 20 Aug 2009 20:34:47 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 19 Aug 2009 08:30:45 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7J8Uhu9019137 for ; Wed, 19 Aug 2009 01:30:45 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:55581) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MdgZ9-0003RC-4G for emacs-pretest-bug@gnu.org; Wed, 19 Aug 2009 04:30:43 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MdgZ5-0006n8-FK for emacs-pretest-bug@gnu.org; Wed, 19 Aug 2009 04:30:42 -0400 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]:49712) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MdgZ4-0006mF-EA; Wed, 19 Aug 2009 04:30:39 -0400 Original-Received: from relay11.aps.necel.com ([10.29.19.46]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id n7J8UKaV017590; Wed, 19 Aug 2009 17:30:33 +0900 (JST) Original-Received: from relay21.aps.necel.com ([10.29.19.16] [10.29.19.16]) by relay11.aps.necel.com with ESMTP; Wed, 19 Aug 2009 17:30:33 +0900 Original-Received: from dhlpc061 ([10.114.112.173] [10.114.112.173]) by relay21.aps.necel.com with ESMTP; Wed, 19 Aug 2009 17:30:33 +0900 Original-Received: by dhlpc061 (Postfix, from userid 31295) id 8E48D52E25B; Wed, 19 Aug 2009 17:30:33 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Blat: Foop Original-Lines: 155 X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 20 Aug 2009 17:22:04 -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:30380 gmane.emacs.pretest.bugs:24972 Archived-At: Please describe exactly what actions triggered the bug and the precise symptoms of the bug: (1) start emacs, with -Q (2) start gdb on an executable in the current dir; let's say it's called "foo", and is the most recent excutable in that dir, so gdb chooses it by default: M-x gdb RET (3) split the current window: C-x 2 (3) Visit the source file containing the "main" function, and move to some source line in that function: C-x C-f foo.c RET C-n ... (4) Set a breakpoint on that line: C-x SPC (5) **** Note that the "(gdb) " prompt in the *gud-foo* buffer has disappeared! Weird... but let's continue (6) Select the other window, where the *gud-foo* buffer is: C-x o (7) Try to run the program, even though the prompt is gone: run RET (8) **** The following error messages are given (these lines are from the *Messages* buffer): error in process filter: gdb-starting: Unexpected `starting' annotation error in process filter: Unexpected `starting' annotation Also note that for some reason, the "run" command caused a breakpoint list to be displayed in the *gud-foo* buffer, and that now there's a prompt again! (9) Try to run again, using "run RET"; this time it works (after you answer "y" to the gdb query), and correctly stops at the breakpoint you set. Thanks, -miles If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/local/share/emacs/23.1.50/etc/DEBUG for instructions. In GNU Emacs 23.1.50.32 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.5) of 2009-08-19 on dhlpc061 Windowing system distributor `The X.Org Foundation', version 11.0.10603000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ja_JP.UTF-8 value of $XMODIFIERS: @im=SCIM locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Diff Minor modes in effect: diff-auto-refine-mode: t show-paren-mode: t recentf-mode: t rcirc-track-minor-mode: t minibuffer-electric-default-mode: t display-time-mode: t desktop-save-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-j g C-p C-k C-n C-p C-p C-e C-p C-b C-e C-b C-b C-j C-j g C-p C-k C-p C-p C-p C-p C-p C-p C-p C-p C-n M-b M-b M-b M-b M-b M-b M-b f SPC v e r y d d SPC n i c e C-n C-a C-d a C-n C-e C-b C-b C-b C-b C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-u C-p C-u C-p C-u C-p C-u C-p C-p C-e M-h s o m e g C-a C-n C-c C-c q K g p p = SPC q n p p p p p p p p p p p p p p p p p n n n p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p x r c SPC C-c C-SPC C-c C-q q SPC h i SPC : ( ) ) C-c C-SPC C-c C-SPC C-c C-SPC C-x d C-x d C-x d C-c C-SPC n n n n n C-v C-v g C-c C-SPC h e y a w h a t SPC d o i n ? C-c C-SPC C-c C-SPC C-u C-u C-p C-u C-p C-n = SPC n q n n n n n n n n n n n n n n n n n n n x g d b C-g x r e p o r t SPC Recent messages: Reading active file via nnml...done Checking new news...done Retrieving newsgroup: nntp+news.gmane.org:gmane.emacs.devel... Fetching headers for nntp+news.gmane.org:gmane.emacs.devel...done Suppressing duplicates...done Scoring...done Sorting articles...done Generating summary...done Waiting for async article... x*DING* Quit Load-path shadows: /home/soft1/miles/.emacs.d/elpa/lua-mode-20070608/lua-mode hides /usr/local/share/emacs/site-lisp/lua-mode /usr/share/emacs22/site-lisp/dictionaries-common/ispell hides /usr/local/share/emacs/23.1.50/lisp/textmodes/ispell /usr/share/emacs22/site-lisp/dictionaries-common/flyspell hides /usr/local/share/emacs/23.1.50/lisp/textmodes/flyspell ~/src/elisp/timer hides /usr/local/share/emacs/23.1.50/lisp/emacs-lisp/timer -- The car has become... an article of dress without which we feel uncertain, unclad, and incomplete. [Marshall McLuhan, Understanding Media, 1964]