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

Condition list for breakpoints #4

Open
alwin-joshy opened this issue Mar 13, 2024 · 0 comments
Open

Condition list for breakpoints #4

alwin-joshy opened this issue Mar 13, 2024 · 0 comments

Comments

@alwin-joshy
Copy link
Contributor

The GDB packet reference (https://sourceware.org/gdb/current/onlinedocs/gdb.html/Packets.html) states that the packet used for setting breakpoints sometimes passes in a condition list, which consists of bytecode expressions that should be evaluated before a breakpoint is reported back to GDB.

The current implementation does not support this and will disregard the condition list if it is sent.

Understanding how this works will require a little more experimentation (I have no idea how this could do anything useful without knowledge about the implementation of the remote stub), but if it is in the form of a function that returns true or false, one possibility might be to (at least in microkit) create a WX MR that is mapped into the debugger PD, write the expression to that and include a function pointer to this somewhere in the breakpoint metadata. Then, when the breakpoint is triggered, call this?

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

No branches or pull requests

1 participant