4 Copyright 2008, 2009 Michel Pollet <buserror@gmail.com>
6 This file is part of simavr.
8 simavr is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
13 simavr is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with simavr. If not, see <http://www.gnu.org/licenses/>.
30 See GDB User Manual, Appendix E.2 */
31 enum avr_gdb_watch_type {
32 AVR_GDB_BREAK_SOFT = 1 << 0,
33 AVR_GDB_BREAK_HARD = 1 << 1,
35 AVR_GDB_WATCH_WRITE = 1 << 2,
36 AVR_GDB_WATCH_READ = 1 << 3,
37 AVR_GDB_WATCH_ACCESS = AVR_GDB_WATCH_WRITE | AVR_GDB_WATCH_READ,
40 int avr_gdb_init(avr_t * avr);
42 // call from the main AVR decoder thread
43 int avr_gdb_processor(avr_t * avr, int sleep);
45 // Called from sim_core.c
46 void avr_gdb_handle_watchpoints(avr_t * g, uint16_t addr, enum avr_gdb_watch_type type);