From unknown Wed Jun 18 23:07:35 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#31918 <31918@debbugs.gnu.org> To: bug#31918 <31918@debbugs.gnu.org> Subject: Status: 25.3; gud inserts invalid gdb commands (gdb 7.10.1 --target=arm-buildroot-...) Reply-To: bug#31918 <31918@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:07:35 +0000 retitle 31918 25.3; gud inserts invalid gdb commands (gdb 7.10.1 --target= =3Darm-buildroot-...) reassign 31918 emacs submitter 31918 Moritz Wilhelmy severity 31918 normal tag 31918 unreproducible thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 20 15:44:43 2018 Received: (at submit) by debbugs.gnu.org; 20 Jun 2018 19:44:43 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 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 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 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 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 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) Received: by localhost (Postfix, from userid 1000) id 629D321098; Wed, 20 Jun 2018 21:34:44 +0200 (CEST) From: Moritz Wilhelmy To: bug-gnu-emacs@gnu.org Subject: 25.3; gud inserts invalid gdb commands Date: Wed, 20 Jun 2018 21:34:44 +0200 Message-ID: <871sd1ckvf.fsf@barfooze.de> MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: submit 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.4 (-----) 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)) From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 21 10:27:07 2018 Received: (at 31918) by debbugs.gnu.org; 21 Jun 2018 14:27:07 +0000 Received: from localhost ([127.0.0.1]:59248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fW0YF-0007m4-56 for submit@debbugs.gnu.org; Thu, 21 Jun 2018 10:27:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fW0YE-0007la-2u for 31918@debbugs.gnu.org; Thu, 21 Jun 2018 10:27:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fW0Y4-0007d7-Tk for 31918@debbugs.gnu.org; Thu, 21 Jun 2018 10:27:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fW0Y4-0007d2-QE; Thu, 21 Jun 2018 10:26:56 -0400 Received: from [176.228.60.248] (port=1441 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fW0Y4-0002cB-3N; Thu, 21 Jun 2018 10:26:56 -0400 Date: Thu, 21 Jun 2018 17:27:02 +0300 Message-Id: <831sd0rz9l.fsf@gnu.org> From: Eli Zaretskii To: Moritz Wilhelmy In-reply-to: <871sd1ckvf.fsf@barfooze.de> (message from Moritz Wilhelmy on Wed, 20 Jun 2018 21:34:44 +0200) Subject: Re: bug#31918: 25.3; gud inserts invalid gdb commands References: <871sd1ckvf.fsf@barfooze.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31918 Cc: 31918@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Moritz Wilhelmy > Date: Wed, 20 Jun 2018 21:34:44 +0200 > > 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 I tried to reproduce this, but couldn't. Please tell what is your GDB version. Also, can you provide a complete recipe, including a program to debug, and all the steps needed to reproduce the issue, preferably starting from "emacs -Q"? (The additional commands are commands injected by gdb-mi.el to allow Emacs display of various information: call-stack, thread information, etc. But they shouldn't appear in the commands you specified for your breakpoints, so this is still some kind of problem. I cannot reproduce it, though.) Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 23 11:05:45 2018 Received: (at 31918) by debbugs.gnu.org; 23 Jun 2018 15:05:45 +0000 Received: from localhost ([127.0.0.1]:33344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWk6j-0007oe-9z for submit@debbugs.gnu.org; Sat, 23 Jun 2018 11:05:45 -0400 Received: from inferno.barfooze.de ([5.9.157.210]:63536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWk6h-0007oV-2Y for 31918@debbugs.gnu.org; Sat, 23 Jun 2018 11:05:43 -0400 Received: from localhost ([10.128.128.11]) by inferno.barfooze.de (8.15.2/8.15.2) with ESMTPS id w5NF5fE9067542 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <31918@debbugs.gnu.org>; Sat, 23 Jun 2018 17:05:41 +0200 (CEST) (envelope-from mw@barfooze.de) Received: by localhost (Postfix, from userid 1000) id 1E71621090; Sat, 23 Jun 2018 17:05:41 +0200 (CEST) References: <871sd1ckvf.fsf@barfooze.de> <831sd0rz9l.fsf@gnu.org> User-agent: mu4e 1.0; emacs 25.3.1 From: Moritz Wilhelmy To: 31918@debbugs.gnu.org Subject: Re: bug#31918: 25.3; gud inserts invalid gdb commands In-reply-to: <831sd0rz9l.fsf@gnu.org> Date: Sat, 23 Jun 2018 17:05:41 +0200 Message-ID: <87zhzlbl16.fsf@barfooze.de> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.83 on 192.168.42.2 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 31918 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Eli, On Thu, Jun 21 2018, Eli Zaretskii wrote: > I tried to reproduce this, but couldn't. Please tell what is your GDB > version. Also, can you provide a complete recipe, including a program > to debug, and all the steps needed to reproduce the issue, preferably > starting from "emacs -Q"? The program I'm debugging is a Linux kernel on an ARM SoC over a serial link. We're using an older version of buildroot to build everything (planning to switch to something newer, which would also bring a newer gdb version), but for now we're stuck with this: $ cat bin/kernelgdb #!/bin/sh BR=~/src/buildroot exec ${BR}/output/host/usr/bin/arm-buildroot-linux-musleabi-gdb ${BR}/output/images/vmlinux -b 115200 -ex "target remote localhost:4441" "$@" With agent-proxy running on localhost 4440^4441. $ exec ${BR}/output/host/usr/bin/arm-buildroot-linux-musleabi-gdb GNU gdb (GDB) 7.10.1 Copyright (C) 2015 Free Software Foundation, Inc. ... This GDB was configured as "--host=x86_64-pc-linux-gnu --target=arm-buildroot-linux-musleabi". ... (gdb) show configuration This GDB was configured as follows: configure --host=x86_64-pc-linux-gnu --target=arm-buildroot-linux-musleabi --with-auto-load-dir=$debugdir:$datadir/auto-load --with-auto-load-safe-path=$debugdir:$datadir/auto-load --with-expat --with-gdb-datadir=/home/mw/src/FAME/miro-service.buildroot/output/host/usr/share/gdb (relocatable) --with-jit-reader-dir=/home/mw/src/FAME/miro-service.buildroot/output/host/usr/lib/gdb (relocatable) --without-libunwind-ia64 --with-lzma --without-guile --with-separate-debug-dir=/home/mw/src/FAME/miro-service.buildroot/output/host/usr/lib/debug (relocatable) --without-babeltrace ("Relocatable" means the directory can be moved with the GDB installation tree, and GDB will still find it.) (gdb) Is there a minimum required gdb version for gdb-mi to work correctly? > (The additional commands are commands injected by gdb-mi.el to allow > Emacs display of various information: call-stack, thread information, > etc. But they shouldn't appear in the commands you specified for your > breakpoints, so this is still some kind of problem. I cannot > reproduce it, though.) For now, I've switched back to gud-gdb without MI, which seems to work better on my setup but I'm somewhat invested in the future of gdb/gud and I think MI is a step in the right direction, so please let me know if you need any more information. Best regards, Moritz From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 23 11:14:26 2018 Received: (at 31918) by debbugs.gnu.org; 23 Jun 2018 15:14:26 +0000 Received: from localhost ([127.0.0.1]:33349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWkF8-00080k-6l for submit@debbugs.gnu.org; Sat, 23 Jun 2018 11:14:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60687) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWkF6-00080X-9A for 31918@debbugs.gnu.org; Sat, 23 Jun 2018 11:14:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWkEx-0007FN-TR for 31918@debbugs.gnu.org; Sat, 23 Jun 2018 11:14:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWkEx-0007FG-PR; Sat, 23 Jun 2018 11:14:15 -0400 Received: from [176.228.60.248] (port=1889 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fWkEx-00032S-8o; Sat, 23 Jun 2018 11:14:15 -0400 Date: Sat, 23 Jun 2018 18:14:27 +0300 Message-Id: <83tvpttu0c.fsf@gnu.org> From: Eli Zaretskii To: Moritz Wilhelmy In-reply-to: <87zhzlbl16.fsf@barfooze.de> (message from Moritz Wilhelmy on Sat, 23 Jun 2018 17:05:41 +0200) Subject: Re: bug#31918: 25.3; gud inserts invalid gdb commands References: <871sd1ckvf.fsf@barfooze.de> <831sd0rz9l.fsf@gnu.org> <87zhzlbl16.fsf@barfooze.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31918 Cc: 31918@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Moritz Wilhelmy > Date: Sat, 23 Jun 2018 17:05:41 +0200 > > $ exec ${BR}/output/host/usr/bin/arm-buildroot-linux-musleabi-gdb > GNU gdb (GDB) 7.10.1 > Copyright (C) 2015 Free Software Foundation, Inc. > ... > This GDB was configured as "--host=x86_64-pc-linux-gnu --target=arm-buildroot-linux-musleabi". > ... > (gdb) show configuration > This GDB was configured as follows: > configure --host=x86_64-pc-linux-gnu --target=arm-buildroot-linux-musleabi > --with-auto-load-dir=$debugdir:$datadir/auto-load > --with-auto-load-safe-path=$debugdir:$datadir/auto-load > --with-expat > --with-gdb-datadir=/home/mw/src/FAME/miro-service.buildroot/output/host/usr/share/gdb (relocatable) > --with-jit-reader-dir=/home/mw/src/FAME/miro-service.buildroot/output/host/usr/lib/gdb (relocatable) > --without-libunwind-ia64 > --with-lzma > --without-guile > --with-separate-debug-dir=/home/mw/src/FAME/miro-service.buildroot/output/host/usr/lib/debug (relocatable) > --without-babeltrace > > ("Relocatable" means the directory can be moved with the GDB installation > tree, and GDB will still find it.) > (gdb) > > Is there a minimum required gdb version for gdb-mi to work correctly? GDB 7.0, AFAIK. But it's possible that some features need a newer GDB. If you invoke GDB from the shell with -i=mi, can you reproduce the problem? Also, do these commands appear in "info break" output right after you define the breakpoint, or do you need the breakpoint to break a few times before that happens? From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 23 12:13:32 2018 Received: (at 31918) by debbugs.gnu.org; 23 Jun 2018 16:13:32 +0000 Received: from localhost ([127.0.0.1]:33370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWlAK-0000wZ-9h for submit@debbugs.gnu.org; Sat, 23 Jun 2018 12:13:32 -0400 Received: from inferno.barfooze.de ([5.9.157.210]:61660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWlAG-0000wP-HQ for 31918@debbugs.gnu.org; Sat, 23 Jun 2018 12:13:28 -0400 Received: from localhost ([10.128.128.11]) by inferno.barfooze.de (8.15.2/8.15.2) with ESMTPS id w5NGDRuD068904 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <31918@debbugs.gnu.org>; Sat, 23 Jun 2018 18:13:27 +0200 (CEST) (envelope-from mw@barfooze.de) Received: by localhost (Postfix, from userid 1000) id 1CBDE21090; Sat, 23 Jun 2018 18:13:27 +0200 (CEST) References: <871sd1ckvf.fsf@barfooze.de> <831sd0rz9l.fsf@gnu.org> <87zhzlbl16.fsf@barfooze.de> <83tvpttu0c.fsf@gnu.org> User-agent: mu4e 1.0; emacs 25.3.1 From: Moritz Wilhelmy To: 31918@debbugs.gnu.org Subject: Re: bug#31918: 25.3; gud inserts invalid gdb commands In-reply-to: <83tvpttu0c.fsf@gnu.org> Date: Sat, 23 Jun 2018 18:13:27 +0200 Message-ID: <87y3f5bhw8.fsf@barfooze.de> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.83 on 192.168.42.2 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 31918 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sat, Jun 23 2018, Eli Zaretskii wrote: > GDB 7.0, AFAIK. But it's possible that some features need a newer > GDB. I'll try this as soon as we get this kernel update out of the door. > If you invoke GDB from the shell with -i=mi, can you reproduce the > problem? I did one debug session last week with manually running gdb -i=mi to verify whether this is the case, and console gdb did not insert these commands so my debugging session ran without problems. I also noticed that Linux console output takes the following form on my setup: @"console message from the kernel" These show up in the terminal, but not in gdb-mi inside Emacs, making Linux debugging with gdb-mi a bit cumbersome at the moment. I think this is the format that's described in (info "(gdb) GDB/MI Stream Records"). > Also, do these commands appear in "info break" output right after you > define the breakpoint, or do you need the breakpoint to break a few > times before that happens? I'll check on Monday. I think they appeared right away but I might be wrong. Best regards, Moritz From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 23 12:31:07 2018 Received: (at 31918) by debbugs.gnu.org; 23 Jun 2018 16:31:07 +0000 Received: from localhost ([127.0.0.1]:33382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWlRL-0001NF-4D for submit@debbugs.gnu.org; Sat, 23 Jun 2018 12:31:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWlRI-0001Mm-N8 for 31918@debbugs.gnu.org; Sat, 23 Jun 2018 12:31:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWlRA-0004Tl-I7 for 31918@debbugs.gnu.org; Sat, 23 Jun 2018 12:30:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWlRA-0004Th-Dp; Sat, 23 Jun 2018 12:30:56 -0400 Received: from [176.228.60.248] (port=2645 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fWlR9-0000ET-V7; Sat, 23 Jun 2018 12:30:56 -0400 Date: Sat, 23 Jun 2018 19:31:06 +0300 Message-Id: <83sh5dtqgl.fsf@gnu.org> From: Eli Zaretskii To: Moritz Wilhelmy In-reply-to: <87y3f5bhw8.fsf@barfooze.de> (message from Moritz Wilhelmy on Sat, 23 Jun 2018 18:13:27 +0200) Subject: Re: bug#31918: 25.3; gud inserts invalid gdb commands References: <871sd1ckvf.fsf@barfooze.de> <831sd0rz9l.fsf@gnu.org> <87zhzlbl16.fsf@barfooze.de> <83tvpttu0c.fsf@gnu.org> <87y3f5bhw8.fsf@barfooze.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31918 Cc: 31918@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Moritz Wilhelmy > Date: Sat, 23 Jun 2018 18:13:27 +0200 > > I also noticed that Linux console output takes the following form on my > setup: > @"console message from the kernel" > These show up in the terminal, but not in gdb-mi inside Emacs, making > Linux debugging with gdb-mi a bit cumbersome at the moment. Does it perhaps appear in the I/O window? There's also an unused gdbmi-bnf-target-stream-output, maybe you could use it for this. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 24 22:24:20 2018 Received: (at control) by debbugs.gnu.org; 25 Jul 2018 02:24:20 +0000 Received: from localhost ([127.0.0.1]:55914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fi9TP-0001Ep-W4 for submit@debbugs.gnu.org; Tue, 24 Jul 2018 22:24:20 -0400 Received: from mail-it0-f51.google.com ([209.85.214.51]:37560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fi9TO-0001Eb-DH for control@debbugs.gnu.org; Tue, 24 Jul 2018 22:24:19 -0400 Received: by mail-it0-f51.google.com with SMTP id h20-v6so5476640itf.2 for ; Tue, 24 Jul 2018 19:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=pYJcOLZxopqZJktpR+Hf2KalLiSbb5hSug2UDAk4rzM=; b=S+L8VEc5F6t7gkw8UwRGVj2CnHxe+bCpWtoUbVtbn1AEvu0tjHQo6wkMy63WzJrGX6 VlEONHQYL7YwTuqNHok2H8juJZShD7ofgn2eA/TXoM2w7AKhzbung1W0rWsumOiKPyQX b+d9HhfnGCMTAyR9a+u6HTmtLJg2fy6M2VaS0xpEm0HEnzwoUqMxWcnoHKHtNdjSTYH9 fTj3WorCTrQaId+ekzAUkVxE8TZhCawzwGoRfpqAx9SCH+9+d93cUV9aarTl3s7AtLqH twUA9UqFlMGAEzpipdLLGBmKgNl0CVWMzhdC1l64F7qkD2AvpHZfWm1jITWzOoMfDtQU 5iTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=pYJcOLZxopqZJktpR+Hf2KalLiSbb5hSug2UDAk4rzM=; b=l0t3LFLZ0Krzjk5ekFIMA9U7FI7x8z75WNTk2HD2slqUAqHEOVYWDxumEAorEMshMc xgusWhFHNBIbhA2zC95gU7o6YvASosMIxTSPCKeKQRQ/iai0DUrt8vb3qAhnDH48UowW WeJEZph1a1cKbwiUfNuAAGPpbxainusznv3VptGf1BFGESk6RvhlwsZFc6zz4ulylZnn 5fC/ebSINmBNcnWVIh4o/IrpPu4+dGHzs6Z+BWAsABiAdV6xTiQBfFgu1yJbQg312SmO 1MTG7V/WU1ATHaId3UGX6ImDlK/8692GU9Dz0VkRiBGafyZiYG7MT0oXGb6yZIdM7QH5 TUdQ== X-Gm-Message-State: AOUpUlHzzcFWrWY3op+3jZJt6sMSTQbuzfv9FsjeNxtelUw3CDbAp1sV Bez4nl5cXedS3k1VMXq5rNPUjWLf X-Google-Smtp-Source: AAOMgpcy+maaYVW0Auo1z4Q4nV8/tcBmRnwfI/X4iixRI80OWzQs6I+mvo7D9f4Z/sFtevlzvnsuLA== X-Received: by 2002:a24:e008:: with SMTP id c8-v6mr4440371ith.99.1532485452659; Tue, 24 Jul 2018 19:24:12 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id f204-v6sm1876414itc.13.2018.07.24.19.24.11 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Jul 2018 19:24:12 -0700 (PDT) From: Noam Postavsky To: control@debbugs.gnu.org Subject: control message for bug #31918 Date: Tue, 24 Jul 2018 22:24:11 -0400 Message-ID: <87d0vc3vec.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) retitle 31918 25.3; gud inserts invalid gdb commands (gdb 7.10.1 --target=arm-buildroot-...) tags 31918 + unreproducible quit From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 12 23:38:36 2019 Received: (at 31918) by debbugs.gnu.org; 13 Jul 2019 03:38:36 +0000 Received: from localhost ([127.0.0.1]:41248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm8rr-00011z-P8 for submit@debbugs.gnu.org; Fri, 12 Jul 2019 23:38:35 -0400 Received: from quimby.gnus.org ([80.91.231.51]:54864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm8rp-00011n-W9 for 31918@debbugs.gnu.org; Fri, 12 Jul 2019 23:38:34 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hm8rm-000584-HD; Sat, 13 Jul 2019 05:38:32 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#31918: 25.3; gud inserts invalid gdb commands References: <871sd1ckvf.fsf@barfooze.de> <831sd0rz9l.fsf@gnu.org> <87zhzlbl16.fsf@barfooze.de> <83tvpttu0c.fsf@gnu.org> <87y3f5bhw8.fsf@barfooze.de> <83sh5dtqgl.fsf@gnu.org> Date: Sat, 13 Jul 2019 05:38:30 +0200 In-Reply-To: <83sh5dtqgl.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 23 Jun 2018 19:31:06 +0300") Message-ID: <87a7diy56x.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> From: Moritz Wilhelmy >> Date: Sat, 23 Jun 2018 18:13:27 +0200 >> >> I also noticed that Linux console output takes the following form on my >> setup: >> @"console message fr [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31918 Cc: 31918@debbugs.gnu.org, Moritz Wilhelmy X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: Moritz Wilhelmy >> Date: Sat, 23 Jun 2018 18:13:27 +0200 >> >> I also noticed that Linux console output takes the following form on my >> setup: >> @"console message from the kernel" >> These show up in the terminal, but not in gdb-mi inside Emacs, making >> Linux debugging with gdb-mi a bit cumbersome at the moment. > > Does it perhaps appear in the I/O window? > > There's also an unused gdbmi-bnf-target-stream-output, maybe you could > use it for this. More information was requested a year ago, but apparently wasn't given, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 12 23:38:40 2019 Received: (at control) by debbugs.gnu.org; 13 Jul 2019 03:38:41 +0000 Received: from localhost ([127.0.0.1]:41251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm8rw-00012H-JK for submit@debbugs.gnu.org; Fri, 12 Jul 2019 23:38:40 -0400 Received: from quimby.gnus.org ([80.91.231.51]:54880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm8ru-00012A-Ut for control@debbugs.gnu.org; Fri, 12 Jul 2019 23:38:39 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hm8rs-00058G-C9 for control@debbugs.gnu.org; Sat, 13 Jul 2019 05:38:38 +0200 Date: Sat, 13 Jul 2019 05:38:35 +0200 Message-Id: <878st2y56s.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #31918 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 31918 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 31918 quit From unknown Wed Jun 18 23:07:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 10 Aug 2019 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator