-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to add GDB debugger in this toolchain? #7
Comments
A question for you @MaEtUgR ! |
Thank you! 谢谢! @bys1123 |
@oneWayOut Yes it's theoretically well possible. I think it should even work out of the box if you use gdb which is shipped with cygwin. I can give you some hints but I guess won't have the time to add it myself anytime soon.
If you figure it out and get the debugger working I'm happy to incorporate pull requests e.g. extending this script: https://github.com/PX4/windows-toolchain/blob/master/toolchain/cygwin64/install-cygwin-px4.bat |
@MaEtUgR Thanks for your prompt response. Anyway, this toolchain is good enough for me, Thank you. If I need debug, I can do it in Ubuntu. |
@MaEtUgR Would be good to understand why that toolchain doesn't find PX4 - we're so close to getting this working, would be good to get it all the way :-) Any ideas? |
@hamishwillee You have a point, espacially because it should in principle work. Now I took myself the time to try out the basic test, installed the gdb version currently recommended by cygwin Here's my console output:
|
@MaEtUgR Thanks very much for that (and I have reopened while we discuss). So that looks like working to me. I vote that you update the https://github.com/PX4/windows-toolchain/blob/master/toolchain/cygwin64/install-cygwin-px4.bat with the config and we update the docs to say this is working. Then people can raise PRs to say it isn't working if they have a problem and we can debug - make sense? If you update the build script and make a new release I can update the other docs (probably just a 2-liner to state the gdb debugging commands work) |
It takes more time:
While a debugger could help with issues like PX4/PX4-Autopilot#11027 I think I'm fast by solving it printf style just now. That issue is right now really urgent for Windows use. I want to enable debugger use but as I said it doesn't fit my short term planning right now. I'm sure I'll get to it. |
Not a problem. Let's just keep this open until you have time. |
GDB got into the toolchain thanks to @oneWayOut pushing it 👍 Sorry it took so long. It would be nice to have documentation about how and configuration shortcuts to use it e.g. together with an IDE like VS code also on Windows because I expect it to be a bit different. |
The windows toolchain is awesome. I tried to debug the program in simulation but didn't find gdb. Could you add GDB in this toolchain?
The text was updated successfully, but these errors were encountered: