aboutsummaryrefslogtreecommitdiff
path: root/tools/windbg/initcmds
blob: 4fa517e3db6a4bf6b6f2109bff758ae6e596e1e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
.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.
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