Giter Site home page Giter Site logo

Comments (2)

daniel5151 avatar daniel5151 commented on May 5, 2024

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.

gz avatar gz commented on May 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.