From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Contributing LLVM.org patches to gud.el Date: Thu, 12 Feb 2015 22:15:31 +0200 Message-ID: <8361b66g4c.fsf@gnu.org> References: <87mw4rxkzv.fsf@fencepost.gnu.org> <87y4oavxcy.fsf@fencepost.gnu.org> <87d25juy8m.fsf@fencepost.gnu.org> <83iofa8lu2.fsf@gnu.org> <87wq3qrvjz.fsf@fencepost.gnu.org> <83386d92ox.fsf@gnu.org> <874mqtsoqy.fsf@fencepost.gnu.org> <83y4o57lfj.fsf@gnu.org> <87oap1nmef.fsf@uwakimon.sk.tsukuba.ac.jp> <54DAD0C3.9040103@dancol.org> <8761b8raxh.fsf@fencepost.gnu.org> <54DB343D.5070008@dancol.org> <87h9usoa5r.fsf@uwakimon.sk.tsukuba.ac.jp> <838ug477ox.fsf@gnu.org> <83iof75c6e.fsf@gnu.org> <54DCE616.30607@dancol.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1423772171 23327 80.91.229.3 (12 Feb 2015 20:16:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Feb 2015 20:16:11 +0000 (UTC) Cc: stephen@xemacs.org, dak@gnu.org, emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 12 21:16:02 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YM0B4-0002eB-AX for ged-emacs-devel@m.gmane.org; Thu, 12 Feb 2015 21:15:58 +0100 Original-Received: from localhost ([::1]:51960 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YM0B3-0001i9-NT for ged-emacs-devel@m.gmane.org; Thu, 12 Feb 2015 15:15:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YM0Ao-0001i1-EK for emacs-devel@gnu.org; Thu, 12 Feb 2015 15:15:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YM0An-0002bS-3s for emacs-devel@gnu.org; Thu, 12 Feb 2015 15:15:42 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:64326) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YM0Aj-0002a8-Gu; Thu, 12 Feb 2015 15:15:37 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NJO00200DE2NS00@a-mtaout23.012.net.il>; Thu, 12 Feb 2015 22:15:35 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJO002CRDLZKI60@a-mtaout23.012.net.il>; Thu, 12 Feb 2015 22:15:35 +0200 (IST) In-reply-to: <54DCE616.30607@dancol.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182977 Archived-At: > Date: Thu, 12 Feb 2015 09:42:46 -0800 > From: Daniel Colascione > Cc: dak@gnu.org, emacs-devel@gnu.org > > void > foo(void* context) > { > struct value* c = context; > bar(c); > } > > Say I'm broken into the program just before the call to bar and I want > to inspect some field of c. I should be able to print c->field, right? > Except GDB tells me that c is , even though context is > right there and contains the same bits! Not sure what you mean by "right there". IME, in these cases 'context' is also . Try "info address" on both, and see what it tells you. In any case, I'm far from being an expert om DWARF and on recording variable assignments in debug info. I really suggest to report such problems to the GCC and GDB developers, in case there are bugs there.