Comments (2)
Yep, gdbstub
doesn't currently implement X
, since AFAIK, the GDB client simply falls back to using the M
packet to write data to memory if X
is not implemented. The M
packet uses a less efficient ASCII hex representation of data, though it seems that no one had noticed or cared enough to implement the more efficient X
packet.
Thankfully, this packet seems to be solely an "optimization" packet, and won't require a new user-facing API. It would use the existing Target::write_addrs
APIs, just like the M
packet.
I'd be more than happy to merge an implementation of X
packet handling. The implementation ought to be quite straightforward, since it would be almost an exact copy of the current M
packet handling code, albeit with decode_hex_buf
swapped out for decode_binary_buf
in the packet parsing code.
Also, sidenote: that example packet you gave seems a bit weird 👀
Why would GDB waste bandwidth trying to write data with a length of zero?
Fascinating...
from gdbstub.
Yea not sure about that zero length packet. There are still some bugs in my implementation with stepping, either just getting stuck or reporting some errors like Protocol error: P (set-register) conflicting enabled responses.
when I turn on single register writes. So can't tell yet if I broke something horribly or if it's really gdb doing that.
from gdbstub.
Related Issues (20)
- Use `Option` in return type for `SingleRegisterAccess::read_register` HOT 1
- Allow `read_addrs()` to send fewer bytes than requested HOT 2
- Improved Error Type (more specificity, fewer semver hazards, etc...) HOT 1
- Clippy warnings in library code HOT 3
- Allow passing a custom initial stop reason
- [mips] "unexpected packet" packet on single step HOT 10
- Not getting any events when breakpoint is set HOT 1
- All registers are byteswapped when using lldb HOT 14
- Switch `enum Signal` to `struct Signal(pub u8)` with associated constants
- NoActiveThreads error when there are no active thread HOT 9
- Misleading comment in `state_machine`? HOT 2
- Multiprocess debugging HOT 8
- [riscv32] `PacketUnexpected` when issuing `stepi` HOT 3
- vAttach: invalid response causes command to not work HOT 6
- Remove `NoActiveThread` Error
- example_no_std doesn't build on Windows HOT 1
- Remove `SingleStepBehavior` guard rail HOT 1
- Make `QStartNoAckMode` optional HOT 1
- Options for flow control? HOT 3
- Support "ack/nack" packets for unreliable transports HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdbstub.