public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM] archer-jankratochvil-entryval: Missing DW_TAG_GNU_call_site_parameter is also not invalid.
@ 2010-09-05 12:26 jkratoch
0 siblings, 0 replies; only message in thread
From: jkratoch @ 2010-09-05 12:26 UTC (permalink / raw)
To: archer-commits
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-09-05 12:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-05 12:26 [SCM] archer-jankratochvil-entryval: Missing DW_TAG_GNU_call_site_parameter is also not invalid 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).