diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-09-11 17:23:08 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-09-11 17:23:08 +0200 |
commit | f47016f39fc445db01edafdf4a343406f6165adb (patch) | |
tree | e583ddb04850bea0bf1a48c84417b83ec48da947 /dwflpp.cxx | |
parent | 2f960e8ddd0fd7305cf95712f3f0c05e1c585f4e (diff) | |
download | systemtap-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.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |