Replies: 1 comment 4 replies
-
I think this idea is quite interesting, and merits some discussion. To begin, lets consider some historical context:
With those points in mind, lets also consider some of the merits of the current approach:
Finally, lets consider the pros:
And lastly, the cons:
To cut a long story short: I lean in favor of this API change - assuming we can settle on a good design. i.e: one that hits all of That said, I don't think these changes are necessarily a pressing concern at this time, and I wouldn't take a serious look at how these changes might be implemented until after 0.6 is polished up and out the door. In my mind, this would be the kind of big API change that would headline a future 0.7 release... That said, if you're keen on getting this in sooner rather than later, feel free to start sketching out the kind of API you'd like to see! I'd be interesting to see what kind of API + internal refactoring you'd want to do to facilitate this change, either via some code snippets in this discussion, or even via a Draft PR. |
Beta Was this translation helpful? Give feedback.
-
Currently we provide two type of register related API,
read/write_register
andread/write_registers
, corresponding tog
/G
andp
/P
commands in GDB RSP.We can only provide
read/write_register
methods in the user-level API, the current "bulk"read/write_registers
methods can be implemented base onread/write_register
, so user don't need to write redundant code.Beta Was this translation helpful? Give feedback.
All reactions