public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tromey at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/53927] wrong value for DW_AT_static_link Date: Mon, 02 Mar 2015 14:59:00 -0000 [thread overview] Message-ID: <bug-53927-4-Y68I9AJRNv@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-53927-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53927 --- Comment #16 from Tom Tromey <tromey at gcc dot gnu.org> --- (In reply to Pierre-Marie de Rodat from comment #15) > (In reply to Pierre-Marie de Rodat from comment #13) > > [1] This patch teaches GDB how to use DW_AT_static_link in order to find the > > frame corresponding to the lexically enclosing scope. I think I will try to > > submit it to GDB soon. > > For the record, here it is: > <https://www.sourceware.org/ml/gdb-patches/2015-03/msg00040.html>. I'm curious if you tried it on the test case in this PR. In the patch you wrote: > Since I'm not sure of how this issue should be solved, I'm nevertheless posting this patch here so this matter can be discussed. In the context of this feature, I think we need a backlink from all symbols to the corresponding embedding block but on the other hand only a few blocks have static link: maybe we could turn this static_link field into a objfile-based hashtable lookup. Thoughts? Yeah, growing these is to be avoided. My patch for this added a method to symbol_computed_ops instead. Unfortunately gitorious is acting weird so you can't see the patch online :-(. But you can fetch from https://gitorious.org/binutils-gdb/gdb.git and look at the branch static-link-fix if you like.
next prev parent reply other threads:[~2015-03-02 14:59 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-07-11 13:20 [Bug debug/53927] New: " tromey at gcc dot gnu.org 2013-01-24 20:25 ` [Bug debug/53927] " tromey at gcc dot gnu.org 2013-01-31 15:01 ` ebotcazou at gcc dot gnu.org 2013-01-31 19:23 ` jason at gcc dot gnu.org 2013-01-31 19:40 ` tromey at gcc dot gnu.org 2013-01-31 20:12 ` jason at gcc dot gnu.org 2013-01-31 22:34 ` ebotcazou at gcc dot gnu.org 2013-01-31 23:23 ` jason at gcc dot gnu.org 2013-02-01 18:22 ` tromey at gcc dot gnu.org 2013-02-01 22:17 ` ebotcazou at gcc dot gnu.org 2013-02-01 22:21 ` ebotcazou at gcc dot gnu.org 2014-05-09 16:14 ` ebotcazou at gcc dot gnu.org 2014-06-06 8:14 ` ebotcazou at gcc dot gnu.org 2015-02-25 15:02 ` derodat at adacore dot com 2015-02-25 15:03 ` derodat at adacore dot com 2015-03-02 14:42 ` derodat at adacore dot com 2015-03-02 14:59 ` tromey at gcc dot gnu.org [this message] 2015-03-03 10:02 ` derodat at adacore dot com 2015-03-03 11:03 ` ebotcazou at gcc dot gnu.org 2015-03-03 15:13 ` tromey at gcc dot gnu.org 2015-03-09 15:56 ` derodat at adacore dot com 2015-03-10 9:41 ` ebotcazou at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-53927-4-Y68I9AJRNv@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).