From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 16 22:18:09 2017 Received: (at submit) by debbugs.gnu.org; 17 Nov 2017 03:18:09 +0000 Received: from localhost ([127.0.0.1]:44086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFXAO-0007ke-Nc for submit@debbugs.gnu.org; Thu, 16 Nov 2017 22:18:09 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFXAN-0007kE-7L for submit@debbugs.gnu.org; Thu, 16 Nov 2017 22:18:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFXAG-00062d-IK for submit@debbugs.gnu.org; Thu, 16 Nov 2017 22:18:01 -0500 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,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60938) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eFXAG-00062J-Eh for submit@debbugs.gnu.org; Thu, 16 Nov 2017 22:18:00 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFXAE-0001vy-Qe for bug-gnu-emacs@gnu.org; Thu, 16 Nov 2017 22:18:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFXAC-0005uA-HN for bug-gnu-emacs@gnu.org; Thu, 16 Nov 2017 22:17:58 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFXAC-0005tz-D3 for bug-gnu-emacs@gnu.org; Thu, 16 Nov 2017 22:17:56 -0500 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1eFXAB-0005W1-VN; Thu, 16 Nov 2017 22:17:56 -0500 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: bug-gnu-emacs@gnu.org Subject: 27.0.50; running under gdb Message-Id: Date: Thu, 16 Nov 2017 22:17:55 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit 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: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) I cd to src and type gdb emacs r and I get the error message there is no member named name I am using GDB version 7.7.1 which is in Trisquel 7. In principle I could install the latest GDB, but it would be a lot of work and I doubt it would make a difference. I think the bug is in src/.gdbinit. In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.23) of 2017-11-15 built on freetop Repository revision: 52d822f31bc7cb57694c1e209b2d02e5efb8f48c System Description: Trisquel GNU/Linux 7.0, Belenos Recent messages: Loading paren...done Loading view...done For information about GNU Emacs and the GNU system, type C-h C-a. Note: file is write protected [4 times] Counting messages...done (No new mail has arrived) 0 new messages read ~/emacs-git/build-nov-15/src Configured using: 'configure 'CFLAGS=-O0 -g' --with-gnutls=no' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS NOTIFY LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: RMAIL Minor modes in effect: shell-dirtrack-mode: t gpm-mouse-mode: t tooltip-mode: t global-eldoc-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 buffer-read-only: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow emacsbug mailalias pcmpl-unix shell pcomplete comint ansi-color ring rmailmm message sendmail rmc puny format-spec rfc822 mml mml-sec epa epg gnus-util mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired dired-loaddefs t-mouse term/linux elec-pair view derived time-date paren cus-start cus-load advice finder-inf package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors 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 composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 241663 17158) (symbols 48 22882 2) (miscs 40 1971 1937) (strings 32 36389 2268) (string-bytes 1 980507) (vectors 16 15625) (vector-slots 8 491132 19474) (floats 8 66 295) (intervals 56 56888 41) (buffers 992 32) (heap 1024 17980 1513)) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) Skype: No way! See https://stallman.org/skype.html. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 17 05:10:45 2017 Received: (at 29332-done) by debbugs.gnu.org; 17 Nov 2017 10:10:45 +0000 Received: from localhost ([127.0.0.1]:44289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFdbf-0000kh-KT for submit@debbugs.gnu.org; Fri, 17 Nov 2017 05:10:45 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52669) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFdbe-0000kV-DY for 29332-done@debbugs.gnu.org; Fri, 17 Nov 2017 05:10:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFdbW-0002vQ-7B for 29332-done@debbugs.gnu.org; Fri, 17 Nov 2017 05:10:37 -0500 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,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFdbW-0002v2-36 for 29332-done@debbugs.gnu.org; Fri, 17 Nov 2017 05:10:34 -0500 Received: from [176.228.60.248] (port=2846 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eFdbJ-0000nU-35; Fri, 17 Nov 2017 05:10:21 -0500 Date: Fri, 17 Nov 2017 12:10:04 +0200 Message-Id: <83y3n5gqrn.fsf@gnu.org> From: Eli Zaretskii To: rms@gnu.org In-reply-to: (message from Richard Stallman on Thu, 16 Nov 2017 22:17:55 -0500) Subject: Re: bug#29332: 27.0.50; running under gdb References: 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: 29332-done Cc: 29332-done@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: -5.0 (-----) > From: Richard Stallman > Date: Thu, 16 Nov 2017 22:17:55 -0500 > > I cd to src and type > > gdb emacs > > r > > and I get the error message > > there is no member named name > > I am using GDB version 7.7.1 which is in Trisquel 7. > In principle I could install the latest GDB, but it would be a lot of work > and I doubt it would make a difference. I think the bug is in src/.gdbinit. You are right. Fixed on the release branch with the changes below. commit 42c8768134dcfaaf08637e36fe478605c1957517 Author: Eli Zaretskii AuthorDate: Fri Nov 17 12:08:06 2017 +0200 Commit: Eli Zaretskii CommitDate: Fri Nov 17 12:08:06 2017 +0200 Fix .gdbinit following lisp.h changes * src/.gdbinit (xsymname, pwinx, pgx, xbuffer, xcar, xcdr, xlist) (xprintstr): Adapt to latest changes in Lisp object C structures. (Bug#29332) diff --git a/src/.gdbinit b/src/.gdbinit index 60f6348..48bb5df 100644 --- a/src/.gdbinit +++ b/src/.gdbinit @@ -78,7 +78,7 @@ end # Access the name of a symbol define xsymname xgetsym $arg0 - set $symname = $ptr->name + set $symname = $ptr->u.s.name end # Set up something to print out s-expressions. @@ -376,7 +376,7 @@ define pwinx xgetptr $w->buffer set $tem = (struct buffer *) $ptr xgetptr $tem->name_ - printf "%s", ((struct Lisp_String *) $ptr)->data + printf "%s", ((struct Lisp_String *) $ptr)->u.s.data printf "\n" xgetptr $w->start set $tem = (struct Lisp_Marker *) $ptr @@ -504,7 +504,7 @@ define pgx xgettype ($g.object) if ($type == Lisp_String) xgetptr $g.object - printf " str=0x%x[%d]", ((struct Lisp_String *)$ptr)->data, $g.charpos + printf " str=0x%x[%d]", ((struct Lisp_String *)$ptr)->u.s.data, $g.charpos else printf " pos=%d", $g.charpos end @@ -896,7 +896,7 @@ define xbuffer xgetptr $ print (struct buffer *) $ptr xgetptr $->name_ - output ((struct Lisp_String *) $ptr)->data + output ((struct Lisp_String *) $ptr)->u.s.data echo \n end document xbuffer @@ -935,7 +935,7 @@ end define xcar xgetptr $ xgettype $ - print/x ($type == Lisp_Cons ? ((struct Lisp_Cons *) $ptr)->car : 0) + print/x ($type == Lisp_Cons ? ((struct Lisp_Cons *) $ptr)->u.s.car : 0) end document xcar Assume that $ is an Emacs Lisp pair and print its car. @@ -944,7 +944,7 @@ end define xcdr xgetptr $ xgettype $ - print/x ($type == Lisp_Cons ? ((struct Lisp_Cons *) $ptr)->u.cdr : 0) + print/x ($type == Lisp_Cons ? ((struct Lisp_Cons *) $ptr)->u.s.u.cdr : 0) end document xcdr Assume that $ is an Emacs Lisp pair and print its cdr. @@ -957,9 +957,9 @@ define xlist set $nil = $ptr set $i = 0 while $cons != $nil && $i < 10 - p/x $cons->car + p/x $cons->u.s.car xpr - xgetptr $cons->u.cdr + xgetptr $cons->u.s.u.cdr set $cons = (struct Lisp_Cons *) $ptr set $i = $i + 1 printf "---\n" @@ -1072,13 +1072,13 @@ Print $ as a lisp object of any type. end define xprintstr - set $data = (char *) $arg0->data - set $strsize = ($arg0->size_byte < 0) ? ($arg0->size & ~ARRAY_MARK_FLAG) : $arg0->size_byte + set $data = (char *) $arg0->u.s.data + set $strsize = ($arg0->u.s.size_byte < 0) ? ($arg0->u.s.size & ~ARRAY_MARK_FLAG) : $arg0->u.s.size_byte # GDB doesn't like zero repetition counts if $strsize == 0 output "" else - output ($arg0->size > 1000) ? 0 : ($data[0])@($strsize) + output ($arg0->u.s.size > 1000) ? 0 : ($data[0])@($strsize) end end @@ -1255,7 +1255,7 @@ commands xsymname globals.f_Vinitial_window_system xgetptr $symname set $tem = (struct Lisp_String *) $ptr - set $tem = (char *) $tem->data + set $tem = (char *) $tem->u.s.data # If we are running in synchronous mode, we want a chance to look # around before Emacs exits. Perhaps we should put the break # somewhere else instead... From unknown Tue Sep 23 05:52:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 15 Dec 2017 12:24:06 +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