![]() ![]() JavaScript script successfully loaded from 'c:\WinDbg\Scripts\PlugAndPlayDeviceTree.js'Ĭall the filterAllDevices() function. scriptload c:\WinDbg\Scripts\PlugAndPlayDeviceTree.js Return filterDevices(.First().()) Įstablish a kernel mode connection to a target system. A function which finds the device tree of the first session in the debugger and passes it to our filter function. Recursively invoke the generator for all children of the device node.įor (var childNode of deviceNode.Children) If the device instance path has "PCI" in it and is started (state = 776), yield it from the generator. An ES6 generator function which recursively filters the device tree looking for PCI devices in the started state. You can use the !devnode 0 1 command to display information about the device tree. ![]() This script is intended to support live kernel mode debugging. This sample code filters the device node tree to display just devices that contain a path of PCI that are started. Data Filtering: Plug and Play Device Tree in KD (Kernel Mode) For example in certain cases working with dump files when you are using the 32-bit debugger. Note that this sample code may not always be able to determine the architecture correctly. Use the dx command to display the process architecture of the current process. JavaScript script successfully loaded from 'c:\WinDbg\Scripts\processarchitecture.js' scriptload c:\WinDbg\Scripts\processarchitecture.js Then load the JavaScript provider and the sample script. Return Įither load a kernel dump file or establish a kernel mode connection to a target system. Extends our notion of a process to place architecture information on it. Var guestStates = (t=> (!(t.GuestState = undefined)
0 Comments
Leave a Reply. |