[Solved/Invalid] Debugging via attach to process not working
Posted: Sat Oct 31, 2015 8:42 am
Issue: Breakpoints do not work, no call stack
OS: Windows 7 64 bit
CodeLite version: 9.0.2, downloaded
GCC version: 5.1.0
GDB version: 7.9.1
Python: 2.7.10 (64 bit)
SCons: 2.4.0
My project uses SCons to invoke the compiler. It builds, links and runs correctly in debug and release configuration.
I have set the correct path to TDM-GCC's gdb, the same one released with the gcc I'm invoking.
I'm creating a 32 bit DLL in debug configuration (tried -g, -g3 and -ggdb3) which is loaded by a separate 32 bit executable built with MSVC in release configuration.
There are unrelated issues preventing me from launching the executable directly via CodeLite, that is not the issue at hand.
When I attach to process, the execution is paused with an empty call stack. I click resume and it carries on fine.
When I try to place a breakpoint inside my DLL code, it is not triggered.
My compile flags are:
-fomit-frame-pointer -fsigned-char -fvisibility=hidden -fvisibility-inlines-hidden
-m32 -march=i686 -masm=intel -mfpmath=sse -msse2 -mstackrealign
-std=c++11
OS: Windows 7 64 bit
CodeLite version: 9.0.2, downloaded
GCC version: 5.1.0
GDB version: 7.9.1
Python: 2.7.10 (64 bit)
SCons: 2.4.0
My project uses SCons to invoke the compiler. It builds, links and runs correctly in debug and release configuration.
I have set the correct path to TDM-GCC's gdb, the same one released with the gcc I'm invoking.
I'm creating a 32 bit DLL in debug configuration (tried -g, -g3 and -ggdb3) which is loaded by a separate 32 bit executable built with MSVC in release configuration.
There are unrelated issues preventing me from launching the executable directly via CodeLite, that is not the issue at hand.
When I attach to process, the execution is paused with an empty call stack. I click resume and it carries on fine.
When I try to place a breakpoint inside my DLL code, it is not triggered.
My compile flags are:
-fomit-frame-pointer -fsigned-char -fvisibility=hidden -fvisibility-inlines-hidden
-m32 -march=i686 -masm=intel -mfpmath=sse -msse2 -mstackrealign
-std=c++11