-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
[RFC] Better intergratetion between uart and gdbstub #1619
Comments
@mikee47 Do you want to try and integrate the gdbstub changes into the uart code? As guideline you can use the code from esp8266/Arduino@bff3a6d. |
@slaff I'll give it a go! |
@mikee47 Do you think you can start working on this so that we can merge it as part of the 3.8.0 release? |
@slaff Yes, I've made a start reviewing the changes and considering how best to implement them. I'll post details here once I've decided on a way forward. |
Thanks a lot Mike! You are doing an amazing job! |
@slaff Thanks, trying to fix more stuff than I break :-) IssuesSo having had a play around with GDB (on Windows) these are the things I feel need to be dealt with:
Arduino update
SmingHere's what I propose to implement for Sming:
DocumentationSlaff has a great article about debugging with GDB - time for an update? |
I'm considering (and not for the first time) whether the uart driver would be better as a C++ class. I guess the question here is whether any Sming users are using the driver directly? |
Absolutely. Once we have the changes I will take care to update the article in the blog, add here a Wiki copy so that we can easily keep it up to date. |
@mikee47 Did you have to time to work on this? |
@slaff I should have a PR in a day or two |
Wow, that is going to be awesome! The new release will wait for this feature to be merged :) |
@slaff OK, just pushed initial commit. The last thing I did was add the UPDATE: Fixed by adding |
I've successfully modified the stub to read asynchronously from GDB console and pipe to UART2, but all the debug output gets ignored by GDB. The 'O' packets are acknowledged but discarded. Same in both Linux and Windows. If I could get GDB to open a separate console for output it might change behaviour. Any suggestions? |
Implemented in PR #1655 which is merged in the |
This issue is created to gather all improvements that need to be done for better intergratetion between uart and gdbstub.
At the moment when the code is compiled with gdbstub the serial output and input does not work as expected. The output is not shown and the input is discarded. The esp-arduino project has already done a great job and outlined the way to integrate both systems. See this PR.
What we need to do from our side is to integrate those and port them to Sming.
Once the integration is merged it will fix #1548.
The text was updated successfully, but these errors were encountered: