forked from qt-creator/qt-creator
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:
@@ -39,6 +39,7 @@
|
||||
|
||||
#include <utils/consoleprocess.h>
|
||||
#include <QtCore/QSharedPointer>
|
||||
#include <QtCore/QMap>
|
||||
|
||||
namespace Debugger {
|
||||
namespace Internal {
|
||||
@@ -94,7 +95,9 @@ struct CdbComInterfaces
|
||||
};
|
||||
|
||||
struct CdbDebugEnginePrivate
|
||||
{
|
||||
{
|
||||
typedef QMap<QString, QString> EditorToolTipCache;
|
||||
|
||||
enum HandleBreakEventMode { // Special modes for break event handler.
|
||||
BreakEventHandle,
|
||||
BreakEventIgnoreOnce,
|
||||
@@ -160,6 +163,8 @@ struct CdbDebugEnginePrivate
|
||||
DebuggerManager *m_debuggerManager;
|
||||
IDebuggerManagerAccessForEngines *m_debuggerManagerAccess;
|
||||
CdbStackTraceContext *m_currentStackTrace;
|
||||
EditorToolTipCache m_editorToolTipCache;
|
||||
|
||||
bool m_firstActivatedFrame;
|
||||
|
||||
DebuggerStartMode m_mode;
|
||||
|
||||
Reference in New Issue
Block a user