diff options
author | 2025-06-04 23:27:56 +0100 | |
---|---|---|
committer | 2025-06-04 23:27:56 +0100 | |
commit | 78325572c1b2ae617dd5502ab726bfded1fd0506 (patch) | |
tree | 948ce8aa81770f4ed0a9170670b439a9ef912f85 /tools/windbg/initcmds | |
parent | 4aebf7cc9ce07dfb20db217274a45680b3cb00ed (diff) | |
download | sst-78325572c1b2ae617dd5502ab726bfded1fd0506.tar.gz sst-78325572c1b2ae617dd5502ab726bfded1fd0506.zip |
Add some WinDbg helpers and tidy up the README
Diffstat (limited to 'tools/windbg/initcmds')
-rw-r--r-- | tools/windbg/initcmds | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/windbg/initcmds b/tools/windbg/initcmds new file mode 100644 index 0000000..fe0f62f --- /dev/null +++ b/tools/windbg/initcmds @@ -0,0 +1,6 @@ +.nvload tools\windbg\natvis.xml + +$$ Emulate Source Thread Fix for high-core-count systems by breaking on +$$ GetSystemInfo, grabbing the struct pointer from the stack, then fiddling +$$ with its contents upon returning to the caller. +bp kernelbase!GetSystemInfo "dx @$t1 = *(void **)(@esp + 4); bp /1 @$ra \"dx @$t2 = ((_SYSTEM_INFO *)@$t1)->dwNumberOfProcessors; dx ((_SYSTEM_INFO *)@$t1)->dwNumberOfProcessors = @$t2 > 24 ? 24 : @$t2; g\"; g" |