451ab91e |
1 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
2 | * Mupen64plus - debugger.h * |
3 | * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * |
4 | * Copyright (C) 2008 DarkJeztr * |
5 | * Copyright (C) 2002 davFr * |
6 | * * |
7 | * This program is free software; you can redistribute it and/or modify * |
8 | * it under the terms of the GNU General Public License as published by * |
9 | * the Free Software Foundation; either version 2 of the License, or * |
10 | * (at your option) any later version. * |
11 | * * |
12 | * This program is distributed in the hope that it will be useful, * |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
15 | * GNU General Public License for more details. * |
16 | * * |
17 | * You should have received a copy of the GNU General Public License * |
18 | * along with this program; if not, write to the * |
19 | * Free Software Foundation, Inc., * |
20 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * |
21 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
22 | |
23 | #ifndef __DEBUGGER_H__ |
24 | #define __DEBUGGER_H__ |
25 | |
26 | extern int g_DebuggerActive; /* True if the debugger is running */ |
27 | |
28 | /* State of the Emulation Thread: |
29 | 0 -> pause, 1 -> step, 2 -> run. */ |
30 | extern int run; |
31 | |
32 | extern uint32 previousPC; |
33 | |
34 | void init_debugger(void); |
35 | void update_debugger(uint32 pc); |
36 | void destroy_debugger(void); |
37 | void debugger_step(void); |
38 | |
39 | #endif /* __DEBUGGER_H__ */ |
40 | |