From: Sami Liedes Date: Sun, 20 Feb 2011 16:55:10 +0000 (+0200) Subject: Include sim_gdb.h from sim_gdb.c. Also fix prototype in .h. X-Git-Tag: v1.0a7~3^2~2 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=27ba3fb4c8f2a463a1364d6787c3a6d50644d5f3;p=sx%2Fsimavr.git Include sim_gdb.h from sim_gdb.c. Also fix prototype in .h. sim_gdb.c did not include sim_gdb.h. Also there was a slight difference in the prototype in the header and the implementation in the .c, causing a warning. Signed-off-by: Sami Liedes --- diff --git a/simavr/sim/sim_gdb.c b/simavr/sim/sim_gdb.c index 3768022..4b699bf 100644 --- a/simavr/sim/sim_gdb.c +++ b/simavr/sim/sim_gdb.c @@ -34,6 +34,7 @@ #include "sim_avr.h" #include "sim_hex.h" #include "avr_eeprom.h" +#include "sim_gdb.h" #define DBG(w) diff --git a/simavr/sim/sim_gdb.h b/simavr/sim/sim_gdb.h index 497dabf..bb955ae 100644 --- a/simavr/sim/sim_gdb.h +++ b/simavr/sim/sim_gdb.h @@ -29,7 +29,7 @@ extern "C" { int avr_gdb_init(avr_t * avr); // call from the main AVR decoder thread -int avr_gdb_processor(avr_t * avr, uint32_t sleep); +int avr_gdb_processor(avr_t * avr, int sleep); #ifdef __cplusplus };