X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=tests%2Fattiny85_crash_gdb.c;h=3bcaf59d468afc0c11827621683e57b45b4554f3;hb=a17a750317f7ef52fcafbb5d70a8cc806d9e7f82;hp=cfa5bb8ddd502efe414ad09c16f99eb039f464dc;hpb=4ebde35337d05315c5170390377ef3a0f9dde53c;p=simavr diff --git a/tests/attiny85_crash_gdb.c b/tests/attiny85_crash_gdb.c index cfa5bb8..3bcaf59 100644 --- a/tests/attiny85_crash_gdb.c +++ b/tests/attiny85_crash_gdb.c @@ -6,11 +6,11 @@ */ #include +#include #include "avr_mcu_section.h" AVR_MCU(F_CPU, "attiny85"); -int value = 0; int main() { @@ -19,11 +19,10 @@ int main() * this is not much, but that crashed the core, and should activate * the gdb server properly, so you can see it stopped, here */ - value++; *((uint8_t*)0xdead) = 0x55; // should never reach here ! - value++; + sleep_mode(); }