Skip to content

add_hw_breakpoint called on every step #77

Answered by daniel5151
gz asked this question in Q&A
Discussion options

You must be logged in to vote

Hey Gerd,

If possible, could you please post a trace log of the GDB RSP packets? Incoming packets get logged via this log::trace! statement, and outgoing packets are logged via this log::trace! statement.

It seems I've marked that latter log statement with #[cfg(feature = "std")], when it probably should be #[cfg(feature = "alloc")] (or more likely, a dedicated feature = "trace-pkts").

I see you're using alloc in your implementation, so you may need to fork + tweak gdbstub to get response logging working. Sorry about that!

In the meantime... I believe the GDB Client will actually clear + reset breakpoint whenever it resumes the target, so the behavior you're seeing might be reasonable. Is

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@gz
Comment options

@daniel5151
Comment options

Answer selected by gz
Comment options

You must be logged in to vote
2 replies
@daniel5151
Comment options

@gz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants