#include "ppcmmu/mmu.h"
+#define GDB_SAVE_SIZE 0x66
+
typedef struct _BREAKPOINT {
int OldCode;
int *Address;
/* Wait for Clear to Send */
while( !(GetPhysByte((paddr_t)serport+LSR) & 0x20) ) sync();
- SetPhysByte(serport+THR, c);
+ SetPhysByte((paddr_t)serport+THR, c);
sync();
}
{
case 'g':
PacketStart();
- for (i = 0; i < sizeof(*RegisterSaveArea) / sizeof(int); i++)
+ for (i = 0; i < GDB_SAVE_SIZE; i++)
{
PacketWriteHexNumber(((int *)RegisterSaveArea)[i], 8);
}
Continue = 0;
PacketWriteSignal(3);
}
- else if (ch == '-' || ch == '+')
+ else if (ch == '+')
{
/* Nothing */
}