mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 15:48:05 -04:00
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:
parent
2368651527
commit
5686d93123
14 changed files with 708 additions and 33 deletions
31
cpu/debug.h
Normal file
31
cpu/debug.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue