diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-06-22 16:59:31 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-06-22 16:59:31 +0200 |
commit | 4116c576d5654287b0af598aee4a14eb2af73224 (patch) | |
tree | 9e86b8d849da66c1b495f8910e6008a01715a8b4 | |
parent | 6a35d102ce201e142f1133d9d5f0df6d47e3cd66 (diff) | |
download | systemtap-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.cxx | 2 |
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) |