From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: GDB and compiler-operations (was: Lisp_Marker size on 32bit systems) Date: Fri, 07 Sep 2018 17:23:45 +0300 Message-ID: <83y3cdtmha.fsf@gnu.org> References: <5a2c709e-aa49-b5b6-3fbe-fb8bd33acb23@cs.ucla.edu> <06d01a4b-9d98-df5b-be8a-aeda449acad7@cs.ucla.edu> <83bm99vijd.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1536330118 328 195.159.176.226 (7 Sep 2018 14:21:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2018 14:21:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 07 16:21:54 2018 Return-path: Envelope-to: ged-emacs-devel@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 1fyHdy-0008Qc-FX for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2018 16:21:54 +0200 Original-Received: from localhost ([::1]:38920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyHg4-0001xL-W2 for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2018 10:24:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyHfv-0001wS-Uj for emacs-devel@gnu.org; Fri, 07 Sep 2018 10:23:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fyHfq-0007I7-0C for emacs-devel@gnu.org; Fri, 07 Sep 2018 10:23:55 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyHfp-0007Hj-SL; Fri, 07 Sep 2018 10:23:49 -0400 Original-Received: from [176.228.60.248] (port=2086 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fyHfo-0006M9-IM; Fri, 07 Sep 2018 10:23:49 -0400 In-reply-to: (message from Stefan Monnier on Fri, 07 Sep 2018 10:12:06 -0400) 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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229408 Archived-At: > From: Stefan Monnier > Date: Fri, 07 Sep 2018 10:12:06 -0400 > > BTW, after too many years learning to only use C functions and variables > in GDB (and not macros, CPP constants, or other compile-time-only > thingies), I only recently started to extend my GDB world. Good for you! > Along the way I discovered that while `sizeof` works great, `offsetof` > gives me an error: > > No symbol "offsetof" in current context. AFAIK, GDB has special support for sizeof, but not for offsetof. Maybe you should ask for a new GDB feature. Or you could use the trick I used when Paul asked for values of offsets.