From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Moritz Wilhelmy Newsgroups: gmane.emacs.bugs Subject: bug#31918: 25.3; gud inserts invalid gdb commands Date: Wed, 20 Jun 2018 21:34:44 +0200 Message-ID: <871sd1ckvf.fsf@barfooze.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1529523790 1706 195.159.176.226 (20 Jun 2018 19:43:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 20 Jun 2018 19:43:10 +0000 (UTC) To: 31918@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 20 21:43:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVj0T-0000GB-As for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Jun 2018 21:43:05 +0200 Original-Received: from localhost ([::1]:51501 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVj2Y-0003lN-PI for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Jun 2018 15:45:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVj2Q-0003l2-PU for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 15:45:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVj2M-00042b-PA for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 15:45:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50077) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVj2M-00042I-Kx for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 15:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fVj2M-00009D-BA for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 15:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Moritz Wilhelmy Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Jun 2018 19:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31918 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1529523883523 (code B ref -1); Wed, 20 Jun 2018 19:45:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Jun 2018 19:44:43 +0000 Original-Received: from localhost ([127.0.0.1]:57974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVj23-00008N-3s for submit@debbugs.gnu.org; Wed, 20 Jun 2018 15:44:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVisf-0008MG-9b for submit@debbugs.gnu.org; Wed, 20 Jun 2018 15:35:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVisY-0006h3-O2 for submit@debbugs.gnu.org; Wed, 20 Jun 2018 15:34:56 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42633) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fVisY-0006gt-K4 for submit@debbugs.gnu.org; Wed, 20 Jun 2018 15:34:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVisW-0000Md-SU for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 15:34:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVisR-0006cT-Uh for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 15:34:52 -0400 Original-Received: from inferno.barfooze.de ([5.9.157.210]:60827) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVisR-0006Yc-Jm for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 15:34:47 -0400 Original-Received: from localhost ([10.128.128.11]) by inferno.barfooze.de (8.15.2/8.15.2) with ESMTPS id w5KJYiQG066596 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 20 Jun 2018 21:34:44 +0200 (CEST) (envelope-from mw@barfooze.de) Original-Received: by localhost (Postfix, from userid 1000) id 629D321098; Wed, 20 Jun 2018 21:34:44 +0200 (CEST) X-Scanned-By: MIMEDefang 2.83 on 192.168.42.2 X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Wed, 20 Jun 2018 15:44:42 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:147669 Archived-At: I'm experiencing problems attaching commands to breakpoints with gdb/gud. I reproduced this using emacs -q. I also tried to reproduce the same behaviour with gdb running inside the terminal, but it did not occur, therefore I blame Emacs. ;) After M-x gdb, I wrote approximately this (unimportant parts elided): (gdb) br phy_device.c:579 Breakpoint 2 at 0xc029c468: file drivers/net/phy/phy_device.c, line 579. (gdb) commands Type commands for breakpoint(s) 2, one per line. End with a line saying just "end". info args >>>>>info locals >p/x phy_id >p bus->id >if addr < 31 >cont >end >end (gdb) i br 2 breakpoint keep y 0xc029c468 in get_phy_device at drivers/net/phy/phy_device.c:579 breakpoint already hit 1 time info args 41-stack-info-frame --thread 2 42-thread-info --thread 2 43-break-list info locals p/x phy_id p bus->id if addr < 31 cont end (gdb) What's the deal with these three lines? 41-stack-info-frame --thread 2 42-thread-info --thread 2 43-break-list Best, Moritz In GNU Emacs 25.3.1 (x86_64-suse-linux-gnu, GTK+ Version 3.22.30) of 2018-06-10 built on lamb03 Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: openSUSE Tumbleweed Configured using: 'configure --with-pop --without-hesiod --with-kerberos --with-kerberos5 --with-xim --with-wide-int --with-file-notification=inotify --with-modules --enable-autodepend --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --localstatedir=/var --sharedstatedir=/var/lib --libexecdir=/usr/lib --enable-locallisppath=/usr/share/emacs/25.3/site-lisp:/usr/share/emacs/site-lisp --with-x --with-sound --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-rsvg --with-dbus --with-xft --without-gpm --with-x-toolkit=gtk3 --with-xwidgets --with-toolkit-scroll-bars --x-includes=/usr/include --x-libraries=/usr/lib64 --with-libotf --with-m17n-flt --build=x86_64-suse-linux 'CFLAGS=-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -D_GNU_SOURCE -DGDK_DISABLE_DEPRECATION_WARNINGS -DGLIB_DISABLE_DEPRECATION_WARNINGS -pipe -Wno-pointer-sign -Wno-unused-variable -Wno-unused-label -Wno-unprototyped-calls -fno-optimize-sibling-calls -fno-PIE -DSYSTEM_PURESIZE_EXTRA=55000 -DSITELOAD_PURESIZE_EXTRA=10000 ' LDFLAGS=-Wl,-O2' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES XWIDGETS Important settings: value of $LC_COLLATE: C value of $LC_CTYPE: en_US.UTF-8 value of $LC_NUMERIC: POSIX value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Debugger Minor modes in effect: diff-auto-refine-mode: t show-paren-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: (only . t) Recent messages: Checking 24 files in /usr/share/emacs/25.3/lisp/cedet... Checking 57 files in /usr/share/emacs/25.3/lisp/calendar... Checking 87 files in /usr/share/emacs/25.3/lisp/calc... Checking 120 files in /usr/share/emacs/25.3/lisp/obsolete... Checking for load-path shadows...done scroll-down-command: Beginning of buffer scroll-up-command: End of buffer scroll-down-command: Beginning of buffer next-line: End of buffer [21 times] Auto-saving...done previous-line: Beginning of buffer [3 times] Load-path shadows: None found. Features: (pp shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-fns kmacro thingatpt etags xref project eieio eieio-core cl-macs vc-git diff-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-seq gdb-mi bindat json map seq byte-opt gv bytecomp byte-compile cl-extra help-mode cconv cl-loaddefs pcase cl-lib gud easy-mmode comint ansi-color ring misearch multi-isearch jka-compr info easymenu paren ispell time-date mule-util delsel lpr tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 223680 21443) (symbols 48 25962 0) (miscs 40 351 417) (strings 32 47786 8262) (string-bytes 1 2193690) (vectors 16 22020) (vector-slots 8 572010 11995) (floats 8 275 338) (intervals 56 13253 173) (buffers 976 37))