Jump to content

DBG_C_NumToAddr

From EDM2
Revision as of 22:43, 4 March 2020 by Martini (talk | contribs) (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=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.