1
0
Fork 0

Fix convenience overloads for DbgCmdExec

This commit is contained in:
Duncan Ogilvie 2020-09-29 21:01:15 +02:00
parent d04e1e6676
commit 73c31f2552
5 changed files with 19 additions and 13 deletions

View File

@ -884,16 +884,6 @@ void* Bridge::processMessage(GUIMSG type, void* param1, void* param2)
return nullptr;
}
void DbgCmdExec(const QString & cmd)
{
DbgCmdExec(cmd.toUtf8().constData());
}
bool DbgCmdExecDirect(const QString & cmd)
{
return DbgCmdExecDirect(cmd.toUtf8().constData());
}
/************************************************************************************
Exported Functions
************************************************************************************/

View File

@ -172,7 +172,4 @@ private:
volatile bool dbgStopped = false;
};
void DbgCmdExec(const QString & cmd);
bool DbgCmdExecDirect(const QString & cmd);
#endif // BRIDGE_H

12
src/gui/Src/Imports.cpp Normal file
View File

@ -0,0 +1,12 @@
#include "Imports.h"
#include <QString>
void DbgCmdExec(const QString & cmd)
{
DbgCmdExec(cmd.toUtf8().constData());
}
bool DbgCmdExecDirect(const QString & cmd)
{
return DbgCmdExecDirect(cmd.toUtf8().constData());
}

View File

@ -11,4 +11,10 @@
#include "dbg_types.h"
#endif
// Convenience overloads
class QString;
void DbgCmdExec(const QString & cmd);
bool DbgCmdExecDirect(const QString & cmd);
#endif // IMPORTS_H

View File

@ -76,6 +76,7 @@ RESOURCES += \
SOURCES += \
Src/Gui/CPURegistersView.cpp \
Src/Gui/SystemBreakpointScriptDialog.cpp \
Src/Imports.cpp \
Src/Tracer/TraceRegisters.cpp \
Src/Tracer/TraceWidget.cpp \
Src/main.cpp \