public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-jankratochvil-entryval: fix unwinding inlined functions
@ 2010-09-04 23:06 jkratoch
  0 siblings, 0 replies; only message in thread
From: jkratoch @ 2010-09-04 23:06 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-entryval has been updated
       via  ae53ce4ec3797f52ad49d87438e527ac8d65db1a (commit)
      from  a5ab368b3fd58ca581aafca442e4706c50fc37a8 (commit)

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

- Log -----------------------------------------------------------------
commit ae53ce4ec3797f52ad49d87438e527ac8d65db1a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Sep 5 01:05:44 2010 +0200

    fix unwinding inlined functions

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

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

First 500 lines of diff:
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index 9974f7c..2627872 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -683,7 +683,7 @@ dwarf_expr_regnum_entry_value (void *baton, int regnum, CORE_ADDR deref_size)
   struct dwarf_expr_baton *debaton = (struct dwarf_expr_baton *) baton;
   struct frame_info *frame = debaton->frame;
   CORE_ADDR func_addr = get_frame_func (frame);
-  CORE_ADDR caller_pc = frame_unwind_caller_pc (frame);
+  CORE_ADDR caller_pc;
   struct gdbarch *caller_gdbarch = frame_unwind_arch (frame);
   struct frame_info *caller_frame = get_prev_frame (frame);
   struct call_site_stuff *call_site_stuff;
@@ -695,6 +695,15 @@ dwarf_expr_regnum_entry_value (void *baton, int regnum, CORE_ADDR deref_size)
   struct type *caller_core_addr_type;
   struct gdbarch *caller_arch;
 
+  if (caller_frame == NULL)
+    {
+      struct minimal_symbol *msym = lookup_minimal_symbol_by_pc (func_addr);
+      error (_("DW_OP_GNU_entry_value resolving requires caller of %s (%s)"),
+	     paddress (get_frame_arch (frame), func_addr),
+	     ! msym ? "???" : SYMBOL_PRINT_NAME (msym));
+    }
+  caller_pc = get_frame_pc (caller_frame);
+
   call_site_stuff = call_site_stuff_for_pc (caller_pc);
   if (call_site_stuff == NULL)
     {


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-09-04 23:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-04 23:06 [SCM] archer-jankratochvil-entryval: fix unwinding inlined functions jkratoch

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).