系統(tǒng)狀態(tài)
The double vertical bar (
||) command prints status for the specified system or for all systems that you are currently debugging.
|| [ |* | .| # |系統(tǒng)號(hào)]
The ||s command sets or displays the current system number.
||System s 在WINDBG 等調(diào)試器中,進(jìn)程和線程的語(yǔ)法分為內(nèi)核模式和用戶模式兩種。我先來(lái)總結(jié)一下用戶態(tài)模式進(jìn)程相關(guān)
The pipe (
|) command displays status for the specified process, or for all processes that you are currently debugging.| [ |*|.|#|進(jìn)程號(hào)]
The |s command sets or displays the current process number.
|Process s
線程相關(guān)
~ [* | .|#|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
在指定的線程上執(zhí)行指定的命令這個(gè)語(yǔ)法,在有時(shí)我們會(huì)省略e,如顯示2線程的堆棧。~2 K
凍結(jié)和解凍結(jié)線程。
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
掛起和恢復(fù)線程的執(zhí)行
The ~n command suspends execution of the specified thread.
~Thread n
The ~m command resumes execution of the specified thread.
~Thread m
設(shè)置當(dāng)前線程
The ~s command sets or displays the current thread number.
~Thread s
這個(gè)命令在內(nèi)核模式中表示的是設(shè)置當(dāng)前的處理器。
有了上面的調(diào)試命令,只要我們善加利用,就可以控制調(diào)試目標(biāo)的運(yùn)行,進(jìn)而達(dá)到排錯(cuò)查錯(cuò)的目的。