Fix warnings, add -std=c++11 for systems that default to -std=c++03 or lower
[fuzix_sim.git] / debugger.h
1 #ifndef _DEBUGGER_H
2 #define _DEBUGGER_H 1
3
4 #if 0 // set to 1 to enable debugging printf
5 #include <stdio.h>
6 #include "sim/sim.h"
7 #include "sim/simglb.h"
8
9 #define debugger_instruction_hook(addr) \
10   do { \
11     fprintf(stderr, "%04x ", addr); \
12     cpu_dis->disassemble( \
13       ((struct z180_device *)cpu_dev)->m_PC.d, \
14       *(struct z180_device *)cpu_dev \
15     ); \
16     fprintf(stderr, "\n"); \
17   } while (0);
18 #else
19 #define debugger_instruction_hook(addr)
20 #endif
21
22 #endif