Dears
I built a simple wxWidgets dialog project and works well, it could debug with gdb well also.
I attached a lib/dll module to this project, the gdb could not enter to debug any more .
it would return "Debugger finished with status 1" immediately.
Starting debugger: C:\codeblocks-17.12mingw-nosetup\MinGW\bin\gdb32.exe -nx -fullname -quiet -args C:/CodeBlocks/Sourcecode/wxtest/bin/Debug/wxtest.exe
done
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.9.1
Child process PID: 27264
Debugger finished with status 1
anyway, the dialog project could build and the lib/dll function works well.