Added ToolTip support for CDB.

Make debugger tooltip API more general, have the engines check the
correct file type, figure out the expression and context from the text
editor.

Put common functionality in watchutils.cpp. In the CDB engine, check
whether a tooltip expression is a known variable within the stack frame
context. If so, retrieve via symbol group or dumpers. Cache by function
and expression.
Reviewed-by: hjk <qtc-committer@nokia.com>
This commit is contained in:
Friedemann Kleint
2009-05-14 14:29:37 +02:00
parent 11ccb57111
commit 0e3aa47fcd
23 changed files with 346 additions and 56 deletions

View File

@@ -50,6 +50,10 @@ namespace Core {
class IOptionsPage;
} // namespace Core
namespace TextEditor {
class ITextEditor;
}
namespace Debugger {
namespace Internal {
@@ -379,7 +383,7 @@ private:
void toggleBreakpoint(const QString &fileName, int lineNumber);
void toggleBreakpointEnabled(const QString &fileName, int lineNumber);
BreakpointData *findBreakpoint(const QString &fileName, int lineNumber);
void setToolTipExpression(const QPoint &pos, const QString &exp0);
void setToolTipExpression(const QPoint &mousePos, TextEditor::ITextEditor *editor, int cursorPos);
DebuggerRunControl *m_runControl;