aboutsummaryrefslogtreecommitdiff
path: root/tools/windbg/initcmds
diff options
context:
space:
mode:
authorGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-09-29 23:10:58 +0100
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-09-29 23:10:58 +0100
commit88f12ae363758c9214942335b4cdb4b5c0e559c9 (patch)
treedcf7e8201cd5c2e5eb7c750c38038b28d9e0189d /tools/windbg/initcmds
parent84a05b3f4e0df86c3636707bb8f9e17c0f291160 (diff)
downloadsst-88f12ae363758c9214942335b4cdb4b5c0e559c9.tar.gz
sst-88f12ae363758c9214942335b4cdb4b5c0e559c9.zip
Fix WinDbg init commands not running immediately
Diffstat (limited to 'tools/windbg/initcmds')
-rw-r--r--tools/windbg/initcmds5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/windbg/initcmds b/tools/windbg/initcmds
index fe0f62f..4fa517e 100644
--- a/tools/windbg/initcmds
+++ b/tools/windbg/initcmds
@@ -2,5 +2,8 @@
$$ 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.
+$$ with its contents upon returning.
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"
+
+$$ Initial breakpoint was used to run the above commands. Now we can go ahead.
+g