1 / 9

CS4540 Operating System

CS4540 Operating System. Local/Remote Windows Kernel Debugging. Davion Teh | Kelvin Yeap Dillon Burton | Rodney Dulin. Local Debugging. Not possible to do live local kernel debugging in windows 7 “You can’t dissect yourself while you’re conscious” - True facts.

Download Presentation

CS4540 Operating System

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS4540 Operating System Local/Remote Windows Kernel Debugging Davion Teh| Kelvin Yeap Dillon Burton | Rodney Dulin

  2. Local Debugging • Not possible to do live local kernel debugging in windows 7 • “You can’t dissect yourself while you’re conscious” • - True facts

  3. LiveKD Local Debugging • Gets a “snapshot” dump file of the local kernel memory (does not stop kernel) • Debug the “snapshot” dump file with windbg/kd

  4. Remote Debugging • Possible to achieve live kernel debugging (downside - requires 2+ machines) • Able to get NEWEST logs from crashes

  5. Remote Debugging -2 • Useful when developing an application running on a web server or client with different environment than the host • Significantly shortens time spent to find faults • Get to have fun crashing debuggee manually (hint: “.crash”)

  6. Breakpoints • bp (set breakpoint) • Bu (set unresolved breakpoint) • Bm (set symbol breakpoint) • Bl (list breakpoints) • Bc [id] (clear breakpoint)

  7. 1)Run VM 2)Immediately run the command below: Windbg –b –k com:port=\\.\pipe\<pipename>,pipe 3)Enter “g” in Windbg (and press enter,thanks) 4)Once window loads, open notmyfault.exe 5)do HighIRQL crash 6)!analyze –v 7) Copy those info (from notmyfault to end)

  8. Links related to windbgdebugging Windbg standard debugging guide http://msdn.microsoft.com/en-us/library/windows/hardware/hh439390(v=vs.85).aspx http://msdn.microsoft.com/en-us/library/windows/hardware/hh439387(v=vs.85).aspx Windbg specialize debugging guide (related to cs4540)

More Related