Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger filterx #356

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Debugger filterx #356

wants to merge 20 commits into from

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 #340

bazsi added 11 commits December 10, 2024 11:43
Instead of using "NULL" as the indicator for the end of the lines to print,
just pass the number of entries in the lines array.

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>
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>
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>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Which returns a borrowed string instead of an EVTTAG.

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>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
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