Skip to content

Commit e087eed

Browse files
committed
add qtcreator debugging support on windows
1 parent 8d75ebf commit e087eed

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

rts/System/SpringApp.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,18 @@ SpringApp::~SpringApp()
121121
*/
122122
bool SpringApp::Initialize()
123123
{
124+
#if defined(_WIN32) && defined(__GNUC__)
125+
// load QTCreator's gdb helper dll; a variant of this should also work on other OSes
126+
{
127+
// don't display a dialog box if gdb helpers aren't found
128+
UINT olderrors = SetErrorMode(SEM_FAILCRITICALERRORS);
129+
if(LoadLibrary("gdbmacros.dll")) {
130+
LogObject() << "QT Creator's gdbmacros.dll loaded";
131+
}
132+
SetErrorMode(olderrors);
133+
}
134+
#endif
135+
124136
// Initialize class system
125137
creg::System::InitializeClasses();
126138

0 commit comments

Comments
 (0)