-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Support vCont
packets with '0' thread-id in single-threaded operation
#152
Comments
Wow, Segger Embedded Studio really likes to do weird stuff with the GDB RSP, eh? This is very similar to what we talked about in #150, insofar that Then again - given that you're debugging an MCU, can I assume that you've only got a single CPU? If so, maybe I can fix Let me know if that is the case for you. Also, meta-note: can you encapsulate packet transcripts in a markdown code block? I've been editing your messages manually to do that, but it'd be nice if you could do it yourself 😅 |
vCont;s:0
packet
Hello Daniel I would use markdown in the future, thanks for your reminding! I'm not familiar with it now. |
Ok, in that case, here is my proposed solution:
We'll also need to revert e9a5296, and moreover, convert the I don't actually think this is a big lift, and if I find some time, I could probably hack this together myself. Let me know if you'd like to take a stab at sending in a PR to fix this issue, or if you'd prefer to wait a bit until I find a moment to address this issue myself |
vCont;s:0
packetvCont
packets with a '0' thread-id when there is only a single active thread
vCont
packets with a '0' thread-id when there is only a single active thread vCont
packets with '0' thread-id in single-threaded operation
Hello, Daniel |
No worries if you can't lend a hand with the implementation! And thanks for reporting it to Segger! At this point, I think I've convinced myself that The only possible counter-point I see is that one could support this packet in multi-threaded mode by using the "currently selected resume thread" set by the 'H' packet, but even so, the docs for the packet clearly state (emphasis mine):
...which implies to me that if a client chooses to use Anyways - I'll be interested to see if the folks at Segger think here :) |
When using probe-rs with Segger Embedded Studio to debug a MCU, gdbstub seems not able to recognize some commands.
"Client sent an unexpected packet. This should never happen! Please re-run with
log
trace-level logging enabled and file an issue at https://github.com/daniel5151/gdbstub/issues"It seems the issue lines in '$vCont;s:0#22'
In resume.rs:206 seems to be the origin.
GDBstub uses the latest version from GitHub repository.
Here is the GDB comm:
The text was updated successfully, but these errors were encountered: