blob: fe0f62f90d275d42fd10d1cd43b6d3843117c430 (
plain) (
blame)
1
2
3
4
5
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"
|