External binary debugging - GDB Internal error
Hello!
So I'm trying to debug an externally built binary with CLion and I am on FreeBSD 12.1. What i've done so far is
- Created a dummy C++ executable project
- Deleted CMakelists and template code
- Created a new configuration with essentially an empty Target and my executable as the Executable
- Removed the Build task from Before Launch
- Also made sure that i selected the correct debugger in the Toolchain (GDB 8.3.1 built for FreeBSD)
The problem is that when I start debugging, GDB fails with the following internal error:
target.c:2173: internal-error: void target_mourn_inferior(ptid_t): Assertion `ptid == inferior_ptid' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) [answered Y; input not from terminal]
Thank you in advance for any help!
请先登录再写评论。
Hi! You can try using the "Attach to process" feature - https://www.jetbrains.com/help/clion/attaching-to-local-process.html.