Skip to content

Conversation

@bazsi
Copy link
Member

@bazsi bazsi commented Oct 27, 2024

This PR adds support for the printx/px commands to the debugger which evaluates a filterx expression.

This should go in after #546, #547 and #340

@bazsi bazsi force-pushed the debugger-filterx branch 3 times, most recently from f4d3ba1 to bcd453e Compare December 10, 2024 19:36
@bazsi bazsi force-pushed the debugger-filterx branch 3 times, most recently from de500f3 to 2439191 Compare March 20, 2025 07:40
@bazsi bazsi mentioned this pull request May 29, 2025
bazsi added 12 commits August 27, 2025 20:09
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
The mode field in debugger determines how we respond to trace and
breakpoints and is used by the hook to trigger various debugging
scenarios.

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Some breakpoints are not interesting once the mode changes, even
though they were submitted by the pipe hook and are waiting to
be resumed.

Let's quickly acknowledge them and don't bother the user.

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Also, stop at the prompt immediately, instead of wait for a message.

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
This is not a fastpath, so we can use atomics and the debugger needs to
ref/unref expressions in the debugger thread, which causes failed
assertions.

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Instead of returning a fully formed compound expression, just return
the list of expressions, so the brace is processed by the parent grammar.

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Exclude other threads simply by only allowing these calls to be
made while parsing is in progress, which is inherently single-threaded.

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
So that changes in previous filterx blocks take effect in the message
by the time we get to the debugger.

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
@bazsi bazsi force-pushed the debugger-filterx branch from 2439191 to aa1f9c6 Compare August 27, 2025 18:17
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
@bazsi bazsi force-pushed the debugger-filterx branch from aa1f9c6 to 72b0fc5 Compare August 27, 2025 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant