Discussion:
[Msys2-users] MSYS2 32-bit qtcreator default used a 64-bit gdb, that cause an unknown siganl before the first breakpoint.
g***@163.com
2017-06-06 12:02:29 UTC
Permalink
Greeting!
About 4 month ago, I posted a topic about "MSYS2 Mingw32 GDB crashed just at first breakpoint". The old topic can follow this link:
https://sourceforge.net/p/msys2/mailman/message/35673225/
Now, the problem above is sloved, and the sample program can be well debugged at bash command line. However, In Qt -creator (both x64 and x86), there is still a strange problem when gdb hits the first breakpoint .
This signal triggered an message box below:
Signal Recieved
"The inferior stopped because it recieved a signal from the operation system"
Signal name: ?
Signal meaning: Unknown signal

I notice that in mingw32 32-bit qtcreator, a x64 gdb is called:

dStart parameters: 'gdbtest' mode: 1
dABI: x86-windows-msys-pe-32bit
dLanguages: c++
dExecutable: C:\msys64\home\user\gdbtest\test.exe
dDirectory: C:\msys64\home\user\gdbtest
dDebugger: C:\msys64\mingw64\bin\gdb.exe

So, I grep config files and located the default profile file:
C:\msys64\mingw32\share\qtcreator\QtProject\qtcreator\profile.xml
but could not find how to change the default debugger for mingw32 qt.

Finally, I clone a config from x86, and assign GDB x86 as the debugger, everything is OK.

This is a simple problem, I think, may be someone can next patch will fix this.
---------------------------------
MSYS2 is an amazing project!
g***@163.com
2017-06-06 11:57:15 UTC
Permalink
Greeting!
About 4 month ago, I posted a topic about "MSYS2 Mingw32 GDB crashed just at first breakpoint". The old topic can follow this link:
https://sourceforge.net/p/msys2/mailman/message/35673225/
Now, the problem above is sloved, and the sample program can be well debugged at bash command line. However, In Qt -creator (both x64 and x86), there is still a strange problem when gdb hits the first breakpoint .
This signal triggered an message box below:
Signal Recieved
"The inferior stopped because it recieved a signal from the operation system"
Signal name: ?
Signal meaning: Unknown signal

I notice that in mingw32 32-bit qtcreator, a x64 gdb is called:

dStart parameters: 'gdbtest' mode: 1
dABI: x86-windows-msys-pe-32bit
dLanguages: c++
dExecutable: C:\msys64\home\user\gdbtest\test.exe
dDirectory: C:\msys64\home\user\gdbtest
dDebugger: C:\msys64\mingw64\bin\gdb.exe

So, I grep config files and located the default profile file:
C:\msys64\mingw32\share\qtcreator\QtProject\qtcreator\profile.xml
but could not find how to change the default debugger for mingw32 qt.

Finally, I clone a config from x86, and assign GDB x86 as the debugger, everything is OK.

This is a simple problem, I think, may be someone can next patch will fix this.
---------------------------------
MSYS2 is an amazing project!

Loading...