Commit c2b34fb1 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Debugger: Fix "Repeat Last Command" button

Broke by 150af7af.

flags must be stored with the command.

Change-Id: If2bac648d7d4b2c341eb6398d92b05660f519114
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 3286113e
......@@ -52,9 +52,9 @@ public:
typedef std::function<void(const DebuggerResponse &)> Callback;
DebuggerCommand() {}
DebuggerCommand(const char *f) : function(f) {}
DebuggerCommand(const QByteArray &f) : function(f) {}
DebuggerCommand(const char *f, const QJsonValue &a) : function(f), args(a) {}
DebuggerCommand(const char *f, int fl = 0) : function(f), flags(fl) {}
DebuggerCommand(const QByteArray &f, int fl = 0) : function(f), flags(fl) {}
DebuggerCommand(const char *f, const QJsonValue &a, int fl = 0) : function(f), args(a), flags(fl) {}
void arg(const char *value);
void arg(const char *name, int value);
......
This diff is collapsed.
......@@ -173,7 +173,8 @@ private: ////////// Gdb Command Management //////////
Q_DECLARE_FLAGS(GdbCommandFlags, GdbCommandFlag)
protected:
void runCommand(const DebuggerCommand &command, int flags = NoFlags);
void runCommand(const DebuggerCommand &command);
void runCommand(const QByteArray &command, int flags);
void runCommand(const QByteArray &command,
const DebuggerCommand::Callback &callback,
int flags = NoFlags);
......
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