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

@@ -97,14 +97,18 @@ public:
class CPPTOOLS_EXPORT AbstractEditorSupport
{
public:
AbstractEditorSupport(CppModelManagerInterface *modelmanager)
: m_modelmanager(modelmanager) {}
virtual ~AbstractEditorSupport() {}
explicit AbstractEditorSupport(CppModelManagerInterface *modelmanager);
virtual ~AbstractEditorSupport();
virtual QByteArray contents() const = 0;
virtual QString fileName() const = 0;
void updateDocument()
{ m_modelmanager->updateSourceFiles(QStringList() << fileName()); }
void updateDocument();
// TODO: find a better place for common utility functions
static QString functionAt(const CppModelManagerInterface *mm,
const QString &fileName,
int line, int column);
private:
CppModelManagerInterface *m_modelmanager;