Remote GDB debug on Windows
Answered
I followed instructions from
and built GDB with cross-compilation settings. I got a binary x86_64-linux-gnu-gdb.exe but it's constantly crashing when I try to launch it.
Have anyone tried cross-platform debugging with CLion? Is it even working?
Please sign in to leave a comment.
Thank for reporting the problem. Just to be sure: you build GDB on Linux and then launch it on Windows, right? What is the toolchain set in CLion on Windows? Did you try running `x86_64-linux-gnu-gdb.exe` from the MinGW-W64 command line?
I built GDB on Ubuntu 12.04 and then tried to launch it on Windows 7 from command line (cmd.exe). I'm not sure what "MinGW-W64" command line is. I tried to launch GDB from Git-Bash command line and got an error "Segmentation fault".
OK, I see. Please try one of the pre-built packages attached to https://youtrack.jetbrains.com/issue/CPP-8137
Thanks, pre-built packages are partially working. So gdb can connect to gdbserver, I can pause my program and it shows me the call stack but it doesn't show the source code. I use program itself as a symbol file and I did setup path mapping.
No problem. To address the issue with missing source code we'll need debugger logs. Please enable logging as described here, reproduce the case and send the resulting log to our support channel.