| 1 | |
| 2 | #ifdef PDB |
| 3 | |
| 4 | enum { |
| 5 | PDBCT_SH2, |
| 6 | }; |
| 7 | |
| 8 | void pdb_register_cpu(void *context, int type, const char *name); |
| 9 | void pdb_cleanup(void); |
| 10 | void pdb_step(void *context, unsigned int pc); |
| 11 | void pdb_command(const char *cmd); |
| 12 | |
| 13 | #else |
| 14 | |
| 15 | #define pdb_register_cpu(a,b,c) |
| 16 | #define pdb_cleanup() |
| 17 | #define pdb_step(a,b) |
| 18 | #define pdb_command(a) |
| 19 | |
| 20 | #endif |
| 21 | |
| 22 | |
| 23 | #if defined(PDB) && defined(PDB_NET) |
| 24 | |
| 25 | int pdb_net_connect(const char *host, const char *port); |
| 26 | |
| 27 | #else |
| 28 | |
| 29 | #define pdb_net_connect(a,b) 0 |
| 30 | |
| 31 | #endif |