You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, this is embarrassing 😳
I'm surprised that I didn't catch this when I plumbed-through BreakpointKind support to software/hardware watchpoints... Oops.
In any case, thanks for reporting this discrepancy!
I'll land a fix in the dev/0.6 branch that updates the add_hw_watchpoint function signature appropriately (hopefully sometime this weekend).
Since this will require an API breaking change, it will also require a breaking gdbstub release. That's not too bad, as there've been enough breaking changes trickling into the dev/0.6 branch that I'll probably end up publishing 0.6 sometime relatively soon-ish. I don't have an exact timeline yet, but I'd wager 0.6 will be up on crates.io sometime in the next few weeks.
Currently, when we add watchpoint,
kind
is ignored:gdbstub/src/gdbstub_impl/ext/breakpoints.rs
Lines 19 to 32 in a33bbae
But according to gdb rsp doc,
kind
when set watchpoint means number of bytes to watch, which is not meaningless:We need also pass
kind
as an argument toadd_hw_watchpoint
.The text was updated successfully, but these errors were encountered: