diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-09-26 15:23:10 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-09-26 15:23:10 -0400 |
commit | b487a14d6d160f38dd1dbabe305b373b37972074 (patch) | |
tree | 78875ffa9728682b00f0f35f50e36199c66b644c /tapsets.cxx | |
parent | 80b4ad8b10c4a27d50bc420e44e77961c9638daf (diff) | |
download | systemtap-steved-b487a14d6d160f38dd1dbabe305b373b37972074.tar.gz systemtap-steved-b487a14d6d160f38dd1dbabe305b373b37972074.tar.xz systemtap-steved-b487a14d6d160f38dd1dbabe305b373b37972074.zip |
PR6916: fix STRUCT1 ($var alternatives error message syntax) regression
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index ab8f6c94..b1475997 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -2242,7 +2242,9 @@ struct dwflpp die = dwarf_formref_die (&attr_mem, &vardie); stringstream alternatives; print_members(die,alternatives); - throw semantic_error("Translation failure : \n ALTERNATIVES [ " + alternatives.str() + " ] \n"); + throw semantic_error("unable to find local '" + local + "'" + + " near pc " + lex_cast_hex<string>(pc) + + (alternatives.str() == "" ? "" : (" (alternatives:" + alternatives.str () + ")"))); } /* Translate the assignment part, either @@ -2316,7 +2318,9 @@ struct dwflpp die = dwarf_formref_die (&attr_mem, vardie); stringstream alternatives; print_members(die,alternatives); - throw semantic_error("Translation failure : \n ALTERNATIVES [ " + alternatives.str() + " ] \n"); + throw semantic_error("unable to find return value" + " near pc " + lex_cast_hex<string>(pc) + + (alternatives.str() == "" ? "" : (" (alternatives:" + alternatives.str () + ")"))); } |