From b487a14d6d160f38dd1dbabe305b373b37972074 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Fri, 26 Sep 2008 15:23:10 -0400 Subject: PR6916: fix STRUCT1 ($var alternatives error message syntax) regression --- tapsets.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tapsets.cxx') 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(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(pc) + + (alternatives.str() == "" ? "" : (" (alternatives:" + alternatives.str () + ")"))); } -- cgit