public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: jkratoch@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  archer-jankratochvil-entryval: Missing DW_TAG_GNU_call_site_parameter is also not invalid.
Date: Sun, 05 Sep 2010 12:26:00 -0000	[thread overview]
Message-ID: <20100905122638.11181.qmail@sourceware.org> (raw)

The branch, archer-jankratochvil-entryval has been updated
       via  970cbf09881497309688104d92011dac29363fb6 (commit)
      from  acaf239bbbc87d909fe4d3ac1eb26bdcdcb137de (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 970cbf09881497309688104d92011dac29363fb6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Sep 5 14:26:24 2010 +0200

    Missing DW_TAG_GNU_call_site_parameter is also not invalid.

-----------------------------------------------------------------------

Summary of changes:
 gdb/dwarf2loc.c |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

First 500 lines of diff:
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index 651c8f4..924f317 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -748,8 +748,18 @@ dwarf_expr_regnum_entry_value (void *baton, int regnum, CORE_ADDR deref_size)
 	break;
     }
   if (iparams == call_site_stuff->parameter_count)
-    error (_("Cannot find register %d at DW_TAG_GNU_call_site %s"),
-	   regnum, paddress (caller_gdbarch, caller_pc));
+    {
+      struct minimal_symbol *msym = lookup_minimal_symbol_by_pc (caller_pc);
+
+      /* DW_TAG_GNU_call_site_parameter will be missing just if GCC could not
+         determine its value.  So do not complain more than
+         VALUE_OPTIMIZED_OUT_ERROR.  */
+      throw_error (VALUE_OPTIMIZED_OUT_ERROR,
+		   _("Cannot find register %d at "
+		     "DW_TAG_GNU_call_site %s at %s"),
+		   regnum, paddress (caller_gdbarch, caller_pc),
+		   ! msym ? "???" : SYMBOL_PRINT_NAME (msym)); 
+    }
 
   if (deref_size == -1)
     {


hooks/post-receive
--
Repository for Project Archer.


                 reply	other threads:[~2010-09-05 12:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20100905122638.11181.qmail@sourceware.org \
    --to=jkratoch@sourceware.org \
    --cc=archer-commits@sourceware.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: link
Be 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).