-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Issue about a GDB command handling #150
Comments
Huh, that's very interesting indeed! Can you please also share what version of the GDB client you are using? Poking around As such - the current code in the vCont packet parser discards these packets as malformed. ...but if GDB itself is sending over these sorts of packets, then it does seem that |
Hello Daniel: |
I currently mitigate this issue by change the source code of 'IdKind::Any => return Err(()),' to 'IdKind::Any => SpecificIdKind::All,' in thread_id.rs line 110 of version 0.7.1 |
That certainly raises an eyebrow for me, and makes me think That said - I'm OK with being a bit pragmatic with the implementation, and tweaking
This was precisely the workaround I was going to propose, so if this works for you, I'll go ahead and land that in-tree, and push out the fix as part of |
Related to issue #150 See inline comment in _vCont.rs for more details on this change.
@rayc345, I've pushed up a slight variant on the proposed fix to master. Could you test that this new version works for you? Once you've confirmed the fix, I'll go ahead and publish 0.7.2 to crates.io :) |
Thanks Danial. With this patch, the connect problem with Segger Embedded Studio is fixed, thanks. |
Thanks for testing! Marking as closed, via e9a5296 |
gdbstub 0.7.2 has been published to crates.io, which includes this fix :) |
Hello everyone.
I used a GDB client to debug a chip using 'probe-rs' which relies on this library for GDB command processing.
I found the GDB client not able to run, and issue lies in this library.
When GDB client sends out '$vCont;c:0#12', gdbstub library would regard this as a malformed command. But OpenOCD correctly handles this commands and replies '$T05#b9'.
Here is the full GDB communication:
The text was updated successfully, but these errors were encountered: