I'm using the rr reverse debugger on an optimized build. Are there any gdb features…
- User
I'm using the rr reverse debugger on an optimized build. Are there any gdb features missing during replay?
Assistant
There are a few limitations to using rr with optimized builds:
-
Variables may not be displayed correctly during replay since optimizations can reorder code and eliminate variables. rr tries to reconstruct variables to some extent, but they may not match the source code exactly.
-
Stepping through code line-by-line may not work as expected since the optimized code does not match the source code structure. rr allows stepping through execution at the assembly level instead.
-
Breakpoints may need to be set at the assembly level instead of source lines, for the same reason.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.