DBG C NumToAddr: Difference between revisions
Appearance
Created page with "Debug Command 13 - Convert Object Number to Address Command ;Parameters *Pid= Process ID of debuggee *Cmd= DBG_C_NumToAddr *Value= Logical object number in module *MTE=..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
Debug Command 13 - Convert Object Number to Address Command | {{DISPLAYTITLE:DBG_C_NumToAddr}} | ||
Debug Command 13 - Convert Object Number to Address Command | |||
; | ;Parameters | ||
*Pid= Process ID of debuggee | |||
*Cmd= DBG_C_NumToAddr | |||
*Value= Logical object number in module | |||
*MTE= Module handle of module of interest | |||
*Addr= Starting address of object | ;Returns | ||
*Value= Logical object number | *Addr= Starting address of object | ||
*MTE= Module handle of module of interest | *Value= Logical object number | ||
*MTE= Module handle of module of interest | |||
The logical object number in Value is converted into an address that points to the starting address of the desired logical object of the specified module in the debuggee's memory space. This address is then stored in the Addr field, in the form of a linear address. | The logical object number in Value is converted into an address that points to the starting address of the desired logical object of the specified module in the debuggee's memory space. This address is then stored in the Addr field, in the form of a linear address. | ||
The Value and MTE fields are left unchanged. | The Value and MTE fields are left unchanged. | ||
The logical object numbers for a module are generated at link time. By using this function, a debugger can discern the relationship between addresses and logical object numbers. Once the logical object number is known, symbols can be generated for an address via a map or symbol file, for symbolic debugging. | The logical object numbers for a module are generated at link time. By using this function, a debugger can discern the relationship between addresses and logical object numbers. Once the logical object number is known, symbols can be generated for an address via a map or symbol file, for symbolic debugging. | ||
[[Category: | [[Category:Debug Command]] | ||
Latest revision as of 13:06, 10 March 2020
Debug Command 13 - Convert Object Number to Address Command
- Parameters
- Pid= Process ID of debuggee
- Cmd= DBG_C_NumToAddr
- Value= Logical object number in module
- MTE= Module handle of module of interest
- Returns
- Addr= Starting address of object
- Value= Logical object number
- MTE= Module handle of module of interest
The logical object number in Value is converted into an address that points to the starting address of the desired logical object of the specified module in the debuggee's memory space. This address is then stored in the Addr field, in the form of a linear address.
The Value and MTE fields are left unchanged.
The logical object numbers for a module are generated at link time. By using this function, a debugger can discern the relationship between addresses and logical object numbers. Once the logical object number is known, symbols can be generated for an address via a map or symbol file, for symbolic debugging.