summaryrefslogtreecommitdiffstats
path: root/dwflpp.cxx
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-09-11 17:23:08 +0200
committerMark Wielaard <mjw@redhat.com>2009-09-11 17:23:08 +0200
commitf47016f39fc445db01edafdf4a343406f6165adb (patch)
treee583ddb04850bea0bf1a48c84417b83ec48da947 /dwflpp.cxx
parent2f960e8ddd0fd7305cf95712f3f0c05e1c585f4e (diff)
downloadsystemtap-steved-f47016f39fc445db01edafdf4a343406f6165adb.tar.gz
systemtap-steved-f47016f39fc445db01edafdf4a343406f6165adb.tar.xz
systemtap-steved-f47016f39fc445db01edafdf4a343406f6165adb.zip
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.
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r--dwflpp.cxx3
1 files changed, 2 insertions, 1 deletions
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: