debug.h 521 B

12345678910111213141516171819202122232425262728293031
  1. #ifdef PDB
  2. enum {
  3. PDBCT_SH2,
  4. };
  5. void pdb_register_cpu(void *context, int type, const char *name);
  6. void pdb_cleanup(void);
  7. void pdb_step(void *context, unsigned int pc);
  8. void pdb_command(const char *cmd);
  9. #else
  10. #define pdb_register_cpu(a,b,c)
  11. #define pdb_cleanup()
  12. #define pdb_step(a,b)
  13. #define pdb_command(a)
  14. #endif
  15. #if defined(PDB) && defined(PDB_NET)
  16. int pdb_net_connect(const char *host, const char *port);
  17. #else
  18. static __inline int pdb_net_connect(const char *host, const char *port) {return 0;}
  19. #endif