rr debugger logic during record phase

tinkerlock tinkerlock at protonmail.com
Fri Oct 11 21:14:07 UTC 2019


Hey Rob,
Thank you for the response.

"on many cases, I have a flow I want to __record__ but I in the middle of it I need a breakpoint in order to set some values to registers and continue."

I'm talking about record phase. While recording, I want to have a minimal breakpoints logic.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, October 11, 2019 9:01 PM, Robert O'Callahan <robert at ocallahan.org> wrote:

> I'm not sure exactly what you're asking for, but:
>
> On Sat, Oct 12, 2019 at 8:04 AM tinkerlock <tinkerlock at protonmail.com> wrote:
>
>> on many cases, I have a flow I want to record but I in the middle of it I need a breakpoint in order to set some values to registers and continue.
>
> You can't change the program state and then continue replaying. Replay can only replay the exact execution that we recorded.
>
>> I'm new to rr and didn't found such an option.
>> There a use case where you have a normal debugging session while recording?
>> Meaning, supporting breakpoints with logic during record phase.
>
>> Another option which can also help here is to use a breakpoint with predefined commands instead (non-interactive).
>
> You can use breakpoints with conditions and with commands. Those commands just can't change the state of the program. If you try to do that, those changes will be thrown away when execution resumes.
>
> Rob
> --
> Su ot deraeppa sah dna Rehtaf eht htiw saw hcihw, efil lanrete eht uoy ot mialcorp ew dna, ti ot yfitset dna ti nees evah ew; deraeppa efil eht. Efil fo Drow eht gninrecnoc mialcorp ew siht - dehcuot evah sdnah ruo dna ta dekool evah ew hcihw, seye ruo htiw nees evah ew hcihw, draeh evah ew hcihw, gninnigeb eht morf saw hcihw taht.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rr-dev/attachments/20191011/3d3a0311/attachment.html>


More information about the rr-dev mailing list