Hi all,
I'm trying to debug a DLL loaded as a plugin by an external application, but breakpoints don't work.
The DLL is build from source with a Makefile in my workspace using the MinGW GCC toolchain (provided via MSYS2/MinGW64). It compiles without optimizations and contains debugging symbols (gcc -I.. -O0 -g ..)
I've imported the external application as existing C++ Application, added my plugin project as project reference and created a launch configuration that passes my plugin as argument.
Starting the application this way is fine and I can see my plugin working, but setting breakpoints in my plugin code doesn't work. In the debugger console I can see:
Thread 17 received signal SIGINT, Interrupt.
[Switching to Thread 7452.0x21dc]
0x0000000076c74bf2 in KERNEL32!CtrlRoutine () from C:\Windows\system32\kernel32.dll
No symbol table is loaded. Use the "file" command.
[Thread 7452.0x21dc exited with code 0]
Any hints?
Workspace:
MyPlugin (Makefile project)
ExternalApplicaion (C++ Application)
Project References: MyPlugin
Launch Config:
C/C++ Application: ExternalApp.exe
Arguments: MyPlugin.dll
Working Dir: Build Directory of MyPlugin
Versions:
Eclipse IDE for C/C++ Developers
Version: 2018-09 (4.9.0)
Build id: 20180917-1800
$ gdb --version
GNU gdb (GDB) 8.2
$ gcc --version
gcc.exe (Rev3, Built by MSYS2 project) 8.2.0