From f47016f39fc445db01edafdf4a343406f6165adb Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 11 Sep 2009 17:23:08 +0200 Subject: Add actual pc address to semantic error about inaccessible variables. * dwflpp.cxx (translate_location): Add hex pc address to semantic error when dwarf_getlocation_addr() doesn't return expression. --- dwflpp.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dwflpp.cxx') diff --git a/dwflpp.cxx b/dwflpp.cxx index 3e451916..dcf4182d 100644 --- a/dwflpp.cxx +++ b/dwflpp.cxx @@ -1717,7 +1717,8 @@ dwflpp::translate_location(struct obstack *pool, /* Fall through. */ case 0: /* Shouldn't happen. */ - throw semantic_error ("not accessible at this address", e->tok); + throw semantic_error ("not accessible at this address (" + + lex_cast_hex(pc) + ")", e->tok); default: /* Shouldn't happen. */ case -1: -- cgit