系統狀態
The double vertical bar (
||) command prints status for the specified system or for all systems that you are currently debugging.
|| [ |* | .| # |系統號]
The ||s command sets or displays the current system number.
||System s 在WINDBG 等調試器中,進程和線程的語法分為內核模式和用戶模式兩種。我先來總結一下用戶態模式進程相關
The pipe (
|) command displays status for the specified process, or for all processes that you are currently debugging.| [ |*|.|#|進程號]
The |s command sets or displays the current process number.
|Process s
線程相關
~ [* | .|#|thread NO.] 顯示線程
The ~e command executes one or more commands for a specific thread or for all threads in the target process.
~Thread e commandstring
在指定的線程上執行指定的命令這個語法,在有時我們會省略e,如顯示2線程的堆棧。~2 K
凍結和解凍結線程。
The ~f command freezes the given thread, causing it to stop and wait until it is unfrozen.
~Thread f
The ~u command unfreezes the specified thread.
~Thread u
掛起和恢復線程的執行
The ~n command suspends execution of the specified thread.
~Thread n
The ~m command resumes execution of the specified thread.
~Thread m
設置當前線程
The ~s command sets or displays the current thread number.
~Thread s
這個命令在內核模式中表示的是設置當前的處理器。
有了上面的調試命令,只要我們善加利用,就可以控制調試目標的運行,進而達到排錯查錯的目的。