DosDebug Commands: Difference between revisions
Appearance
Created page with "{|class="wikitable" |+DosDebug commands !Number||Name||Description |- |0||DBG_C_Null||Null |- |1||DBG_C_ReadMem||Read Word |- |1||DBG_C_ReadMem_I||Read Word |- |2||DBG_C_ReadM..." |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
!Number||Name||Description | !Number||Name||Description | ||
|- | |- | ||
|0||DBG_C_Null||Null | |0||[[DBG_C_Null]]||Null | ||
|- | |- | ||
|1||DBG_C_ReadMem||Read Word | |1||[[DBG_C_ReadMem]]||Read Word | ||
|- | |- | ||
|1||DBG_C_ReadMem_I||Read Word | |1||[[DBG_C_ReadMem_I]]||Read Word | ||
|- | |- | ||
|2||DBG_C_ReadMem_D||Read Word (same as 1) | |2||[[DBG_C_ReadMem_D]]||Read Word (same as 1) | ||
|- | |- | ||
|3||DBG_C_ReadReg||Read Register Set | |3||[[DBG_C_ReadReg]]||Read Register Set | ||
|- | |- | ||
|4||DBG_C_WriteMem||Write Word | |4||[[DBG_C_WriteMem]]||Write Word | ||
|- | |- | ||
|4||DBG_C_WriteMem_I||Write Word | |4||[[DBG_C_WriteMem_I]]||Write Word | ||
|- | |- | ||
|5||DBG_C_WriteMem_D||Write Word (same as 4) | |5||[[DBG_C_WriteMem_D]]||Write Word (same as 4) | ||
|- | |- | ||
|6||DBG_C_WriteReg||Write Register Set | |6||[[DBG_C_WriteReg]]||Write Register Set | ||
|- | |- | ||
|7||DBG_C_Go||Go | |7||[[DBG_C_Go]]||Go | ||
|- | |- | ||
|8||DBG_C_Term||Terminate | |8||[[DBG_C_Term]]||Terminate | ||
|- | |- | ||
|9||DBG_C_SStep||Single Step | |9||[[DBG_C_SStep]]||Single Step | ||
|- | |- | ||
|10||DBG_C_Stop||Stop | |10||[[DBG_C_Stop]]||Stop | ||
|- | |- | ||
|11||DBG_C_Freeze||Freeze Thread | |11||[[DBG_C_Freeze]]||Freeze Thread | ||
|- | |- | ||
|12||DBG_C_Resume||Resume Thread | |12||[[DBG_C_Resume]]||Resume Thread | ||
|- | |- | ||
|13||DBG_C_NumToAddr||Object Number to Address | |13||[[DBG_C_NumToAddr]]||Object Number to Address | ||
|- | |- | ||
|14||DBG_C_ReadCoRegs||Read Coprocessor Registers | |14||[[DBG_C_ReadCoRegs]]||Read Coprocessor Registers | ||
|- | |- | ||
|15||DBG_C_WriteCoRegs||Write Coprocessor Registers | |15||[[DBG_C_WriteCoRegs]]||Write Coprocessor Registers | ||
|- | |- | ||
|16||Reserved||Reserved | |16||Reserved||Reserved | ||
|- | |- | ||
|17||DBG_C_ThrdStat||Get Thread Status | |17||[[DBG_C_ThrdStat]]||Get Thread Status | ||
|- | |- | ||
|18||DBG_C_MapROAlias||Map Read-Only Alias | |18||[[DBG_C_MapROAlias]]||Map Read-Only Alias | ||
|- | |- | ||
|19||DBG_C_MapRWAlias||Map Read-Write Alias | |19||[[DBG_C_MapRWAlias]]||Map Read-Write Alias | ||
|- | |- | ||
|20||DBG_C_UnMapAlias||Unmap Alias | |20||[[DBG_C_UnMapAlias]]||Unmap Alias | ||
|- | |- | ||
|21||DBG_C_Connect||Connect to Debuggee | |21||[[DBG_C_Connect]]||Connect to Debuggee | ||
|- | |- | ||
|22||DBG_C_ReadMemBuf||Read Memory Buffer | |22||[[DBG_C_ReadMemBuf]]||Read Memory Buffer | ||
|- | |- | ||
|23||DBG_C_WriteMemBuf||Write Memory Buffer | |23||[[DBG_C_WriteMemBuf]]||Write Memory Buffer | ||
|- | |- | ||
|24||DBG_C_SetWatch||Set Watchpoint | |24||[[DBG_C_SetWatch]]||Set Watchpoint | ||
|- | |- | ||
|25||DBG_C_ClearWatch||Clear Watchpoint | |25||[[DBG_C_ClearWatch]]||Clear Watchpoint | ||
|- | |- | ||
|26||DBG_C_RangeStep||Range Step | |26||[[DBG_C_RangeStep]]||Range Step | ||
|- | |- | ||
|27||DBG_C_Continue||Continue | |27||[[DBG_C_Continue]]||Continue | ||
|- | |- | ||
|28||DBG_C_AddrToObject||Get Memory Object Information | |28||[[DBG_C_AddrToObject]]||Get Memory Object Information | ||
|- | |- | ||
|29||DBG_C_XchngOpcode||Exchange Opcode | |29||[[DBG_C_XchngOpcode]]||Exchange Opcode | ||
|- | |- | ||
|30||DBG_C_LinToSel||Translate Linear Address to Segment:Offset | |30||[[DBG_C_LinToSel]]||Translate Linear Address to Segment:Offset | ||
|- | |- | ||
|31||DBG_C_SelToLin||Translate Segment:Offset to Linear Address | |31||[[DBG_C_SelToLin]]||Translate Segment:Offset to Linear Address | ||
|- | |||
| 33 || [[DBG_C_Attach]] || Attach to a Process Command | |||
|- | |||
| 34 || [[DBG_C_Detach]] || Detach from a Process under Debug Command | |||
|- | |||
| 35 || [[DBG_C_RegDebug]] || JIT (Just-in-Time) Debugger Registration/De-Registration Command | |||
|- | |||
| 36 || [[DBG_C_QueryDebug]] || Query JIT (Just-in-Time) Debugger Registered Command | |||
|} | |} | ||
Not all fields must be defined for every DosDebug command. The same field can have a different meaning in different DosDebug commands. For each command, fields in the Debug Buffer structure that are not listed are not useful for that command, but may be modified by DosDebug as required. | Not all fields must be defined for every DosDebug command. The same field can have a different meaning in different DosDebug commands. For each command, fields in the Debug Buffer structure that are not listed are not useful for that command, but may be modified by DosDebug as required. | ||
[[Category:Debug Command]] |
Latest revision as of 01:18, 16 May 2025
Number | Name | Description |
---|---|---|
0 | DBG_C_Null | Null |
1 | DBG_C_ReadMem | Read Word |
1 | DBG_C_ReadMem_I | Read Word |
2 | DBG_C_ReadMem_D | Read Word (same as 1) |
3 | DBG_C_ReadReg | Read Register Set |
4 | DBG_C_WriteMem | Write Word |
4 | DBG_C_WriteMem_I | Write Word |
5 | DBG_C_WriteMem_D | Write Word (same as 4) |
6 | DBG_C_WriteReg | Write Register Set |
7 | DBG_C_Go | Go |
8 | DBG_C_Term | Terminate |
9 | DBG_C_SStep | Single Step |
10 | DBG_C_Stop | Stop |
11 | DBG_C_Freeze | Freeze Thread |
12 | DBG_C_Resume | Resume Thread |
13 | DBG_C_NumToAddr | Object Number to Address |
14 | DBG_C_ReadCoRegs | Read Coprocessor Registers |
15 | DBG_C_WriteCoRegs | Write Coprocessor Registers |
16 | Reserved | Reserved |
17 | DBG_C_ThrdStat | Get Thread Status |
18 | DBG_C_MapROAlias | Map Read-Only Alias |
19 | DBG_C_MapRWAlias | Map Read-Write Alias |
20 | DBG_C_UnMapAlias | Unmap Alias |
21 | DBG_C_Connect | Connect to Debuggee |
22 | DBG_C_ReadMemBuf | Read Memory Buffer |
23 | DBG_C_WriteMemBuf | Write Memory Buffer |
24 | DBG_C_SetWatch | Set Watchpoint |
25 | DBG_C_ClearWatch | Clear Watchpoint |
26 | DBG_C_RangeStep | Range Step |
27 | DBG_C_Continue | Continue |
28 | DBG_C_AddrToObject | Get Memory Object Information |
29 | DBG_C_XchngOpcode | Exchange Opcode |
30 | DBG_C_LinToSel | Translate Linear Address to Segment:Offset |
31 | DBG_C_SelToLin | Translate Segment:Offset to Linear Address |
33 | DBG_C_Attach | Attach to a Process Command |
34 | DBG_C_Detach | Detach from a Process under Debug Command |
35 | DBG_C_RegDebug | JIT (Just-in-Time) Debugger Registration/De-Registration Command |
36 | DBG_C_QueryDebug | Query JIT (Just-in-Time) Debugger Registered Command |
Not all fields must be defined for every DosDebug command. The same field can have a different meaning in different DosDebug commands. For each command, fields in the Debug Buffer structure that are not listed are not useful for that command, but may be modified by DosDebug as required.