From 4116c576d5654287b0af598aee4a14eb2af73224 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Mon, 22 Jun 2009 16:59:31 +0200 Subject: PR10308 Beginning of statement check should provide alternatives. tapsets.cxx (query_cu): Add suggested address if found to error message. --- tapsets.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tapsets.cxx b/tapsets.cxx index bc09e168..7aee6930 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -1652,6 +1652,8 @@ query_cu (Dwarf_Die * cudie, void * arg) stringstream msg; msg << "address 0x" << hex << queryaddr << " does not match the beginning of a statement"; + if (address_line) + msg << " (try 0x" << hex << lineaddr << ")"; if (! q->sess.guru_mode) throw semantic_error(msg.str()); else if (! q->sess.suppress_warnings) -- cgit