The following are the DosDebug command numbers:
#define DBG_C_Null 0 /* Null */ #define DBG_C_ReadMem 1 /* Read Word */ #define DBG_C_ReadMem_I 1 /* Read Word */ #define DBG_C_ReadMem_D 2 /* Read Word (same as 1) */ #define DBG_C_ReadReg 3 /* Read Register Set */ #define DBG_C_WriteMem 4 /* Write Word */ #define DBG_C_WriteMem_I 4 /* Write Word */ #define DBG_C_WriteMem_D 5 /* Write Word (same as 4) */ #define DBG_C_WriteReg 6 /* Write Register Set */ #define DBG_C_Go 7 /* Go */ #define DBG_C_Term 8 /* Terminate */ #define DBG_C_SStep 9 /* Single Step */ #define DBG_C_Stop 10 /* Stop */ #define DBG_C_Freeze 11 /* Freeze Thread */ #define DBG_C_Resume 12 /* Resume Thread */ #define DBG_C_NumToAddr 13 /* Object Number to Address */ #define DBG_C_ReadCoRegs 14 /* Read Coprocessor Registers */ #define DBG_C_WriteCoRegs 15 /* Write Coprocessor Registers */ /* 16 is reserved */ #define DBG_C_ThrdStat 17 /* Get Thread Status */ #define DBG_C_Connect 21 /* Connect to Debuggee */ #define DBG_C_ReadMemBuf 22 /* Read Memory Buffer */ #define DBG_C_WriteMemBuf 23 /* Write Memory Buffer */ #define DBG_C_SetWatch 24 /* Set Watchpoint */ #define DBG_C_ClearWatch 25 /* Clear Watchpoint */ #define DBG_C_Continue 27 /* Continue after an Exception */ #define DBG_C_AddrToObject 28 /* Address to Object */ #define DBG_C_Attach 32 /* Attach to task */ #define DBG_C_Detach 33 /* Detach task */ #define DBG_C_SetBreak 34 /* Set breakpoint for PPC */ #define DBG_C_ClrBreak 35 /* Clear breakpoint for PPC */
The following defines are not implemented for the PowerPC and are translated to DBG_C_NULL:
#define DBG_C_MapROAlias 18 /* Map read-only alias */ #define DBG_C_MapRWAlias 19 /* Map read-write alias */ #define DBG_C_UnMapAlias 20 /* Unmap Alias */ #define DBG_C_RangeStep 26 /* Range Step */ #define DBG_C_XchgOpcode 29 /* Exchange opcode and go */ #define DBG_C_LinToSel 30 /* 32 to 16 conversion */ #define DBG_C_SelToLin 31 /* 16 to 32 conversion */
The following defines are not yet implemented for the PowerPC:
#define DBG_C_SetBreak 34 /* Set breakpoint for PPC */ #define DBG_C_ClrBreak 35 /* Clear breakpoint for PPC */