Pavel Labath 1b237198dc
Reapply "[lldb] Implement basic support for reverse-continue (#125242)" (again) (#128156)
This reverts commit
87b7f63a11,
reapplying

7e66cf74fb
with a small (and probably temporary)
change to generate more debug info to help with diagnosing buildbot
issues.
2025-03-17 16:06:25 +01:00

26 lines
533 B
C

int false_condition() { return 0; }
int *g_watched_var_ptr;
static void start_recording() {}
static void trigger_watchpoint() { *g_watched_var_ptr = 2; }
static void trigger_breakpoint() {}
static void stop_recording() {}
int main() {
// The watched memory location is on the stack because
// that's what our reverse execution engine records and
// replays.
int watched_var = 1;
g_watched_var_ptr = &watched_var;
start_recording();
trigger_watchpoint();
trigger_breakpoint();
stop_recording();
return 0;
}