diff --git a/src/plugins/debugger/stackframe.cpp b/src/plugins/debugger/stackframe.cpp index 0884eb0cf12..f7ceb9f4ac4 100644 --- a/src/plugins/debugger/stackframe.cpp +++ b/src/plugins/debugger/stackframe.cpp @@ -36,6 +36,8 @@ #include #include +#include + namespace Debugger { namespace Internal { @@ -103,6 +105,7 @@ QString StackFrame::toToolTip() const str << ""; str <<"

" << tr("Note:") << " "; + bool showDistributionNote = false; if (isUsable()) { str << tr("Sources for this frame are available.
Double-click on " "the file name to open an editor."); @@ -110,13 +113,17 @@ QString StackFrame::toToolTip() const 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."); + "accessible."); + showDistributionNote = true; } 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 separate packages."); + "frame. However, matching sources have not been found."); + showDistributionNote = true; + } + if (!Utils::HostOsInfo::isWindowsHost() && showDistributionNote) { + str << QLatin1String(" ") << + tr("Note that most distributions ship debug information " + "in separate packages."); } str << "";