
This reverts commit87b7f63a11
, reapplying7e66cf74fb
with a small (and probably temporary) change to generate more debug info to help with diagnosing buildbot issues.
26 lines
533 B
C
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;
|
|
}
|