forked from qt-creator/qt-creator
Debugger: Move bbsetup over to runCommand()
Change-Id: I0a19b28d24cb570651ea84bf7cdbc9a761f85a0b Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -45,8 +45,12 @@ class DebuggerResponse;
|
||||
class DebuggerCommand
|
||||
{
|
||||
public:
|
||||
typedef std::function<void(const DebuggerResponse &)> Callback;
|
||||
|
||||
DebuggerCommand() : flags(0) {}
|
||||
DebuggerCommand(const char *f) : function(f), flags(0) {}
|
||||
DebuggerCommand(const char *f, int flags = 0, Callback cb = Callback())
|
||||
: function(f), callback(cb), flags(flags)
|
||||
{}
|
||||
DebuggerCommand(const QByteArray &f) : function(f), flags(0) {}
|
||||
|
||||
void arg(const char *name);
|
||||
@@ -64,8 +68,6 @@ public:
|
||||
static QByteArray toData(const QList<QByteArray> &value);
|
||||
static QByteArray toData(const QHash<QByteArray, QByteArray> &value);
|
||||
|
||||
typedef std::function<void(const DebuggerResponse &)> Callback;
|
||||
|
||||
QByteArray function;
|
||||
QByteArray args;
|
||||
Callback callback;
|
||||
|
||||
@@ -4295,7 +4295,7 @@ void GdbEngine::startGdb(const QStringList &args)
|
||||
if (!commands.isEmpty())
|
||||
postCommand(commands.toLocal8Bit(), flags);
|
||||
|
||||
postCommand("bbsetup", flags, CB(handlePythonSetup));
|
||||
runCommand(DebuggerCommand("setupDumper", flags, CB(handlePythonSetup)));
|
||||
}
|
||||
|
||||
void GdbEngine::handleGdbStartFailed()
|
||||
|
||||
Reference in New Issue
Block a user