diff options
author | hjk <qtc-committer@nokia.com> | 2012-03-29 10:22:05 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-03-29 10:32:24 +0200 |
commit | 6b30d4b6f7a9e734fbb91aa04cb1e45e6fcf77e8 (patch) | |
tree | 4d416fd6ef42c7b73ede6992c49ba1d09563e793 /src/plugins/debugger/stackframe.cpp | |
parent | 8f6d915948dd9a5006ec0cc793b8ba96b82e6fb9 (diff) | |
download | qt-creator-6b30d4b6f7a9e734fbb91aa04cb1e45e6fcf77e8.tar.gz |
debugger: add some hints to tooltip of frames without debuginfo
Change-Id: I1a23cdc0926b94cefbc9953d4fcb9e0d38379bfe
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/debugger/stackframe.cpp')
-rw-r--r-- | src/plugins/debugger/stackframe.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/plugins/debugger/stackframe.cpp b/src/plugins/debugger/stackframe.cpp index 6c4fdbb62a..09841a7769 100644 --- a/src/plugins/debugger/stackframe.cpp +++ b/src/plugins/debugger/stackframe.cpp @@ -106,7 +106,26 @@ QString StackFrame::toToolTip() const str << "<tr><td>" << tr("From:") << "</td><td>" << from << "</td></tr>"; if (!to.isEmpty()) str << "<tr><td>" << tr("To:") << "</td><td>" << to << "</td></tr>"; - str << "</table></body></html>"; + str << "</table>"; + + str <<"<br> <br><i>" << tr("Note:") << " </i> "; + if (isUsable()) { + str << tr("Sources for this frame are available.<br>Double-click on " + "the file name to open an editor."); + } else if (line <= 0) { + str << tr("Binary debug information is not accessible for this " + "frame. This either means the core was not compiled " + "with debug information, or the debug information is not " + "accessible. Note that most distributions ship debug information " + "in separate packages."); + } else { + str << tr("Binary debug information is accessible for this " + "frame. However, matching sources have not been found. " + "Note that some distributions ship debug sources in " + "in separate packages."); + } + + str << "</body></html>"; return res; } |