Skip to content

Commit b85235d

Browse files
committed
Fixed the debugger.
Use the --thread & --frame argument with each command.
1 parent a65845a commit b85235d

File tree

8 files changed

+945
-870
lines changed

8 files changed

+945
-870
lines changed

OMEdit/OMEditGUI/Debugger/GDB/CommandFactory.cpp

Lines changed: 194 additions & 133 deletions
Large diffs are not rendered by default.

OMEdit/OMEditGUI/Debugger/GDB/CommandFactory.h

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,18 @@ class CommandFactory
7070
static QByteArray execFinish();
7171
/* Thread Commands */
7272
static QByteArray threadInfo();
73-
static QByteArray threadSelect(int num);
7473
/* Stack Manipulation Commands */
75-
static QByteArray stackListFrames();
76-
static QByteArray stackSelectFrame(int num);
77-
static QByteArray stackListVariables(QString printValues);
74+
static QByteArray stackListFrames(int thread);
75+
static QByteArray stackListVariables(int thread, int frame, QString printValues);
7876
static QByteArray createFullBacktrace();
7977
/* Data Manipulation Commands */
80-
static QByteArray dataEvaluateExpression(QString expression);
81-
static QByteArray getTypeOfAny(QString expression);
82-
static QByteArray anyString(QString expression);
83-
static QByteArray getMetaTypeElement(QString expression, int index, metaType mt);
84-
static QByteArray arrayLength(QString expression);
85-
static QByteArray listLength(QString expression);
86-
static QByteArray isOptionNone(QString expression);
78+
static QByteArray dataEvaluateExpression(int thread, int frame, QString expression);
79+
static QByteArray getTypeOfAny(int thread, int frame, QString expression, bool inRecord);
80+
static QByteArray anyString(int thread, int frame, QString expression);
81+
static QByteArray getMetaTypeElement(int thread, int frame, QString expression, int index, metaType mt);
82+
static QByteArray arrayLength(int thread, int frame, QString expression);
83+
static QByteArray listLength(int thread, int frame, QString expression);
84+
static QByteArray isOptionNone(int thread, int frame, QString expression);
8785
static QByteArray GDBExit();
8886
};
8987

0 commit comments

Comments
 (0)