This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
rustboyadvance-ng/arm7tdmi/examples/test_program/test.c
Michel Heily f3fac5e3b8 Implement new gdbstub target for arm7tdmi, add a small example & test as well
Former-commit-id: 16ba6dada28f8beb5971413acbbe153a26aa9ec3
Former-commit-id: f0661ad20245110797fd99fe16d3fb11382bb78a
2022-09-08 23:40:38 +03:00

18 lines
261 B
C

int breakpoint_count = 0;
volatile int breakpoint_on_me() {
breakpoint_count++;
}
int main() {
int x = 1337;
for (;;) {
x += 1;
if (x == 7331) {
breakpoint_on_me();
x = 1337;
}
}
return 0;
}