summaryrefslogtreecommitdiff
path: root/src/plugins/debugger
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2009-05-05 10:38:19 +0200
committerhjk <qtc-committer@nokia.com>2009-05-05 10:38:19 +0200
commit3f1afb560c1abe1fdb075088ed440b8e28cad1de (patch)
treefa3cee7ac03035017330f30a0c9505b643a731ef /src/plugins/debugger
parent6e8fba465ce2cd7fbe0c00f632e9b00c5e7dccd7 (diff)
downloadqt-creator-3f1afb560c1abe1fdb075088ed440b8e28cad1de.tar.gz
debugger: move macros implementation from gdbengine.h to gdbengine.cpp
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r--src/plugins/debugger/gdbengine.cpp9
-rw-r--r--src/plugins/debugger/gdbengine.h8
2 files changed, 9 insertions, 8 deletions
diff --git a/src/plugins/debugger/gdbengine.cpp b/src/plugins/debugger/gdbengine.cpp
index 6d394ab9f8..f0b0279b82 100644
--- a/src/plugins/debugger/gdbengine.cpp
+++ b/src/plugins/debugger/gdbengine.cpp
@@ -104,6 +104,15 @@ static int &currentToken()
return token;
}
+#define execCommand(command,callback) \
+ execCommandInternal(command, NoFlags, &GdbEngine::callback, STRINGIFY(callback), QVariant())
+#define execCommandF(command,callback,flags) \
+ execCommandInternal(command, flags, &GdbEngine::callback, STRINGIFY(callback), QVariant())
+#define execCommandC(command,callback,cookie) \
+ execCommandInternal(command, NoFlags, &GdbEngine::callback, STRINGIFY(callback), cookie)
+#define execCommandFC(command,callback,flags,cookie) \
+ execCommandInternal(command, flags, &GdbEngine::callback, STRINGIFY(callback), cookie)
+
///////////////////////////////////////////////////////////////////////
//
// GdbEngine
diff --git a/src/plugins/debugger/gdbengine.h b/src/plugins/debugger/gdbengine.h
index 6c3df5dd2f..84b161685f 100644
--- a/src/plugins/debugger/gdbengine.h
+++ b/src/plugins/debugger/gdbengine.h
@@ -176,14 +176,6 @@ private:
void execCommandInternal(const QString &command, GdbCommandFlags flags,
GdbCommandCallback callback, const char *callbackName,
const QVariant &cookie);
- #define execCommand(command,callback) \
- execCommandInternal(command, NoFlags, &GdbEngine::callback, STRINGIFY(callback), QVariant())
- #define execCommandF(command,callback,flags) \
- execCommandInternal(command, flags, &GdbEngine::callback, STRINGIFY(callback), QVariant())
- #define execCommandC(command,callback,cookie) \
- execCommandInternal(command, NoFlags, &GdbEngine::callback, STRINGIFY(callback), cookie)
- #define execCommandFC(command,callback,flags,cookie) \
- execCommandInternal(command, flags, &GdbEngine::callback, STRINGIFY(callback), cookie)
void sendCommand(const QString &command, GdbCommandFlags flags = NoFlags);
void setTokenBarrier();