summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-06-22 16:59:31 +0200
committerMark Wielaard <mjw@redhat.com>2009-06-22 16:59:31 +0200
commit4116c576d5654287b0af598aee4a14eb2af73224 (patch)
tree9e86b8d849da66c1b495f8910e6008a01715a8b4
parent6a35d102ce201e142f1133d9d5f0df6d47e3cd66 (diff)
downloadsystemtap-steved-4116c576d5654287b0af598aee4a14eb2af73224.tar.gz
systemtap-steved-4116c576d5654287b0af598aee4a14eb2af73224.tar.xz
systemtap-steved-4116c576d5654287b0af598aee4a14eb2af73224.zip
PR10308 Beginning of statement check should provide alternatives.
tapsets.cxx (query_cu): Add suggested address if found to error message.
-rw-r--r--tapsets.cxx2
1 files changed, 2 insertions, 0 deletions
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)