DBG N Error: Difference between revisions
Created page with "Debug Notification -1 - Error Notification This notification returns: * Cmd= DBG_N_Error * Value= Any standard error code An error was detected while attempting a DosDeb..." |
m Martini moved page DBG N ERROR to DBG N Error |
(No difference)
|
Revision as of 23:55, 4 March 2020
Debug Notification -1 - Error Notification
This notification returns:
- Cmd= DBG_N_Error
- Value= Any standard error code
An error was detected while attempting a DosDebug command.
Error codes are returned from DosDebug in different ways:
1.Errors can be returned via the standard method (EAX = ERROR_CODE).
This is only done when the DosDebug command failed to execute at all. An example of this would be ERROR_INTERRUPT when the debugger receives a signal. If DosDebug returns a nonzero value in the EAX register, the returned Debug buffer is invalid.
2.Errors are also returned via the DBG_N_Error notification.
This is used when the DosDebug command was attempted, but failed due to some internal DosDebug failure. Examples of error codes returned via this interface are ERROR_INVALID_PROCID and ERROR_INVALID_DATA. Generally, these errors are detected while in the context of the debuggee process, and may include ERROR_INTERRUPT.