Commit 03be835b authored by David Schulz's avatar David Schulz

Cdb: Replace CdbCommand with DebuggerCommand.

Change-Id: Ie4d4d17c01d54cfdb5957138076a45bb7a9f5455
Reviewed-by: default avatarNiels Weber <niels.weber@theqtcompany.com>
parent 2763704b
This diff is collapsed.
......@@ -127,14 +127,7 @@ private slots:
void readyReadStandardError();
void processError();
void processFinished();
void postCommand(const QByteArray &cmd);
void postBuiltinCommand(const QByteArray &cmd,
CommandHandler handler);
void postExtensionCommand(const QByteArray &cmd,
const QByteArray &arguments,
CommandHandler handler);
void postCommand(const DebuggerCommand &cmd);
void operateByInstructionTriggered(bool);
void verboseLogTriggered(bool);
......@@ -170,7 +163,11 @@ private:
ParseStackStepOut = 2, // Need to step out, hit on a frame without debug information
ParseStackWow64 = 3 // Hit on a frame with 32bit emulation, switch debugger to 32 bit mode
};
enum CommandFlags {
NoCallBack = 0,
BuiltinCommand,
ExtensionCommand,
};
bool startConsole(const DebuggerRunParameters &sp, QString *errorMessage);
void init();
......@@ -245,7 +242,7 @@ private:
SpecialStopMode m_specialStopMode;
ProjectExplorer::DeviceProcessSignalOperation::Ptr m_signalOperation;
int m_nextCommandToken;
QHash<int, CdbCommandPtr> m_commandForToken;
QHash<int, DebuggerCommand> m_commandForToken;
QByteArray m_currentBuiltinResponse;
int m_currentBuiltinResponseToken;
QMap<QString, NormalizedSourceFileName> m_normalizedFileCache;
......
......@@ -53,6 +53,9 @@ public:
DebuggerCommand(const char *f, int flags = 0, Callback cb = Callback())
: function(f), callback(cb), flags(flags)
{}
DebuggerCommand(const char *f, const char *a, int flags = 0, Callback cb = Callback())
: function(f), args(a), callback(cb), flags(flags)
{}
DebuggerCommand(const char *f, Callback cb)
: function(f), callback(cb), flags(0)
{}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment