Presentation is loading. Please wait.

Presentation is loading. Please wait.

MuTek BugTrapper. Win32 API Debugging support IMAGEHLP.

Similar presentations


Presentation on theme: "MuTek BugTrapper. Win32 API Debugging support IMAGEHLP."— Presentation transcript:

1 MuTek BugTrapper

2 Win32 API Debugging support IMAGEHLP

3 Debugging support Run process from the debugger or attach to an active process. Control process execution applying debug events. Get exception notification.

4

5 Debugging API CreateProcess(), DebugActiveProcess() WaitForDebugEvent() ContinueDebugEvent() ReadProcessMemory(), WriteProcessMemory() OutputDebugString()

6 Debug events Exception Process/Thread create Process/Thread exit Load/Unload DLL Debug string

7 CreateProcess( … ) / DebugActiveProcess( … ) while ( 1 ) { DEBUG_EVENT Evnt; WaitForDebugEvent( &Evnt ); /* Treat debug event */ ContinueDebugEvent( &Evnt ); }

8 IMAGEHLP DLL Win32 -based executable (image) files are structured according to the Portable Executable (PE) format. The ImageHlp library provides API to manipulate with the PE images.

9 ImageHlp functions SymInitialize(), SymCleanup() MapDebugInformation(), SymLoadModule() SymGetModuleInfo(), SymEnumerateSymbols() SymGetSymFromName(), SymGetSymFromAddr() StackWalk()

10 Summary The debugging support and ImageHlp DLL provide simple and efficient method of testing and debugging tools creation for the Win32 applications.


Download ppt "MuTek BugTrapper. Win32 API Debugging support IMAGEHLP."

Similar presentations


Ads by Google