32x: drc: new debug facility (pdb). Few fixes thanks to it.

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@863 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2010-01-19 22:17:47 +00:00
parent 2368651527
commit 5686d93123
14 changed files with 708 additions and 33 deletions

31
cpu/debug.h Normal file
View file

@ -0,0 +1,31 @@
#ifdef PDB
enum {
PDBCT_SH2,
};
void pdb_register_cpu(void *context, int type, const char *name);
void pdb_cleanup(void);
void pdb_step(void *context, unsigned int pc);
void pdb_command(const char *cmd);
#else
#define pdb_register_cpu(a,b,c)
#define pdb_cleanup()
#define pdb_step(a,b)
#define pdb_command(a)
#endif
#if defined(PDB) && defined(PDB_NET)
int pdb_net_connect(const char *host, const char *port);
#else
#define pdb_net_connect(a,b) 0
#endif