Changelog¶
What changed in each release of ntoseye, newest first. The command-line tool, the Python package on PyPI, and the Rust crate on crates.io share one version number.
v0.53.0 (2026-11-06)¶
Stops over KD are several times faster, dx and dt show typed globals from private PDBs, and many bugs are fixed, in !heap and !pool on recent Windows 11 builds, in stack walks, and in symbols.
Added¶
!handle <handle> fon a user-mode minidump shows the object information the dump records: a thread’s or process’s IDs, TEB or PEB, priority and exit status, an event’s, mutant’s or semaphore’s state, and a section’s size. The SDK has it asUserHandle.object_info.dxanddtshow a global or static variable of a module whose PDB is private (your own driver’s, or a virtio driver’s) with its type:dx balloon!GUID_DEVINTERFACE_BALLOONreads the GUID’s fields, where they asked for a cast. Public PDBs, such as Windows’, still record no types for their variables.On the
memorybackend,~Nand~Nsselect processor N, so!idt,!gdt,!pcrand the commands that read a processor’s PRCB inspect it, as on a halted target; its registers stay unavailable.
Changed¶
Breaking:
PteWalk, the SDK’s!pteresult, lists the entries the walk read aslevels, root first, asVtopDetaildoes, in place of itspxe,ppe,pdeandptefields.Breaking:
sxaliases follow WinDbg’s event table:ccis Ctrl+C (0x40010005), where it named the C++ exception (eh);asrtis an assertion failure (0xC0000420); the breakpoint exception isbpe, where it wasbp; andbpec,ssec,cce,ch,hc,wkd,aph,dbce,vcpp,clrandclrnare added.Breaking:
dt -acounts above 16 anddlsizes above 64 are errors, where they were cut silently, anddt’s help says arrays show their first 16 elements.Breaking: The diagnostic traces are turned on by one environment variable,
NTOSEYE_TRACE, a comma-separated list ofkd,kd-bytes,gdb,stepandunwind, in place ofNTOSEYE_KD_TRACE,NTOSEYE_KD_TRACE_BYTES,NTOSEYE_GDB_TRACE,NTOSEYE_STEP_TRACEandNTOSEYE_UNWIND_TRACE, which any value turned on,0included.Breaking:
NTOSEYE_NO_PDB_FROM_MEMORYandNTOSEYE_GDB_ON_HVFare off when empty or0, and on for any other value:NTOSEYE_NO_PDB_FROM_MEMORY=0turned the rebuild from memory off, andNTOSEYE_GDB_ON_HVFwas on only at1.ProcessDetail.vad_countgives the number of VADs,Peb.api_set_mapandProcessParameters.environment_sizeareNoneon a build without the field, and!chkimg’sSelfPatchKindandImageSelfPatchCountshave the import address table, service table and processor patch site kinds.SystemPteTypeDetail.usedisNonewhereSystemPteTypeDetail.counters_holdis false, andSystemPtesDetail.uncountednames the allocators its totals leave out.LfhSubsegment.block_countcounts the blocks a subsegment withholds, andLfhSubsegment.bit_stridegives its bitmap’s bits per block;LfhSubsegment.bucketisNonefor a subsegment that names no bucket, andVtopDetail.physical_walksays whether its entry addresses are physical (an explicit DTB) or in the self-map.bp,baandbmwith/p <pid>evaluate the address or pattern in that process, as after.process /pand without changing the current process context, soba e1 /p <pid> kernelbase!GetFileAttributesExW+0x60works from a break-in in the System process or the hypervisor; the SDK’sbreakpoints.add(hardware=True, process=...)andbreakpoints.watch(..., process=...)do the same..processtakes a process’s image name, as!processdoes (.process /p /r explorer.exe), besides its EPROCESS address and PID; a name several processes share is refused with a hint to give the PID.At a stop in the Windows hypervisor whose context is the hypervisor’s own (after
.cxr, or on its VM-exit entry, whose saved VTL0 state may be one exit behind), ad*listing ordxthat cannot read an NT address, and a command that fails on one, add a note that the hypervisor’s address space does not map it and that.vtlcxrselects where VTL0 left off.Over KD on ARM64, a processor’s KPCR is read once a boot instead of at every register read, which makes
~and a debug adapter’s thread list about a third faster.Over KD, a stop no longer reads the kernel’s whole module list again, since the target reports every module load and unload, and a processor’s process is named without walking the process list and reading each long process name from its process’s memory. A REPL stop over a serial link with memory read through KD took 9 to 15 s, and takes 1 to 2.5 s.
A stop’s stack says
... more framesunder the six frames it shows, without counting them: a stop walked 64 frames to count the ones it leaves out, each a few memory reads, and loaded the symbols of every module they ran in. Over serial KD reading memory through KD, a stop atnt!NtClosetook 1.7 to 11 s, once 81 s on a deep stack, where it takes 1.3 to 6.7 s.kand the other stack listings still count what they leave out.
Fixed¶
On ARM64, a stack through .NET code unwinds to the thread’s start: a caller whose unwind data is not there to read, JIT-compiled code or an NGEN image’s paged-out
.pdata, is found by the frame record its x29 points at, where the frames below the first JIT frame were found by scanning the stack.On a live kernel target, an address outside every module is taken as a return into code only when a call precedes it, where any address in an executable page was, so a stale pointer into JIT-compiled code no longer passes for a frame.
On Windows 8.1, images loaded in only some sessions,
cdd.dllandTSDDD.dll, get their symbols:ntoseyereads a session image through a process of each session in turn, and finds the PDB of one whose header is out of memory, and whose loader entry has no timestamp to fetch the file by, from the CodeView record in its resident pages.On Windows 7, the stack of a WOW64 thread in a system call shows its 32-bit frames, which stopped at
wow64cpu, and!heapshows the sizes of a WOW64 process’s heaps.lm vandvertargetgive the PDB age the image names its PDB by, as symbol stores file it, where they gave the age the PDB file itself records, which can be higher.dtshows a byte array that holds no text (a GUID’sData4) as hex bytes, where it printed escapes such as\u{fffd}, and shows non-ASCII text in strings as written instead of escaped.On Windows 11 26200,
!heaplists every heap of the process, where it listed only the process heap: the PEB holds only that one there, andntoseyenow reads ntdll’s own heap list.!heap -xgave an NT-heap block’s user size 0x10 bytes short.!heapdecodes segment-heap LFH subsegments: on Windows 11 22631 every one failed withfield 'BucketRef' not foundand its busy counts were wrong, and on 22631 and 26200 blocks of a subsegment above 4 GiB were placed at the wrong offset, so!heap -xcould not find them.!addressand!address -summarycount every segment and large block of a heap as Heap, not only its first region.Inlined calls into code from another object file of the module show the function’s name,
combase!WaitCoalesced [inline], wherekshowedcombase!inlinee_0x81300001, anddvshows such locals’ types, where it showedtype(0x81300003).dvshows anHRESULTlocal’s type, where it showed__unknown_t.lnno longer says “no symbols loaded for this module” for an address in a module whose symbols are loaded but name nothing there.xdoes what its help says: several terms must all match (x ntdll!Rtl !Heap UserThr),!termexcludes,^and$anchor a term, and a module pattern searches every module it matches (x kernel*!RaiseException). It took only the first term, read!termas a module, and matched^Rtland module patterns to nothing..frame Nselects the frameknumbers N: it read N in hex, so.frame 10selected frame 16.kafter.frame Nlists the same stack with frame N marked, where on a user-mode dump it walked again from that frame and made up inline frames and source lines..frame,.ecxr,.cxrand!for_each_frameshow a frame with no symbol as module+offset, askdoes, not as a bare address.~*kkeeps the context.ecxror.frameselected, and~takesk’s variants and arguments (~*kv,~0k 3)..fnentandufdecode JIT-compiled code from a dump’s dynamic function tables, as the stack walk does, where they said the address was in no module.!poolfindfinds every allocated block on segment-heap pool pages, where it missed about one in eight (20 of 155 processes for!poolfind Proc).!poolon a segment-heap page no longer lists the page’s own header as a free first block, and sizes free gaps to the next block, not 0x10 short of it.!zombiesalso scans big-pool allocations, so it no longer leaves out processes such as System from its live count.!threadand!process <process> 7show each thread’sWin32Thread, where they showed-for every thread.!vadnames the file of every file-backed mapped view and image, as!cadoes, where its File column was empty for all but the loader’s modules, and decodes the no-access, no-cache, guard and write-combine protections, where it showedprot:24.!process 0 0and!sessionshow System, Registry, smss and Secure System in no session, where they counted them in session 0.!vtop <dtb> <address>marks the table entries its walk read as physical addresses;!pfnno longer repeats a field’s name as the reason it is unavailable;!devstackkeeps its columns lined up with long driver names; and!acl <address> 1names well-known SIDs, as!sd <address> 1does.ron a kernel dump shows cr0, cr2, cr4, cr8, gdtr, idtr, tr and ldtr as each processor’s PRCB saved them, where it showed zeros, and a register the dump does not hold, such as efer, as unavailable.Kernel dumps written with
.dumphold the guest’s code wherentoseyehad planted breakpoints, such as its int3 atnt!KeBugCheckEx, and record the product type; minidumps written with.dump /urecord the processor’s family, model and stepping instead of 0.!chkimgsets aside the import-call and retpoline patches the kernel applies to every driver at load, where!chkimg ntfscounted 2476 genuine mismatches, and!chkimg -dlists genuine differences before the set-aside patches.dxanddton a symbol with no type, such asnt!KeNumberProcessors, say so and show the cast that reads it, wheredxprinted the symbol’s address as a negative number.On a minidump that holds no ntdll data,
!csreports that the critical-section list cannot be read, where it listed none, and!chkimgsays the code is not in the dump and nothing was compared, where it said the section was paged out and found 0 mismatches.On a dump,
statusno longer suggests an execute breakpoint ortfor a page that is not in memory, anddtlists a flags word before the bitfields it holds.On a minidump that holds no module memory (MiniDumpNormal),
u,uf,db,!dhand!lmiread a module’s code and headers from its image file, relocated to where it was loaded, as the Windows debugger does, where they said the address was not in the dump;!chkimgstill compares only what the dump holds.Kernel dumps written with
.dumphold every processor’s registers as NT sees them, where a processor stopped in the Windows hypervisor had the hypervisor’s registers and the others had whatever their PRCB last held, and list the processors the kernel runs, not every vCPU of the VM.Pages a process maps through a prototype PTE read when Windows’ L1TF mitigation swizzles the PTE, where they read as
??and their image’s unwind data as paged out, so stacks through them fell back to scanning.!pteshows a zero PTE inside a mapped view as the view’s page, not as unmapped, goes on to the PTE when its page table is in transition, and refuses an address that is not canonical.!poolfindand!pooltake a block’s state on a segment-heap LFH pool page from its subsegment’s bitmap, where they called freed blocks Allocated (775 for 560 mutants), no longer read the subsegment’s header as a block hiding the first real one, and show paged-pool blocks as PagedPool.ARM64 stacks of processors stopped in an interrupt unwind through
nt!KxSwitchStackAndPlayInterruptto the interrupted thread, where they fell back to scanning.The stack scan lists only addresses a call instruction precedes, where any code address on the stack passed.
ushows a negative ARM64 pre-index offset as#-0x40, where it showed a 64-bit value.!process,psand!vmcount a process’s handles across every free list of its handle table, where they read only the first and showed counts such as 4294967070.!pcrdecodes IDTR and GDTR for every processor from its PRCB, where it refused all but the halting one.!chkimgskips a kernel image section Windows freed after boot and gave to other owners, such as INITKDBG on ARM64, where it counted the section as mismatches.lnand symbolized addresses stop at the end of a symbol’s section and of a private function, showing module+offset past them, where they named a function far beyond its end.A register in an expression with a thread selected that runs on no processor says why it is unavailable, where it said the VM was running.
!sysptesand!vmno longer report system-PTE totals from counters their allocator’s bitmap contradicts: on Windows 11 22631 ARM64 the kernel keeps SystemPtes’ free count below zero and its total at three times what its bitmap covers, and the driver-image allocator’s free count far above its total. Such an allocator’s total and use show as unknown, with the reason, and are left out of the summary.On ARM64 over KD,
ron a processor other than the one that stopped the target shows that processor’s ownx18(its KPCR, or its thread’s TEB) andttbr0(its thread’s process), where it showed the stopping processor’s, and~labelled every processor with the stopping one’s process;esrandfarare read at every stop, not only after a step.A KD attach made right after another debugger session ended no longer fails with “invalid virtual-memory read … received 1024 bytes … for request 512”: a read of memory, a system register or control space takes only the reply to its own request, and passes over the target’s stale reply to the last session’s.
!chkimgsets aside what Windows changes in its kernel at boot: the import address table the loader fills,nt!KiServiceTable, which the kernel packs into offsets, and the*_Patch*sites it rewrites for the processor, so Windows 7, 8.1, Vista and XP x64 report 0 genuine mismatches, where they reported 1,400 to 2,100.!pfnreads every_MMPFNfield where the build’s PDB puts it, so XP x64’s page location, cache attribute and color decode correctly, where they decoded with a newer layout.!vmon Windows 8.1 and older reads the system-PTE counts the build keeps (XP x64 showed 868605598094041 free PTEs), lists each paging file’s size and use, and leaves out the counters a build lacks instead of listing them as not found.!process <process> 7showsVadRoot’s root VAD and the number of VADs on Windows 7, Vista and XP x64, and quota usage on Vista and XP x64, where they showed-;!pebleaves out fields the build lacks instead of listing them as unavailable.!heap -xgives a free block’s user size without its header, and!vadnames large-page section, physical and rotate views, where it showedvad:7.!pooland!poolvalon Windows XP x64 take a 16-byte free fragment whose PreviousSize chains it to the block before as a block, though its tag holds stale bytes, and list a block whose pool type is 0 as free;!poolvalcalled a third of nonpaged pages invalid.A deeply nested or very long expression in
?,dx,dt, MCPcommandor DAPevaluatefails with “expression nested too deeply” past 128 levels, where a few hundred levels overflowed the stack and aborted the debugger, leaving a live target’s breakpoints planted.MCP:
outputwithlimit: 0is refused, where it panicked and left the session unusable until a restart; a panic while handling a request now fails only that request. The rest of an over-long single line can be read withoutput, in pieces cut at characters.DAP:
disassembledecodes up to unreadable memory, where it failed for the whole request, and no longer returns rows shifted from the instruction offsets asked for. A kernel crash dump refusesnextandstepOutup front and withdraws writes and breakpoints, as a user-mode minidump does; exception filters on a dump stay unverified and leave thesxsettings alone; adumpargument that is not a string is rejected.GDB server: a user-mode minidump publishes its modules as libraries and in the memory map with its main image as the program, where it named
ntoskrnl.exeand listed none; its target description no longer lists control registers the dump does not hold; and an access violation stops with SIGSEGV on the faulting thread, not SIGTRAP.A kernel-dump processor with no captured context has its registers unavailable in
r,~, the GDB server and DAP, where they read as zeros.A breakpoint set over KD at a module-load stop hits, where lifting the load trap on resume deleted it (the stop had freed the trap’s KD handle and the new breakpoint took it), and
guthere returns; the load and bugcheck traps a stop takes out are planted again, so latersxe ld:stops still fire..processwithout/ilasts until the target runs, as in WinDbg, where it outlivedgand read through the page tables of a process that had since exited; a kept context whose process exits ends with a warning. After.process 0,$teb,$thread,$procand$pebresolve without.thread, and the MCP trailer names the stopped thread’s process, not System, on an idle processor.pc,tc,ph,th,pt,tt,paandtaexecute the current instruction before looking for a match, so repeating one moves on, where it stayed put; the SDK’sstep(until=)andstep_over(until=)likewise..lasteventreports a single step; breakpoint conditions can name$tid,$threadand$proc;sxe -c "<commands>"works without-fand the event breaks;threads 0n<pid>matches asthreads <pid>does; andxfinds a DLL’s symbols at its load stop.A full KD breakpoint table gives one message that says when this session’s own breakpoints fill it, where
bmprinted one per symbol blaming a previous session.!poolfindleaves out blocks whose tag does not read as one, where a wildcard search listed data the scan took for headers asAllocated?blocks tagged....(47 on a Windows 11 dump).A module image the symbol server does not have is fetched once per session, where every new GDB server client queued it again and its next
monitorreply carried dozens of fetch-failure lines;.reloador a symbol path change retries it.A memory write (
e*,f,m,.readmem, DAPwriteMemoryandsetVariable, GDB serverM, SDK writes) over one of the session’s breakpoints changes the code under it and keeps the breakpoint planted, where it replaced theint3; over KD that left a breakpoint table entry Windows could not release.Over KD, attach reports only the stranded breakpoint table entries it released and warns about one Windows keeps, where it claimed to release it on every attach; a breakpoint set at a kept entry’s address stops, where it was reported set but never hit.
A breakpoint or step site in user code whose process has exited is removed through its physical page when the page is still the one it was planted in (a DLL’s shared code page other processes run), and dropped when the page was reused, where removal failed and detach left the guest halted.
DAP:
next,stepInandstepOutare answered at once with acontinuedevent, so the editor shows the thread running, other requests are answered and Pause ends a long step; a step whose thread exits ends with astepstop that says so.GDB server: when a client leaves and one of its breakpoints cannot be removed, the guest stays halted and the failure is reported, as with
qand a DAP disconnect, where it resumed the guest.On ARM64 over KD,
bastops: its controls asked for matching that a processor without EL2 never does, the breakpoint exception Windows raises for a hardware hit was resumed as a stale breakpoint, and the slots offered were the eight the CONTEXT holds rather than the processor’s own (six execute slots on a typical guest).On ARM64,
p,gu,pa,pc,ptandwtover a call to__security_push_cookie, which nearly every function with a stack cookie makes in its prologue, end where they should, where they ran on until interrupted, andwtno longer nests the caller’s later calls under it.On the
gdbbackend, a deferredbu /pis refused with the user-space reason that suggestsba e1, where it said the backend could not plant breakpoints at all.On the
gdbbackend,ba ein a WOW64 process’s 32-bit code is refused: when such a breakpoint fired while the other vCPUs ran, QEMU paused the VM with an internal error and the guest had to be reset.A KD request that times out while the session checks the kernel image (as during a Ctrl+C into a flood of breakpoint hits) no longer reads as a guest reboot, which rebuilt the session, forgot the step’s breakpoint still planted in guest memory, and left the guest halted at exit.
On the
gdbbackend,pover a call,guand the other runs to an address in user code take a free hardware breakpoint slot for the run, where they ended with an error.rshows pseudo-registers (r $proc,r $peb, rip), as WinDbg does, where only$t0-$t19worked and the rest were “not found”.GDB server: a reply that takes longer than gdb’s
remotetimeout(amonitorcommand loading symbols) no longer drops the client: gdb’s-for the late reply is ignored, as the protocol requires in no-acknowledgment mode, where gdbstub ended the session.A run to an address handed back running (MCP
guorpover a call pasttimeout_ms, a DAP step) takes its temporary breakpoint out at the stop a later call collects, where it stayed inblas a breakpoint on the thread and stopped it at that return again on every laterg.Expressions (
by,poi, …) and breakpoint conditions read the code under the session’s own breakpoints and traps, asdbshows it, on every host, where they read theint3:eb nt!NtClose by(nt!NtClose)with a breakpoint there wroteccback as the original code, andbcthen left it in the guest for good.Typed reads (
dt,dx, DAP variables, and the extensions that read kernel structures) show the code a planted breakpoint or trap displaced, asdband expressions do, where a struct or array over a breakpoint showed itsint3.vertargeton a target broken into early in boot shows its Windows version as unknown, where it showedWindows 0.0before the kernel had filled the version in.Over KD, a stop the transport absorbs on its own (a breakpoint reported again after it was retired) no longer leaves the breakpoint entries that stop freed recorded as the session’s, where a later
bccould delete an entry that had reused the handle.With
!gflag +ksl, Windows’ own report of a user-mode DLL load stops at ansxe ld:filter and resolves deferredbu /pbreakpoints while the user-image trap is planted, where it was dropped for the trap to report: on ARM64, where the trap never sees a DLL loaded after its process starts, those loads were lost.daandduon a user-mode minidump show a string whose end the dump holds when it stops capturing later in the page, a mapped view’s pages no longer stay unreadable for a whole session when first read before their process was listed, and a compressed page that fails to decode reports why, not a bad address.ARM64 stacks unwind through functions with a 512-byte local frame in packed unwind data, where the unwinder restored x19 and x20 instead.
Over KD, a file the debugger cannot read for
.kdfilesfails the guest’s read, where the guest got a truncated file; a stop the debugger could not step past is shown as a stop, where the target looked running for good; and a transport error while reclaiming a previous session’s breakpoint slots is reported as itself, not as a full breakpoint table.Over KDNET, a failed send no longer fails the next request too, and a datagram that does not decrypt is dropped instead of failing the request.
When
ntoseyereads guest memory from the VM process (thememorybackend, or KD with--memory-source host), a physical read or write that crosses the 32-bit MMIO hole fails, where it went on into guest RAM above 4 GiB.!hvbpand the SDK’sadd_hypercalltake thehv!prefix in any case.Images are downloaded from the symbol servers
.sympathset, not only the default ones, a symbol download that finishes after its module unloaded no longer registers the module again, and a breakpoint journal that cannot be read is kept, where it was deleted with the record of breakpoints left in the guest.!heap -sand!heap <heap>give a WOW64 heap’s free space in its own granule, where they doubled it;!heap -xcounts a heap it could not identify as failed, not searched; a heap list that ends early makes the heap unavailable, where its segments and blocks went missing; and a corrupt LFH header no longer makes!heapallocate hundreds of megabytes.!csshows 0 waiters for a held critical section with none, where it showed 4294967295, and!chkimgno longer skips a section because one changed page was freed.!poolusedfalls back to the big-page table when the pool tracker tables cannot be read, and power-failure analysis walks the kernel’s IRP or worker list when the triage block leaves one out.!vprotreads an address in a 1 GiB page,!devstackand virtio’s driver lookup take no PDO from a device stack whose links loop,!wdfdevicelists the queues it read before an unreadable one, and!virtiostops at a request it cannot read whole, where it decoded the bytes after the gap.$pebon a user-mode minidump reads the PEB pointer by the PDB’s_TEBlayout and works before a thread is selected, and a minidump module with a zero timestamp is fetched by its image’s timestamp.!cpuinfoon a triage dump gives the CPU family (6, not 0x106) and only for the processor the dump holds.A truncated triage dump is reported as such, where its integrity check passed.
On the
gdbbackend, a breakpoint set or cleared from DAP or the GDB server while the target runs leaves it running, where the edit’s own break-in was kept as a stop and the target stayed halted.On the
gdbbackend,gfrom a bugcheck lets Windows write its dump and restart, where it hitntoseye’s trap atnt!KeBugCheckExagain.The SDK’s
Debugger.reload()on a target that did not reboot removes the breakpoints it planted before reloading, where address breakpoints were forgotten with their int3 left in the guest and symbolic ones saved their own int3 as the code they replaced.Breakpoint actions and exception commands read numbers in the radix
nset, as the prompt does, and no longer reload the saved aliases at every hit.A command list stops after a command that is missing an argument, so
bc; gno longer resumes the target, and MCP reports that command as failed; MCP’s status line says the target is running when a stop’s breakpoint action resumed it.Quitting the REPL when the target cannot be halted leaves the breakpoints alone and says so, where it removed them from the running target and resumed it.
The prompt no longer crashes while you type an argument that starts with a non-ASCII character, and
sandfrefuse a byte pattern with a non-ASCII character after\xinstead of crashing.ntoseye configurefor libvirt recognises vmcoreinfo as libvirt writes it (state='on'), where every change it applied ended in “libvirt did not retain vmcoreinfo”, and turns on a vmcoreinfo element that is off.uwith an end address refuses a range over 1 MiB, where a mistyped one could exhaust memory, and shows every readable page up to the first unreadable one, where it stopped after the first page..writememrefuses a running target and keeps the captured part of a partly captured page, where it wrote zeros, and.dump /uwrites the code under planted user-mode breakpoints, not the breakpoints; the SDK’s physicalsearchstops at 4096 matches and skips unreadable pages.!idtlists only the vectors the IDT’s limit covers,~*selects every processor past the first 256, and!pcinames the buses it scanned when no function responds.dxshows a signed bitfield’s negative values, accepts an escaped quote in a string before the format, and.First,.Anyand.Allstop at the element that decides, so a later element that fails no longer fails the query; adding adisplayevaluates only it, and an unreadable scalar shows its error.!locksshows a resource whose count cannot be read as unknown, where it counted it as held.!threadon a running target says the stack of a thread on a processor is unavailable, where it showed the stale stack it was switched in from;lm aafter.vtl 1finds the secure kernel’s modules;!apc <name>refuses a name several processes share, where it took the first.ssdtmarks an entry that points into a driver whose name containsnt, or into no module, as hooked.dlsays when it stopped at its 4096-entry limit,!acldescribes a null SACL as auditing nothing,!chkimg -nospecno longer calls its total genuine,.kdfilesrefuses extra words and shows its statistics with an empty map, and!hvvmcsrefuses a VTL over 255..formatsconverts FILETIMEs after the year 2440, where it said they were out of range.Breakpoints set with the GDB server’s
monitoror from the DAP debug console are no longer taken for, or removed as, a client’s breakpoint that had the same number before, and a Pythonwhen=callback no longer runs for a later breakpoint that reuses its breakpoint’s number.When the GDB server or DAP cannot remove a client’s breakpoint, it keeps track of it, and DAP says so, where the breakpoint went on firing unowned; a hit on the second address of a DAP source breakpoint reports the client’s breakpoint.
breakpoints.add_patternkeeps itswhen=callback on the breakpoints it set when others failed,module["name"]in a process loads the process’s symbols asprocess.symbols["module!name"]does, andSymbols.source_locationandSymbols.locals_attake a symbol name in a process whose symbols are not loaded yet.Tab completion works in the second and later commands of a
;list, stops offering an unloaded module’s symbols, and the command palette lists processes while the target runs, as Tab does;nt!and Tab listsnt’s symbols, where modules sorting before it could fill the list.A corrupt heap no longer makes
!heapallocate the size of a whole segment or panic on its unit size;!heap -sand!heap -xreport a broken process heap list, where they quietly searched part of it; and!heapsays when a segment heap’s large-block walk stopped at its limit.!verifierno longer lists every configured driver as not loaded when the verified-driver list cannot be read whole, and stops at a corrupt table count.!alpc /lppcounts the ports it could not decode,!filecachesays when its totals are partial,!cashows a subsection’s unused PTEs and file name as unavailable when they do not read, and an interrupt vector whose object cannot be read is reported as unavailable, not as unconnected.!gdtdecodes a long-mode call gate as the two-slot descriptor it is.!wdflogdumpand!rcdrlogdumpno longer stop and call a log corrupt when writers racing each other left its records’ sequence numbers out of order.Memory-manager commands no longer read the visible state at a wrong address when the kernel’s pointer to it cannot be read, and
!pooland!poolvalno longer take a big-pool allocation for classic pool when the big-pool table could not be read.Corrupt guest data no longer makes ntoseye allocate gigabytes for a hypervisor image, or overflow on virtio descriptors and MDL frame numbers; virtio views show a returned buffer’s length and a queue’s interrupt signal as unknown when they did not read, where they showed 0 or off.
!lookasidesays when a walk stopped at its limit or on a bad link, the registry shows a hive whose root path cannot be read as unavailable, not unmounted, and the shadow service table is skipped when its descriptor’s layout is missing, where fixed offsets were assumed.On a triage dump, the process list is refused when its layout names no process ID, where every process showed PID 0.
Commands that answer a missing argument with their help, such as
undisplay,.if,jand$<, count as failed, so a;list stops there and MCP reports the failure;.breakor.continuewith an argument ends its loop.A command refused inside
.while,.foror.doends the loop, where the loop repeated the refusal until Ctrl+C.~Nandvcpu Nread the processor number in decimal, as~lists it, where they used the current radix and~10sselected processor 16;vcpuworks on thememorybackend, as~Nsdoes.frefuses a range over 16 MiB, andbc,bdandbetake any ID range without expanding it, where a wide one hung the REPL..printf %muanddxread a string that ends before an unmapped page or a dump’s capture hole, anddxmarks a string it cut short with...; an unnamed object’sObjectNameis empty, so the documentedWhere(o => o.Name != "")handle query works.A breakpoint target with a space after a comma in a template argument list,
bp nt!X<A, B>::f, is one target.!pcireads its arguments in hex, as its help says, and needs a halted target;.hh <name>finds aliases and Python commands;dsanddSrefuse a descriptor that runs past the top of the address space;!analyze -hangsays how many processors it left out; and!cpuinfoon a triage dump shows the dump’s metadata when any field is missing.!hvu,uandubtake anL?<count>range,.dumpon a user-mode minidump gives the usual kernel-target refusal,.process /iandattachon a running target no longer claim that no processor runs the process, and!dbgprint’s count follows the radix.The StorPort adapter and class-device overviews say when a unit or packet walk stopped early,
!rcdrkd.rcdrloglistand!rcdrkd.rcdrlogdumptake the context address as any expression,lmreports a malformedm,uorkoption, and!drvobjtakes\Driver\in any case.Python
help()shows SDK docstrings as written,\Driver\ACPI, where command docstrings showed each backslash doubled.On ARM64 over KD, a step or a step walk that a breakpoint hit on another processor came before goes on once that hit is passed over (a Python
when=callback that declines it), where it failed with “only that processor can step”; a step that the processor finished in another thread it switched to meanwhile ends there, with the diverted notice. A step walk (step(until=),step_over(until=),wt) goes on in the thread it started in instead, as on x86, unless the instruction continues through an exception (svc,brk,eret).A stop no longer walks the whole process list to name the process whose page tables it stopped on: the stopped thread’s own process answers, a root an earlier stop found keeps its process while that process stays on the list, and a root no stop has found yet is looked for along the list only as far as its process, which alone is named. Over KD every stop walked it, with a read of every process’s PEB for a long name, which made a breakpoint hit a Python
when=callback declines take about 2 s on an ARM64 KDNET target, where it takes about 0.11 s now: a stop also reads its thread’s fields at once and remembers each processor’s KPRCB for the boot. A session’s first break-in over serial KD with memory read through KD took 4 s, and takes 0.6 s.!irpfind’s usage shows that a criteria comes with its data,[criteria data], where it showed the data as optional on its own.Over KD, a lost packet no longer leaves the session stuck. When the target’s ACK of a request was lost, ntoseye sent the request again, which the target ignored, and every request after it reused its packet id, so the session stopped answering for good (or ran the target again, for a continue). When our ACK of the target’s stop was lost, the request sent next was dropped and failed after 5 s, which could leave a breakpoint install pending. ntoseye now takes a reply (or, for a continue, the next stop) as proof its request arrived, sends a request again when its reply does not come, and a continue again when the target repeats the stop it ran from. Over KDNET, which answers within milliseconds, a missing ACK or reply is waited for 1 s rather than 5 s before the packet goes again. With 2% of KDNET datagrams dropped, a REPL session now goes on stop after stop at 12 to 24 s each, where it stalled within a few.
Over KD, a bugcheck that a processor raises while the target is halted, in the debugger itself, is the stop that comes next, as a bugcheck. ntoseye took the bugcheck’s state change for the old stop announced again and dropped it, showed the old stop with the bugcheck’s registers, and resumed the crashed target into a reboot. An ARM64 target did this now and then under a breakpoint in
nt!KiSwapContextthat a Pythonwhen=callback declines (bugcheck 0x2B, PANIC_STACK_SWITCH).Over KD, a breakpoint is no longer lost when the KD connection resets while a step waits for its stop, as it can while the guest reboots: deleting it failed with “no breakpoint tracked”, and its entry stayed in the target’s breakpoint table until the next session released it. The KD backend forgot its breakpoints when it saw the reset, but a step’s stop never reached the session’s reload that sets them again; it now forgets them only when the session reloads.
Over KD, ntoseye refuses a code breakpoint in the kernel debugger’s own code (
nt!KdTrap,nt!KdEnterDebugger,nt!KdExitDebugger,nt!Kdp*, and the KD transport), which Windows runs on every entry to the debugger and exit from it, innt!KeQueryPerformanceCounter, which the debugger calls while the target is halted, and on ARM64 in the exception handler and dispatch everybrkand step goes through (nt!KzSynchronousException,nt!KiSynchronousException,nt!KxDispatchExceptionOnExceptionStack,nt!KiDispatchException), as it already did in x64’s trap dispatch. A breakpoint there trapped again from within until the target went down:nt!KdpReportbugchecked an x64 target with 0x7F at once, and on ARM64 agufrom a step that stopped in an interrupt taken while the processor left the debugger planted one atnt!KdExitDebugger, which bugchecked the target with 0x2B within seconds, apover a call innt!KiSynchronousExceptionplanted one there, which hung the target at its first hit, and one from that interrupt planted one innt!KeQueryPerformanceCounter, which hung the halted target as it was written.NTOSEYE_NO_BREAKPOINT_BLOCKLIST=1turns these refusals off, with those forKVASCODEand x64’s trap dispatch.ntoseye mcpandntoseye dapstarted with--memory-sourcebut no target apply it to the KD or KDNET target the client opens later (MCPopen, or a DAP request withoutmemorySource), where it was ignored andautoused.
v0.52.0 (2026-10-25)¶
Support for 64-bit Windows 7, 8.1, Vista and XP (platform support), reads of memory Windows compressed into its memory-compression store (on x64 and ARM64), scripted runs with -c and --batch, UI improvements and many bug fixes. Stops and u now show where the code goes: the instructions around the stop in its function, jump and call targets by name, the jumps between them drawn as arrows, and whether the next one is taken; a bugcheck stop shows the registers the faulting instruction ran with, and its stack starts at the frame that faulted.
Added¶
On ARM64 Windows, reads of process memory in the memory-compression store decompress the page, as on x64:
ntoseyereads the store’s layout from the ARM64 kernel’s code. A page and its page table both in the store read right on Windows 11 22631 over KDNET, where they read as??before.tools/fetch_ntoskrnl.py --arch arm64fetches ARM64 kernels for the layout test.!devobjand!devstacktake a device by name,\Device\NullorNull, as WinDbg’s!devobjdoes, and!drvobjtakes WinDbg’s flags: 1 shows the device objects, 2 the dispatch routines.On an ARM64 target,
rdmsrandwrmsrtake a system register by name (MIDR_EL1,TTBR1_EL1,CNTVCT_EL0), asS3_0_C0_C0_0, or by the number KD reads it by, and name the registers they know.rdmsr TSCthere sent x86’s MSR number.-c '<commands>'runs commands at startup, each line as typed at the prompt, ascdb -cdoes; give it more than once for several lines.--batchquits after them instead of prompting, prints only the commands’ output, leaves a live target asqdoes, and exits with status 1 if a command reported an error. See Commands from the command line.--kd-handshake-timeout <seconds>sets how long thekdandkdnetbackends wait for the target’s first answer, asNTOSEYE_KD_TIMEOUTdoes, and wins over it; the default is still 8 seconds. MCP’sopentakes it askd_handshake_timeout, DAP’s attach arguments askdHandshakeTimeout, and the SDK asntoseye.attach(kd_handshake_timeout=...).The
gdbbackend sets as many hardware breakpoints (ba) as the GDB stub accepts, no longer four, so QEMU running with TCG, which emulates them, takes any number. Under KVM the processor still has four debug registers, and a fifthbasays the stub refused it.A module whose PDB no symbol source has — a vendor driver never published — falls back to the export table of its image in the dump, as the Windows debugger does, so
k,lnand!analyzename its functions (myfault!nmf_fault_irql+0x35) where they showedmodule+offset, and a deferred breakpoint on an export binds. So does a module whose image names no PDB at all (no CodeView record), once fetching the image does not name one either. A PDB acquired later (a source added, the process attached again) replaces the export symbols.The prompt suggests as you type: the rest of the most recent earlier line that starts with what you’ve typed appears dimmed after the cursor (
bsuggestsbp nt!NtClose), as fish does. →, End or Ctrl+E accepts it, Ctrl+→ a word at a time; Enter runs only what you typed. Tern’s prompt already did this. WithNO_COLORset, nothing is suggested, since only its dimming sets a suggestion apart from what you typed.The prompt marks where each command and its output start and end (OSC 133), as a shell does for its terminal, so a terminal that reads the marks can jump between commands, select one’s output, or flag one that reported an error.
When the target ran for 10 seconds or more before it stopped, the terminal shows a desktop notification of the stop (
ntoseye: breakpoint #0 hit at nt!NtClose on processor 2): kitty only while its window is out of view, terminals that read OSC 9 (Ghostty, iTerm2) each time. A stop you cause with Ctrl+C orbreaksends none.The window title names the prompt’s processor and backend, and where the target stopped or that it runs (
ntoseye - 3: kd - nt!NtClose+0x5), and is given back on exit.A stop at an
int3that Windows executes on purpose says why it broke in. The first is a resource timeout: when a thread waits for an executive resource (ERESOURCE) longer than the timeout, Windows breaks in atnt!ExpWaitForResource, and the stop now says so and points to!locks.!runaway [flags]shows how much processor time each thread of the current process has used, most first, as WinDbg’s does: user-mode time (1, the default), kernel-mode time (2), and time since the thread started (4). It works on a kernel target, from each thread’s tick counts, and on a user-mode minidump, from its thread-info stream. The SDK has it asProcess.thread_times()andUserProcess.thread_times().!cs [-l] [address]lists the critical sections of the current process, as ntdll keeps them onRtlCriticalSectionList, or shows one: whether a thread holds it, the owner’s TID, its recursion count, how many threads wait for it, and how often threads have waited.-llists only the held ones. It works on a kernel target and on a user-mode minidump; the SDK hasProcess.critical_sections()andcritical_section(address), and the same onUserProcess.sxe ld:<module>andsxn ldapply to the user-mode DLLs and executables that processes map, and a deferredbu /p <pid> <module>!<symbol>is armed in that process as the module is mapped, before its entry point runs. A trap atnt!PsCallImageNotifyRoutines, in place only while such a filter or breakpoint waits, sees every mapping in every process, on KD, KDNET, and thegdbbackend; no global flag is needed. The module’s symbols load from the image, and a breakpoint in a page the process has not touched yet goes to the target’s breakpoint table, which writes it when the page arrives..dump /u <file>writes a user-mode minidump of the current process, from a live target or a kernel dump: its threads with the user-mode registers their stacks give, their names and priorities; its modules with their CodeView records and versions; the modules it unloaded; its handles, named; its regions asVirtualQueryreports them; every committed page of its memory that is in physical memory or was never touched; the build string and time-zone bias; and, when the target stopped at an exception that one of its threads raised in user mode, that exception, so.ecxrand!analyzework on the minidump.ntoseye --dumpand other minidump readers open it, and the SDK has it asProcess.write_minidump(path).Reads of process memory that Windows compressed into its memory-compression store (Windows’ default on client editions) decompress the page from the store, where they failed, also when the process’s page table is itself in the store: on the
memorybackend, onkd/kdnetwith either memory source, and in complete and active memory dumps,.dumpandvirsh dumpdumps, for x64 and ARM64 Windows 10 1703 and later whose PDB types the partition’s store fields.ntoseyereads the store’s layout from the kernel’s code on first use, from the kernel file in the symbol cache when it is there, since the PDB does not describe it and it moves between releases (and within 24H2’s servicing). A store that Windows creates afterntoseyeattached, as turning compression on withEnable-MMAgentdoes, is found once the target has run..dump /ucaptures these pages too, in regions of any size. See Compressed memory.!ptesays where a page that is not in memory is: never mapped, demand-zero, in a paging file at a page, or in the memory-compression store (and whether it decompresses, or why not), and the SDK’sMemory.pte()has it asPteWalk.non_resident; a command whose read failed, such as?ordx, adds the same as a note, and.pageinsays it when the page stays unreadable.
Changed¶
Breaking: A processor is named by its number, counted from 0 as Windows counts them, the same on every backend: the prompt reads
3: kd>, as WinDbg’s does, a stop namesprocessor 3, and~lists the processors by number. They were the backends’ thread IDs,p1.4overkdandp01.04overgdb, counted from 1 in hex. In a guest partition’s view, a VP is that guest’s processor, under the prompt1: partition 0x3>, and a user-mode dump’s prompt names the thread by its number in~’s list (17: minidump>), as WinDbg’s0:017>does.~andvcputake only the number (~3s);~p01.04sis gone. MCP’s trailer and the thread names of DAP and gdbserver clients name processors the same way.On an ARM64 target,
ripandrspno longer namepcandsp:r, expressions and breakpoint conditions take the ARM64 names (@pc,@sp, or$ipand$cspon any architecture), as WinDbg does.fp,lrandpstatestill namex29,x30andcpsr.On an ARM64 target,
!vtopwith a directory base lists each page-table entry the translation reads, with its flags, as it does on AMD64. It showed only the physical address.On an ARM64 target,
ba erefuses an address that is not 4-byte aligned when you set it, on every backend, as such a breakpoint never fires. Only thekdbackend refused it, and only once it programmed the processors.A stop’s disassembly shows nine instructions around the instruction pointer, those before it too, within its function (no longer the padding past its
ret), each with its offset from its symbol, as the stack andlncount it; where a symbol starts among them, a line names it (nt!KiSystemServiceCopyEnd:). A direct jump or call names its target in place of its address: by its offset when the target is among the instructions shown, under the same symbol (je +0x33), else by its symbol, whichu,bpandgtake as it is (call nt!ObpPushStackInfo,jle ↓ nt!ObfDereferenceObject+0x59). The jumps between the instructions shown are drawn as arrows, a breakpoint is marked●, and the instruction the processor is at says whether its jump istaken(its arrow lit) ornot taken, and where aretreturns to. The instruction bytes are left out of the stop;ushows them. MCP’s step results show the same.u,ubanduflist instructions as the stop does, with their bytes, and mark the instruction the selected thread is at.ufdraws the arrows across the whole function. A short jump now names its target, where it showed a bare address.At a bugcheck stop, the registers are the ones the faulting instruction ran with: those of the trap frame at the fault (one the parameters name, or the innermost trap on the stack, which a 0xD1 or 0x50 is raised from), with those a trap frame does not save, such as
rbxandr12-r15, recovered by the stack walk. The heading saysregisters (trap frame),registers (unwound), orregisters (at stop)for the processor’s where neither is found. The stack starts at the frame that faulted, the bugcheck’s own frames folded into one line (00–05 nt!DbgBreakPointWithStatus … nt!KiPageFault+0x468).Stacks (the stop’s,
k,!thread,!analyze -v) mark with a line where the walk crosses from kernel code into the user-mode code that called it (user mode) or through a trap or an interrupt (trap).A frame’s source line in
kreads as in the stop,[local <path>:<line>]for the copy.srcpathmaps,[recorded <path>:<line>]otherwise. In a terminal that supports links, a local copy that matches the PDB, and the filelsandlsalist, are links that open it.dqs,dps,ddsandkdname the registers that point into each slot (rsp ▶), and mark a value that is a return address, one the code before ends in a call,↩before its symbol.dbsplits each row’s two halves with-, as WinDbg does, and the memory displays show zero values and unreadable items dimmer than data.~marks the selected vCPU with..On an ARM64 target, the register grid names the flags
cpsrhas set after its value (cpsr 0000000060000000 [Z C]), as it namesrfl’s on AMD64. They were spelled under its digits, on a line of their own.r rflreads AMD64’s flags register by the name the grid shows, and a selected frame’s or context’s registers answer to their other names too (rflforeflags,fpforx29).r eaxin a frame that did not saveraxsays it was not recovered rather than that no such register exists.One blank line sets a command’s output apart from the next prompt, whatever the command ended with: some commands left none, others one or two. The output starts right under the command line, and the blank lines between its sections stay. A
.logopentranscript reads the same; MCP results, gdbserver’smonitoroutput and DAP’s debug console end at the output’s last line.Every command’s output follows one style, closer to WinDbg’s. One object’s fields are aligned under a heading that names it (
THREAD,PROCESS,TEB,TOKEN, as WinDbg names them); a value that is missing or could not be read is-, with the reason in one note under the block; booleans readyes/no, enumerationsWaiting (0x5), flag sets0x8004 (SE_DACL_PRESENT | SE_SELF_RELATIVE), times2026-10-15T23:23:28Z, and processessmss.exe (PID 540). Messages start in lowercase, an empty result says what there is none of, and a command that changed nothing says so (.logclosewith no log open,.cxrwith no context selected).!threadand!processlist their fields one per line, not packed intokey=valueruns, and many extension commands (!vm,!locks,!lookaside,!stacks,!idt,!gdt) lay out their records as tables. Disassembly prints hex in lowercase.Stacks are numbered as
knumbers them (00,01) everywhere, the stop’s and!thread’s too, and every stack ink’s layout has its header row (# Child-SP IP Call Site). A frame without a symbol shows its address in the call site, and a stop names its thread as!threaddoes (thread ffffb10918a7f080 TID 10236 PID 6532 process svchost.exe).rwith a frame or a context selected shows the register grid, with-for a register the frame did not save, as plainrdoes. It listed the registers one per line, sorted by name as text.A bad argument to a hypervisor command (
!hvvps,!hvept,!hvcalls,!hvd,.partitionand the others) says which argument is wrong, then the usage line. They printed the whole help text.attachand.process /ialso select a thread of the process, so!teb,!gle, andkshow it without a.thread: the thread a processor runs, with its live registers, else its first whose kernel stack is resident. They say which they selected..processwithout/istill keeps the current thread, as WinDbg’s does.threadswith no filter, while attached to a process, lists that process’s threads, as!for_each_threadand!uniqstackdo;threads *lists every thread. Its start address is the thread’s own entry (its Win32 start address, such asping!wmainCRTStartup), named where symbols are loaded, the kernel’s and the attached process’s. It showedStartAddress, which for a process’s first thread is a pool address, unnamed.!lockswalks the whole system resource list and shows the resources that are held, as WinDbg’s does, each with whether it is owned exclusively or shared and its owners’ TIDs and processes;!locks -vshows every resource. It showed the first 256 resources, held or not, which on a system with tens of thousands of resources rarely included the one that blocks. A walk of 65,000 resources takes a few seconds, as each is read once.
Fixed¶
64-bit Windows 7 SP1 is a supported target (platform support): the
memorybackend finds its kernel (mapped executable inside a large page), andkdleaves it running on exit (it has noSetContextEx, and froze). On it,drivers,!object,!devobj,!drvobjand!handledecode objects (whose type index has no cookie there),!vad,!vprotand.dump /uwalk its VAD tree,!ptefinds its fixed PTE base,!pool,!poolfindand!zombiesread its pool (its protected tags,Procamong them, and its pool range globals),!heapdecodes its NT heaps,!dpcsand!pnptriageread its DPC queues and device nodes, and stacks walk throughwin32kinto user mode. Windows 7’s ole32 PDB no longer warns about its WPP annotations.64-bit Windows 8.1 is a supported target too:
!pool,!poolfindand!zombiesfind its pools (no start globals; its fixed ranges), and stacks walk throughwin32k, whose symbols now load on 7 and 8.1 (session-space images are read through a session process).The VAD readers (
!vad,!vprot,.dump /u, module discovery) take each release’s tree node types from the PDB, so 64-bit Windows 8’s_MM_AVL_NODEtree resolves where it failed on a missing_MMADDRESS_NODE. Windows 8 has not been tried live; its other layouts match Windows 7’s or 8.1’s.64-bit Windows Vista SP2 and XP Professional x64 SP2 (the Server 2003 kernel) are supported targets: objects are decoded from their headers’
Typepointer andNameInfoOffset(drivers,!object,!devobj,!drvobj,!devstack,!zombies),!timerwalks the one timer table their processors share,!processshows XP’sDirBase,!tokendecodes XP’s privilege array, and their hives show-for the mount point they do not record, not(not mounted). On XP,!heaplists heaps without statistics (its heap layout predates Vista’s), and on both!filecachereads only Windows 7’s VACB arrays and later.The
memorybackend reads QEMU i440fx (pc) guests with 3.5 GiB of RAM or more, which keep 3 GiB below 4 GiB, and q35 guests with less than 2.75 GiB, which keep all of it there: it took q35’s 2 GiB for every KVM guest, and read the wrong pages above 4 GiB (on an 8 GiB Vista guest, a stack overflow walking the process list). A process link outside kernel space now ends that walk.On Windows 10 22H2 (19045),
!zombiesand!poolfindfind nonpaged pool, and!sysptesand!vm’s paged pool read the system-PTE allocators and pool counts, where they failed or read zeros: that kernel keepsMiState’s later members 0x40 bytes past where its PDB puts them, sontoseyereads them where the kernel’s ownMiVisibleStatepointer places them.!poolusedreads the per-processor tracker tables up to the processor count, which it read from 4 bytes of the 1-byteKeNumberProcessors(150 tables, mostly garbage, on Vista).callbacksends each notify array where the next callback global begins: XP’s hold 8 slots, and the globals after them were listed as callbacks.driversnames the module of a driver whose symbols did not load, from the loaded-module list.Thread state 8 reads
GateWait, as Vista through 8.1 name it, not Windows 10’sGateWaitObsolete;!dpcstakes a queue whose head was never initialized (XP x64’s threaded queue) as empty, not as a broken list.Stacks no longer fall back to scanning in code split off below its function (an indirect
.pdataentry, all through Windows 8.1’s binaries):explorer!wWinMain->wWinMainCRTStartup->BaseThreadInitThunkwalks by unwind data.!vmreports the pools in use on Windows 7 and 8.1 (MmPagedPoolInfo,MmAllocatedNonPagedPool), where it showed the paged pool’s maximum, and reads the paging-file count and Windows 7’s working sets at their 4-byte widths:number of paging files 1099511627778and17904.000 TiBworking sets.With
--memory-source host, a local VM that is not the KD target is reported as one (host VM memory does not match KD target), not as a bad virtual address.!idtnames the interrupt object and service routine connected to each device vector (ndis!ndisMiniportMessageIsr,storport!RaidpAdapterMSIInterruptRoutine), where it named onlyKiIsrThunk, or on kernels with KVA shadow (Windows 11 among them) nothing underKiIsrThunkShadow. On Windows 8.1, whose vectors point into the interrupt object itself, those vectors are no longer flagged[NON-NT HOOK].!handlescanned up to a count read from 8 bytes of a 4-byte field:256 of 703300895488 slotson Windows 7.!poolusedcounted big allocations twice: the tag tables count them, and their bytes were added again from the big-page table, so a tag with 758 big blocks showed 1516. It reads the big-page table only when the tag tables cannot be read, lists tags in the order their characters read (it went by the last one), and leaves out tags with nothing outstanding.!vmshows the system PTEs, each paging file (its size, limits, use, free space and peak use) and the nonpaged pool maximum on Windows 10 and later, which keep none of the globals it read. It said they were unavailable.!sysptesand!vmno longer stop with an overflow on Windows 11 22631 ARM64, whose free-PTE counter goes below zero. Free PTEs are counted from each allocator’s bitmap, and!sysptesshows a counter that disagrees as it reads (-3459) without blaming a race.!heapdecodes segment heaps on Windows before 11 24H2, which keep no separate VS free count. It showed no statistics for them.!drvobj ACPIshowed the driver named ACPI, not an error that acpi.sys’s image base is no driver object: a name is looked up before it is taken as an expression.On an ARM64 target,
!cpuinfosays the processor block keeps no vendor, family, model or stepping and points tordmsr MIDR_EL1, instead of reporting four x86 fields missing, and!analyzenames the program counterpc, notrip.vertargetnames the kernel’s PDB by its file, such asntkrnlmp.pdb, not alwaysntoskrnl.pdb.On
kdandkdnet, a reply that the target sent an earlier debugger and repeats to the next one is passed over, instead of failing the attach with “reply api mismatch”.On an ARM64 target,
!pteshows a page Windows lets the process write as writable (W) before its first write, when the hardware still maps it read-only, and marks it dirty (D) once written and copy-on-write (C). It showed such a page as read-only (R).On an ARM64 target,
~heads the program counter’s columnPC, notRIP.!vadshows each region’s commit charge on Windows before 11 24H2, which keeps it in another field. The Commit column was empty.A stack from a breakpoint in a function that JIT-compiled code called, such as a .NET P/Invoke, shows that caller’s frame. The walk dropped it and went on scanning the stack for return addresses.
Over
kdorkdnetwith no host mapping of guest memory (--memory-source kd, a physical machine, or UTM on macOS), page tables read through the kernel’s self-map are fetched a run of entries at a time and kept until the target runs..dump /uand!vprotcost a request for each entry before: a minidump of a 15 MiB process over KDNET now takes 135 s, not 297.A process whose image name is 15 characters or longer, such as
fontdrvhost.exe, is named in full in.dump /u,ps,attachand stops, not cut to the 14 characters the kernel keeps (fontdrvhost.ex).On the
kdandkdnetbackends,rshows a hardware breakpoint set or cleared withba/bc, or an MSR written withwrmsr, as soon as you make the change. It showed the debug registers andeferas they were before, until the target ran again.On an ARM64 target,
psteps over a pointer-authenticated call (blraa,blrab,blraaz,blrabz), as it steps overblr, instead of into it.Modules are named after their image file, as WinDbg’s
lmnames them, not the loader’s alias for it:kd.dllrather thankdcom.dll,mcupdate_GenuineIntel.dllrather thanmcupdate.dll, in a WOW64 process’s 32-bit module list too. Theirmodule!prefixes follow (kd!,mcupdate_genuineintel!).A stop after
portmarks the registers the step changed even when the thread finished the step on another processor (processor 0 before, processor 3 after), as it often does on a busy guest. The stop marked none then, and MCP’s step result showed the whole stop instead of what changed.A guest’s debug output (
DbgPrint), printed as the target runs and by!dbgprint, shows control characters as visible symbols, such as␛for an escape, instead of passing them to the terminal, so a driver’s output can no longer move the cursor, recolor or clear the screen, retitle the window, or plant a link. The SDK’sdebug_log()still returns the text as the guest printed it.A WHEA_UNCORRECTABLE_ERROR (0x124) and a KERNEL_SECURITY_CHECK_FAILURE (0x139) are described in a full sentence, in the bugcheck stop,
!analyze -showand the SDK’sBugcheckAnalysis.description, instead of starting mid-sentence with “and indicates that”.With
NO_COLORset, the prompt and its completion menu are plain too, as the rest of the output already was.With
TERM=dumb, as in Emacs’sM-x shell, ntoseye reads commands line by line as with--plain-repland prints no color or other escape sequences, which such a terminal showed as stray characters.!handle’s Object column, and the SDK’sHandleEntry.object, hold the object, as WinDbg’s does and as!objectand!fileobjtake it. They held its header, 0x30 bytes before it.!exqueuelists the work queues on Windows 11 build 26200, which keeps one flat list of them per partition. It read the list as one per NUMA node and failed on every queue.!heap -xsays which heaps it could not search instead of concluding that the address is in no heap.vertargetreadsWindows 10.0, from the shared user data page, instead ofWindows 15.26200, which took the dump header’s build-type marker for a version.On a processor whose context a dump did not capture,
ksays so; it showed a frame at address 0.!errorno longer names a code it does not know with a made-up constant (STATUS_UNKNOWN,ERROR_UNKNOWN), and says when a value can’t be a Win32 error. The SDK’sErrorCode.nameis empty for such a code.The working-set sizes of
!vmand!memusage, and the SDK’sProcessMemoryUsage.working_set_size, are in bytes, as the other counters are. They were page counts.scounts the bytes it could not read correctly, and says so when it could read none of the range rather than reporting no matches.dSno longer reads past a string’sMaximumLength.!hvcallon a target without direct host RAM, such as a kernel dump, says that the hypervisor’s memory needs it, as the other hypervisor commands do. It said the processor was not halted in the hypervisor.!address -summaryon a user-mode dump without a memory-info list prints the summary only, not every captured range.ntoseye mcp --http <address> --unsafe-httpanswers requests addressed to the host’s network address or name. Since v0.49.1 it refused every request whoseHostwas not a loopback name with403 Forbidden, so no other machine could use it.On a VBS guest over
kdorkdnet,bpin user-mode code that Windows will not let the debugger write, such as ntdll’s and kernelbase’s, works whenntoseyereads the VM’s memory from the host: it writes the breakpoint into that memory itself, on x86 guests. So dopover a call that returns into such code, and the cleanup of such a breakpoint after a killed session. They failed withNTSTATUS 0xc0000001orbad virtual address; where the fallback is not available, the error now says that Windows refused the write and what to use instead.batakes its options after the access and size too, as WinDbg writes them (ba e1 /p 4 kernelbase!SleepEx); it took them only before (ba /p 4 e1 ...) and said/pwas an invalid expression.Over
kdandkdnet,t,pandpcstep a WOW64 program’s x86 code. Windows reports a step there asSTATUS_WX86_SINGLE_STEP, and each step failed withtarget raised exception 0x4000001e while single-stepping, though it had stepped.pover a call to a helper that allocates its caller’s frame, such as_SEH_prolog4or_chkstk, stops after the call instead of running on to the next breakpoint.pt,tc,pcand the other walks step over a system call that user-mode code makes (syscall, orint 0x2e), aspdoes, and go on after it. They stopped withnt!KiSystemCall64Shadow ... is in ntoskrnl's KVASCODE section, from planting a breakpoint where the processor enters the kernel.tandpon an instruction that takes long, such as a system call that waits, finish in the stepped thread when another thread hits a breakpoint meanwhile. A hit outside the breakpoint’s scope, such as another process’s on abp /psite in a shared DLL, is passed over; any other stop, such as an in-scope hit, ends the step there and says what it is. The step ended in the other process, at the breakpoint site, with nothing saying why.gu,pover a call,tcand the other walks step a thread of another process than the one.processorattachselected, such as one a breakpoint stopped in, in that thread’s own address space.gusaid the return addressis not mapped inthe selected process, and the walks failed withbad virtual addresson the thread’s code.kon a WOW64 thread stopped in its x86 code, as at a breakpoint in x86kernelbase, lists its x86 frames up to_RtlUserThreadStart, andguthere steps out to the caller. The stack showed only the frame it stopped in, andgusaid it could not find the caller’s return address.!vadshows each region’s commit charge, in pages, on Windows 11 24H2 and later, where the VAD keeps it in a field of its own. It showed-for every region.!handlenames the handles whose objects have no name of their own, as WinDbg’s does: a file by its path on its device (\Device\HarddiskVolume3\Windows\System32\en-US\csrss.exe.mui), a registry key by its path as the hive names it (\REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\Session Manager), a process by its image and PID, a thread by its TID and process. They showed-.!locks <address>shows each owner’s real acquire count. It showed eight times the count on Windows 10 and later, where the count is a bitfield above three flags.Code the compiler split off from a function and placed after a funclet (
$filt$,$fin$) is named after its function, by its function-table entry, in stacks, stops,uandln:nt!ExpWaitForResource+0x4c011frather thannt!KiLockServiceTable$filt$0+0x2fe, a filter of another function that the address was merely nearest to.!locksshows an exclusively owned resource with its one owner. It also listed the shared owners its owner table kept from before, as if they owned it too.A hardware execute breakpoint (
ba e) is no longer missed when the stop’s DR6 does not say which slot fired, as Windows under KVM reports some hits. Such a hit was taken for a stray single step and resumed, so it faulted again, and could surface as an unexplained single-step exception: aba /pwatch on a shared DLL stopped in other processes.Over KD, the first
gno longer stops at once atnt!DbgBreakPointWithStatuswhen ntoseye connected to a guest already halted at a break of its own, such as a user-modeint 3or a resource timeout. The kernel kept the break-in the connect sent and took it on its first clock tick.Over KD, a user-mode image that Windows reports with
!gflag +kslis no longer taken for a kernel module: each one triggered a refresh of the kernel module list, and its base was offered as a hint at where the kernel is.Over KD, connecting while a user thread was running (or Windows was stopped in a user process) no longer makes that process the kernel’s for the session: ntoseye took the stopped processor’s page tables for the kernel’s, so the process showed as
kernel, its addresses went unsymbolized, and its modules showed in every other process. The kernel’s are now the System process’s.Ctrl+C while a filtered breakpoint fires faster than Windows polls for the break-in (a
ba /pwatch on a shared DLL) stops as a pause. After its retries it surfaced as an unexplained single-step exception in whatever process hit the watch last.The stack of a WOW64 thread in a user-mode minidump goes on into its x86 frames, from the x86 context its TEB’s CPU area saved, as on a kernel target.
.dump /uputs committed pages that the process never touched in the minidump, as the zeros they hold. They were left out as if their contents were unknown: in csrss from the kernel dump, 7 MiB..dumpwrites the whole exception record of the stop into a kernel dump’s header: its flags and parameters (an access violation’s access type and address) were zeros.dtreads a word after the type that names one of its fields as that field, as WinDbg does, even when the word would also evaluate:dt nt!_KPROCESS BasePriorityshowed the whole type, becausebasepriorityis a pseudo-register. The address may come before or after the fields (dt nt!_EPROCESS UniqueProcessId <address>).C++ functions and variables of public PDBs are shown and looked up by their undecorated names, as in WinDbg (
sechost!ScDispatcherLoop,nt!ST_STORE<SM_TRAITS>::StDmpSinglePageInsert,`string'), instead of their decorated names (?ScDispatcherLoop@@YAXPEAPEAX@Z).A page under a page table that the guest trimmed but still holds in memory (its PDE in transition) reads, as the page table is still in its frame; the walk stopped at the PDE, and the page read as unavailable.
Removed¶
In Tern, results print as text, as in any other terminal: stops, stacks, memory dumps and the other results Tern drew as cards, tables and trees are text again. Tern’s input field, with its completions and palette, stays, and so do the timer while
gruns and the progress bars of long tasks.
v0.51.0 (2026-10-19)¶
Added¶
A local directory on the symbol path (
--sympath-append,.sympath+) supplies the PDBs in its subdirectories too, eight levels down, so a mounted virtio-win ISO’s driver PDBs (viostor/w11/amd64/viostor.pdb) load without copying them out. ntoseye reads each directory once;.reloadreads it again for PDBs put there since.
Fixed¶
!analyzenames the faulting instruction and its driver for a KERNEL_SECURITY_CHECK_FAILURE (0x139) and an UNEXPECTED_KERNEL_MODE_TRAP (0x7F, or 0x1000007F in a minidump), from the trap frame the parameters name or the stack crosses, and buckets the crash and names the culprit by that driver. It named no fault for them, and bucketed them on the instruction the processor stopped at.A kernel dump that QEMU wrote (
dump-guest-memory -w, which libvirt runs when a guest crashes) now opens on the processor that bugchecked, so!analyze,kand the registers show the crash. ntoseye opened such a dump on processor 0, which on a multiprocessor guest was usually a processor that the bugcheck froze innt!KiFreezeTargetExecution.!analyzestarts that processor’s stack atnt!KeBugCheckEx, as for a dump Windows wrote, rather than in the bugcheck callback (pvpanic’s) that QEMU’s dump was taken in, and no longer takes that callback for the current instruction when it buckets the crash or names a culprit.
v0.50.0 (2026-10-16)¶
The Python SDK is now generated from the same definitions as the REPL: each command’s SDK method takes the same arguments, runs the same checks, and returns the record the command prints, with the command’s help as its docstring. Results are typed records that behave as values, and a stop is one Stop hierarchy that match and isinstance() narrow to the kind of stop and its own parts. Scripts written for v0.49 need changes; the Python SDK guide shows the current API, and the SDK reference lists every class.
Added¶
SDK methods for commands that had none:
dbg.inspect.hang(),decode_bugcheck(),blackbox_bsd()and the otherblackbox_*()reports,session_processes(),vtop(),set_global_flags(),virtio_driver(),vring_raw(),etw_save(),etw_crash_save()andetw_crash_session();Memory.pte();Process.inspect(),decode_peb()andloader_modules();Thread.decode_teb();UserDump.address_report(), what!addressshows on a user-mode minidump; andBreakpoints.list()andcommands(), whatbland.bpcmdsshow.Every SDK handle (
Process,Thread,Module,Cpu,Heap,Driver,Device,Breakpoint,Trustlet,UserThread, and the hypervisor’s) has its record asinfo, each of the record’s fields as a property,to_dict(), and==andhashby the object it names and the target it was read from: after the target reloads, an old handle is not equal to a new one for the same object. A process, thread or module handle goes stale when the target reloads, not when its object exits.An SDK argument that is a kernel address also takes a debugger expression (
"nt!KiSystemCall64+0x10") or the handle of the object there:dbg.memory.read(proc, 16)reads theEPROCESS, anddbg.types["nt!_ETHREAD"].at(thread)makes a cursor on a thread’sETHREAD. The handle must come from the same debugger,dbg.run(address=...)anddbg.step(until=...)included.
Changed¶
Breaking: A
Stopis one class with a subclass per kind, and each kind’s part is on its own subclass, neverNonethere:Stop.Breakpointhasbreakpoint(aBreakpointHit, withcondition_errorand the breakpoint’sserial),Stop.Exceptionhasexception(stop.exception.code),Stop.ModuleLoadandStop.ModuleUnloadhavemodule,Stop.Bugcheckhasbugcheck(the code and parameters;dbg.inspect.bugcheck()analyzes it), andStop.Reload(wasStop.Reboot) hasreload.match stop: case Stop.Breakpoint(breakpoint=hit):andisinstance()narrow, andstop.kindnames the class ("module_load"). A stop found at attach is the newStop.Entry, notStop.Interrupt.stop.hit(bp)replacesbp in stop.breakpoints; it compares the breakpoint’s serial, so a later breakpoint that reuses the id, or another debugger’s, is not the one hit.Breaking:
Exceptions.set(code, *, mode=None, command=None, disposition=None)sets an exception’s policy and returns itsExceptionPolicy, and the newset_module_event("ld" | "ud", module=None, *, mode=None, command=None)sets a module load or unload filter and returns itsModuleEventPolicy.set("ld")andset("ud:<module>")raiseValueError.Breaking: How a list walk ended is a
ListTermination(wasListEnd), with a subclass per kind:ListTermination.Cyclehas theaddresswhere the cycle closed,ListTermination.Corrupttheerror, and every kind adiagnostic, why the walk stopped before the list head. A list such asWdfQueueDetail.pendingstays alist, withpending_stoppedbeside it.Breaking: A stop’s
threadandprocessareThreadInfoandProcessInforecords, and itscpuis the processor number, so a stop is a snapshot that stays true: the collections take them as keys, as indbg.threads[stop.thread].backtrace()anddbg.cpus[stop.cpu].registers.when=callbacks receive the sameStop.Breaking:
dbg.run_to()anddbg.cont()are gone:run(address=...)runs to an address,step(until=address)andstep_over(until=address)single-step there, andrun(disposition="handled")resumes past an exception.step()andstep_over()taketimeoutfirst anduntil=by keyword.reboot()andcrash()wait for the stop and return it.Breaking: Results are records that behave as values, like frozen dataclasses: they compare with
==, hash, andmatchtheir fields (case ModuleInfo(name="nt")), and are no longer mappings. Read a field as an attribute instead ofrecord["field"], and useto_dict()instead ofkeys(),items(),len()or iterating. TheRecordclass is gone: name-keyed maps, such asvmcs_fields(),SavedVtl.general_registersandVpRegisters.registers, are plaindicts (general_registers["rcx"]).Breaking: Options are keyword-only: an SDK method takes what it is about (an address, a name, a record) by position, and its modes, flags and options by keyword, as in
exceptions.set("av", mode="break"),breakpoints.add(target, condition="..."),thread.backtrace(limit=8),inspect.vring(address, module="viostor"),vtl.read(address, size, physical=True)andmemory.read_unicode_string(address, bits=32). An address argument is namedaddresseverywhere (wasaddronMemoryandType.at()), andMemory.read()takessize(wasn).Breaking: A field or argument with a fixed set of values is typed as a
Literalof snake-case names, which the REPL still prints in its own words: for example"kernel_module"forAddressDescription.kind,"ntstatus"for an error code’s kind,"no_pdb"forModuleSymbols.status,"pde"for a page-table level, and"nonpaged"for a pool type.Breaking: Many SDK classes have new names, one per model concept, shared with the REPL’s records (
LoadedModuleisModuleInfo,ThreadSummaryisThreadInfo,MemoryRegionisMemoryRegionInfo, andMemoryRegionis now a user-mode minidump’s region, …), and some fields moved: paths no longer repeat their parent (thread.inspect().info.tid,heap.inspect().nt.header.index,dump.exception.info.code,report.power.record,region.info.base), andModuleInfo.baseand.timestampare the module’s base and timestamp. The SDK reference lists each class with its fields.Breaking: Collections behave alike. Each iterates as a typed
Iterator[...](theProcessIterator-style classes are gone), and[],get()andintake its key, its item’s record (dbg.threads[stop.thread],dump.threads[thread_info]) or, forin, the item itself (bp in dbg.breakpoints).get()’s parameter is namedkey, andat()’saddress.Regions.at(address)isRegions.get(address), andThreads.at(address)returnsNoneinstead of raising when no thread has that_ETHREAD.Breaking:
dbg.breakpoints.watch()returns aBreakpoint, whosewatch_accessandwatch_lengthreplaceWatchpoint.accessand.length;Breakpoint.addressisNonefor a breakpoint that has not resolved. A one-shot breakpoint that fired is no longer listed: its handle’svalidisFalseanddelete()does nothing, and a new breakpoint, from the REPL or the SDK, can take its address.Breaking: The SDK names a processor by its number everywhere:
Stop.cpu,ThreadDetail.cpu,ThreadStack.activeandFindStackThread.activeare the processor number (anint, orNone),VcpuInfohasnumberinstead ofid, andCpu.numberreplacesCpu.id.dbg.cpusis a plain sequence that takes anint.Cpu.info()(!cpuinfo) isCpu.cpuinfo(), andCpu.infois the processor’sVcpuInforecord, as on every handle.Breaking:
UserThread’s thread-info stream fields (start_address,create_time,exit_time,kernel_time,user_time,exit_status,affinity) are inUserThread.times, aUserThreadTimesorNone;UserThread.stackis aCapturedStack(start,size) instead of a tuple; and a user thread’s identity is itstid(theidtext is gone).Breaking:
Memory.describe(address)always returns anAddressDescriptionand is refused on a user-mode minidump, whose region report isUserDump.address_report().Inspect.global_flags()reads the flags, andset_global_flags(change)sets them.Breaking: The REPL refuses words a command does not take, with
<command>: unexpected argument '<word>', instead of ignoring them or printing the help:vertarget x,k 3 extraandln nt!KeBugCheckEx extranow fail.Breakpoint actions (
bp ... "do") and exception filter commands (sx -c) run at every stop that triggers them, whichever host resumed the target: the SDK’srun(),wait()and steps, the DAP adapter and the gdbserver run them too, not only REPL commands. In the SDK their output goes tosys.stdout. A breakpoint takeswhen=oraction=, not both (ValueError).An exception that a notify filter (
sxn) lets pass is reported as a notice on every host, in the REPL, the SDK’sdbg.notices(), MCP and DAP, and its-ccommand runs.Ctrl+C during the SDK’s
run()orwait()breaks in and leaves the target halted, as it does duringcommand("g"); it used to leave the target running..rebootand.crashwait for the target’s next stop and show it, and the SDK’sreboot()andcrash()return it. On a backend that cannot control the target, they say it needs target control support.The SDK checks a method as the REPL checks its command, with the same refusals: a run or step on a crash dump raises
the dmp backend cannot run or step the target, andhypercalls(),select_partition(),Driver.inspect()andDevice.inspect()need a kernel target.write_dump()shows.dump’s progress bar.On a crash dump or user-mode minidump, a command that writes memory or registers (
eb,ew,ed,eq,ef,ea,eza,!eb,!ed,!eq,f,r rax=1) and the SDK’sMemory.write*()are refused before they read their arguments, with<command> is not applicable to a static crash dump..pagein, which runs the target to page memory in, says the backend cannot run the target, and it is refused in a breakpoint action, an exception command, and from GDB and DAP clients.ib,iwandidneed a halted kernel target whose backend reads I/O ports, since reading a port can change the device: they are refused on a dump and while the target runs.!address -SUMMARYon a user-mode minidump,!chkimg -Dand the!ndiskd.nblswitches are recognized in upper case, as WinDbg takes them;!address -SUMMARYfailed withSymbol 'SUMMARY' not found. On a kernel target,!address -summarysays it needs a user-mode minidump, and its usage shows that a kernel target takes an address. An unknown switch, such as!chkimg /xor!gflag /x, says so instead of being taken as a module or an expression.A command line that does not parse reports why, then the command’s usage, so the usage in the error is the one
helpshows.!reg qand dx’s-v,-nvand, x, which were accepted, are in their usage.--plain-replscripts go on after a command fails, reporting the error, as the interactive REPL does; a failing command such as!dbgprint xused to end the script..thread .selects the current thread, and!threadwith a bad count says so instead of ignoring it.In the VTL1 view,
r reg=value,ob/ow/odand the SDK’sMemory.write*()are refused as read-only, and.sympath,.reloadand.fetchimagework. At a stop in VTL1, the SDK refuses what the REPL refuses: memory writes and the methods that read NT’s structures. In VTL1,gh,gn,pc,tc,pt,tt,ph,th,bpand thesxcommands are accepted (abpin VTL1 code is still refused),!hvris refused in the.vtl 1view, and a refusal names the command as typed.qexits sooner, by 0.2 s on a minidump of a process with many modules loaded.kand~*kon a minidump that lacks a module’s code ask the symbol server for the module’s image once per session, as for PDBs, instead of at every stack walk when the server does not have it or cannot be reached;.reloadasks again. Offline, ten~*kon an ARM64 minidump took 1.7 s and now take 0.3 s.ssearches about ten times faster: 256 MiB of a user-mode minidump’s address space in 45 ms instead of 420 ms.--plain-repl, the MCP server, the DAP adapter and the Python SDK start sooner: they build the symbol and type name indexes behind completion and symbol search when a search first needs them, not when the session starts. Opening a PowerShell minidump with--plain-repltakes 0.29 s instead of 0.39 s.Indexing a module’s symbols is faster, so a dump with many modules opens about a third sooner: a PowerShell minidump opens with
--plain-replin 0.22 s instead of 0.29 s, and a charmap minidump in 0.10 s instead of 0.15 s.The
ntoseyecommand and the Python package allocate memory with mimalloc, which makes opening a dump,k, and symbol searches about 15% faster. Indexing symbols takes more memory at its peak: about 1.3 GiB instead of 1.0 GiB for an ARM64 PowerShell minidump with 95 modules.A command’s usage line in
helpand the command reference comes from what the command accepts, so it lists what some lines left out, such as.process ... [eprocess|pid|0],!apc [.|*|thread|process]and the byte length ofc,m,f,sand.writemem. A command with several forms shows one usage line for each, as!alpc,!heapand.kdfilesdo.
Fixed¶
Over KD, ntoseye refuses, with the reason, what crashed Windows with bugcheck
0x7F(UNEXPECTED_KERNEL_MODE_TRAP): a single step or breakpoint in the code where Windows switches between kernel and user mode (ntoskrnl’sKVASCODEsection, such asnt!KiKernelSysretExit), and a breakpoint,ba e1included, in the code Windows runs to dispatch a debug trap before it reports the trap to the debugger (such asnt!KiDispatchExceptionandnt!RtlpValidateContextFlags2). A step that reaches the switch, such asptpast a system call’s return, stops before it with the same error, and awtor SDK walk whose thread an interrupt delayed into the dispatch code ends there instead of planting a breakpoint in it.Over KD,
wt,ptand the SDK’strace_calls()andstep(until=)keep to their thread when a step it took an interrupt before ends on another processor. They lost it there, ran on, and could trace past the function’s return, into the next system call or the switch to user mode.Over KD, a breakpoint that another processor hit just as ntoseye removed it no longer stops the target as an unexplained breakpoint exception: the processor goes on with the instruction, which a step or
wtthat was following a thread reported asthe target stopped on an exception while the traced thread was switched out.!pfn <value> -areads the physical address, as-aasks; a-aafter the value was ignored.The SDK’s
Memory.disassemble()returns the instructions that are readable when the rest of the window is not, and names their targets asudoes, instead of raising; a count outside 1-4096 raises fordisassemble()anddisassemble_back()alike.On a user-mode minidump,
Process.protection()reads the dump’s memory information instead of failing.Sid.well_knownnames a well-known SID in every SDK result,dbg.inspect.acl()included, without an option.The SDK’s
ndis_nbl(..., data=True)reports a NET_BUFFER it cannot read in itsdata_errorinstead of failing the whole read.Thread.decode_teb()reads the TEB of a thread whose process is unknown instead of failing withthread has no associated process.Cpu.pcr()and the other per-processor SDK methods refuse a processor number the target does not have, as!pcr 99does.Symbols.reload()reports breakpoints it could not resolve again in itsbreakpoint_errorinstead of raising.The SDK’s
run()and steps return a stop that the target reached while the script was not waiting, such as afterrun(timeout=...)returnedNone, instead of resuming past it, which skipped the breakpoint’s action andwhen=.A step over a call whose page is not resident, or whose code does not decode, says why on every host, not only in the REPL.
The SDK’s
breakpoints.add()refuses an address inside an instruction, asbpandbudo, instead of setting a breakpoint that corrupts it; where it cannot check, it puts the warning indbg.notices(), andunchecked=Trueskips the check, asbp /adoes. Its breakpoints andwatch()’s are named by their closest symbol inbl, as the REPL’s are, and in VTL1 a hardware one refusesprocess=andthread=, asba /pand/tdo.
Removed¶
Breaking:
Inspect.ndis_nbl_data():ndis_nbl(address, data=True)andndis_nbl_chain(address, data=True)return the frame bytes with the buffers.security_descriptor(annotate_well_known=...)andpool_usage(include_counts=...)are gone too: well-known SIDs are always named, and the usage always has its counts.The Python SDK no longer defines
HeapSummaryandHeapOverview. No SDK method returned them; they were left over from MCP’s removed JSON output.Heap.inspect()still returnsHeapDetail.
v0.49.1 (2026-10-14)¶
Fixed¶
With KDNET, a target resumed from a suspend that changed its UDP source port, as a NAT mapping can, keeps its session:
gand break-ins reach it instead of going to the old port.MCP HTTP clients can connect using any address in
127.0.0.0/8, such as127.0.0.2, instead of receiving HTTP 403; non-loopback and malformed Host authorities are rejected.In the DAP adapter, selecting a stack frame of a user-mode or kernel minidump no longer stops the Debug Console, watches, and hovers from resolving module names, symbols, and types, such as
? kernelbaseanddt ntdll!_TEB, until the session ends; on a user-mode minidump,!gle,!teb, and!pebsaid ntdll’s PDB was not loaded.With
--memory-source kd, as an ARM64 guest under UTM uses, memory that Windows has not touched lately reads as it is, instead of as??orBad virtual address: Windows clears a resident page’s access flag to age it and its debugger then refuses the page, so ntoseye reads the page through its page tables. On such a guest,!regcould not read any key, because the master hive’s base block was one of these pages.ufdisassembles a leaf function, which has no unwind data, such asnt!KeQueryActiveProcessorCounton ARM64: from its symbol, as far as its control flow reaches before the next symbol, instead of failing withno runtime-function entry contains.!pcron an ARM64 target leaves outCurrentPrcb,IDTR,GDTR, andTssBase, which an ARM64 KPCR does not have, instead of listing them as unavailable.The
__imp_import symbols an ARM64X image’s PDB records, such as mscoree.dll’s on ARM64 Windows, no longer name the first bytes of the image: their offsets reach past the end of the image, and they are skipped.On an ARM64 user-mode minidump,
kunwinds through JIT-compiled code, such as .NET’s, by the dump’s dynamic function tables, as on AMD64, instead of scanning the stack from the first JIT frame on.On ARM64,
kunwinds through a recursive call, a frame that returns to the same call site as the one before it, instead of stopping there and scanning the stack.
v0.49.0 (2026-10-11)¶
ntoseye now opens Windows user-mode minidumps, such as procdump and Windows Error Reporting write, and analyzes the exception in them. For drivers, it shows what a power hang is stuck on, a KMDF driver’s requests and I/O targets, NDIS filters and protocols, StorPort’s request log, and the registry as the hives in memory hold it; dx reads WinDbg’s data model with its queries.
Added¶
!ndiskd.filter,!ndiskd.filterdriver, and!ndiskd.protocollist the guest’s NDIS filter modules, filter drivers, and protocol drivers, and show one with its miniport, stack neighbors, and context, or its bindings.!ndiskd.oidshows every OID request a miniport or filter has not completed, and!ndiskd.nbldecodes a NET_BUFFER_LIST, its NET_BUFFERs, and with-datathe frame bytes, read through the MDLs. See network miniports.!storagekd.storloglistshows the last 256 events StorPort logged for an adapter: each request it built, started, and saw completed, with its IRP, SRB, and command, and pauses, resumes, timeouts, and resets;!storagekd.storlogirpand!storagekd.storlogsrbshow one request’s entries.!storagekd.storsrbdecodes an SRB, extended or legacy, with its command, status, address, and sense data, and!storagekd.storclasslists the disks and other class devices with the requests classpnp has in flight and the last errors it logged. See StorPort adapters.!rcdrkd.rcdrloglistand!rcdrkd.rcdrlogdumpread the WPP recorder’s in-flight logs of drivers such as usbxhci, pci, and your own, formatted from the TMF annotations in loaded PDBs. See the WPP recorder.dxreads the debugger data model:Debugger.Sessions,@$cursession,@$curprocess, and@$curthread, their processes, threads, modules, and handles (Io.Handles, with each object’s name and typedUnderlyingObject) indexed as in WinDbg, andKernelObject, which reads on as a typed expression, such asdx @$curprocess.KernelObject.UniqueProcessId. Collections take WinDbg’s queries with lambdas, such asdx @$cursession.Processes.Where(p => p.Name == "lsass.exe").Select(p => new { Name = p.Name, Id = p.Id }), withOrderBy,SelectMany,First,Any,Count, and string methods,Debugger.Utility.Collections.FromListEntrywalks a kernel list,dx -gshows a collection as a grid, and, dand, <count>set the format. See dx and queries.!apic [processor]shows a processor’s local APIC over KD, in xAPIC or x2APIC mode: its ID, priorities, LVT, timer, ICR, and the vectors in service and requested.!ioapicshows each I/O APIC and PIC line the HAL set up, with its vector, IRQL, trigger, polarity, and target, on every backend and in kernel dumps.!sysinfo machineidand!sysinfo smbiosread the machine’s SMBIOS table: the BIOS, system, and baseboard identity, and the processor and memory structures.!sysinfo cpuinfoshows the processor as!cpuinfodoes.The SDK returns what these commands show as typed records:
dbg.inspect.ndis_miniports()and the otherndis_*methods, withndis_nbl_data()for a NET_BUFFER_LIST’s frames asbytes;storport_adapters(),storport_unit(),storport_log(),srb(), andclass_devices();rcdr_drivers(),rcdr_logs(), andrcdr_log();interrupt_controllers()andsmbios(); andcpu.apic(). See NDIS, StorPort, and the WPP recorder from Python.The DAP adapter offers exception breakpoints: access violation, illegal instruction, divide by zero, and stack overflow break at the first chance when checked and the second when not, and module load and unload stop when checked. See breakpoints in DAP.
--srcpath <directory>maps a driver’s source tree from the start of the session, as.srcpath+does, and can be given more than once. See private PDBs and local source.!poactionshows the system power action in progress and every power IRP the power manager has allocated, with the driver each one is pending in and how long ago its watchdog was armed, and the threads that pass power IRPs to drivers.!podevshows a device object’s power state, its idle detection and power framework registration, and the power IRPs sent to its stack, and!popolicyshows the system power policy in effect. In the SDK,inspect.power_action()andinspect.device_power()return what!poactionand!podevshow. See power hangs.!wdfkd.wdfrequestshows a WDFREQUEST: its IRP with the current stack location’s function and buffer lengths, the queue it came from, whether it can be canceled and the driver’sEvtRequestCancel, and for a request the driver sent, the I/O target, completion routine, and context.!wdfkd.wdfiotargetshows a WDFIOTARGET: its state, whether it is the device’s default target or one the driver opened, the device object it sends to and that object’s driver, and the requests sent to it and not completed, each with its IRP.!wdfkd.wdfobjectshows any KMDF object, by handle orFxObjectaddress, with its contexts and children, for the types without a command of their own. In the SDK,inspect.wdf_request(),inspect.wdf_io_target(), andinspect.wdf_object()return them. See requests and I/O targets.!regreads the registry from the hives in kernel memory, on every backend and in crash dumps:!reg hivelistlists the loaded hives with where each is mounted and the file it came from, and!reg querykey(or!reg q) shows any key, such as!reg q HKLM\SYSTEM\CurrentControlSet\Services\Tcpip, with its last write time, its subkeys, and its values decoded by type, followingCurrentControlSetand the other symbolic links;-v <value>shows one value in full.!reg keyinfoshows a key by the address of its key node, and!reg cellindexshows where a cell is. A cell whose page is not in memory is named as such, and the rest of the key still shows. Tab completes key paths, and custom REPL commands complete them with theRegistryKeymarker. In the SDK,inspect.registry_hives(),inspect.registry_key(), andinspect.registry_value()return them, with each value’s data as astr,list[str],int, orbytes, andinspect.registry_key_at()andinspect.registry_cell()return whatkeyinfoandcellindexshow. See the registry.--dumpopens Windows user-mode minidumps, such as procdump, Task Manager, and Windows Error Reporting write, for AMD64 and ARM64 processes.lmlists the modules and loads their PDBs from the dump’s module records even when their code was not captured,~lists the threads with their names and~Nsswitches to one,.ecxrand.exr -1show the exception, andkunwinds through the modules, fetching an image from the symbol server when its unwind data is not in the dump, and through JIT-compiled code such as .NET’s by the dump’s dynamic function tables.!analyzereports the exception: its code, flags, and parameters, the faulting stack and module, a failure signature, and the culprit.!teb,!peb,!gle, and!dllsread the selected thread’s TEB and the PEB,!handlelists the handles the dump recorded with their types, names, and access,!addressand!vprotshow the address space’s regions and what each holds,!heapwalks the heaps, and.timeandvertargetshow when the dump was written, the process’s times, and the system it ran on. Memory commands,dt,x,ln, anddxread the captured memory and say when an address was not captured, and$teband$pebpoint to the selected thread’s TEB and the PEB. Commands that need a kernel say so, andhelpleaves them out. In the SDK,dbg.user_dumpholds the process, its threads by thread ID, the exception, the handles, and the regions, andinspect.triage()returns the exception report. The MCP server’sopenand its trailer describe the dump’s threads, and in DAP the threads are the dump’s, the session stops at the exception, and run control and writes are refused. Linux minidumps from Breakpad and Crashpad are refused. See user-mode minidumps.
Changed¶
!wdfkd.wdfdevicelists the device’s I/O targets with their WDFIOTARGET handles and marks the default one, and!wdfkd.wdfhandlenames the command that shows the object in full, such as!wdfkd.wdfrequest <handle>. The SDK’sinspect.wdf_device()returns the targets asio_targets.!analyzenames what a DRIVER_POWER_STATE_FAILURE (0x9F) is stuck on: for subtype 0x3, the blocked power IRP and the driver it is pending in, which becomes the culprit and the failure signature, the device stack of the PDO, and the power IRP worker threads with their stacks; for 0x4, the thread holding the PnP lock and its stack; for 0x1, 0x2, and 0x500, the driver of the device or driver object in the parameters.!analyze -show 9f <p1> <p2> <p3> <p4>reads what the parameters point to in the target, and the SDK’sinspect.triage()returns the findings aspower. See power hangs.!storagekd.storunitnames the command of each request the miniport holds, such asWRITE(10) LBA 0x64b500, 8 blocks.The SDK’s
trace_calls()takestimeout=: a trace that waits on its thread while other threads keep reaching its next instruction first then ends asinterrupted, halted where it got to, rather than running on with no end. See steps.!processtakes an image name in place of the process:!process explorer.exeshows explorer.exe, and!process svchost 0lists each svchost.exe, as.process explorer.exealready took one. A selector that names no process now says so, rather thanno matching process. See !process.In the SDK, a triage report’s
Culprithas akind, and itsmoduleisNonewhen the culprit is generated code that no module holds, which only a user-mode minidump reports. A kernel culprit still names its module.
Fixed¶
Over KD,
rdmsrandwrmsrread and write the processor selected with/por~Ns, and the SDK’scpu.msrits own processor, instead of the one that reported the stop.!handlereads a process’s handle table in a kernel dump that lacks the process’s own page directories, such as lsass.exe’s under VBS, instead of failing withBad virtual address: the table is kernel memory, read through the kernel’s.Ctrl+C stops
!process 0 7and the other thread listings of!processat the next thread, withinterrupted after N thread(s), instead of walking every thread’s stack first.Tab completion offers the symbols and types of a PDB that loaded after the session started, such as a driver’s whose symbols load when first needed or a download that finished, instead of only after
.reloador a switch of process.kunwinds through a recursive call, a frame that returns to the same address as the one before it with the stack pointer further up, instead of stopping there and falling back to a stack scan.
Removed¶
Breaking:
browseand its F2 key in Tern are gone. Tern draws what commands print, and adds no features of its own: useu,db/dq,dt,k, andrat the prompt, or the disassembly and memory views of an editor over the DAP adapter.
v0.48.0 (2026-10-08)¶
ntoseye can now show where a driver’s I/O is stuck, in its virtio queues, StorPort adapters or NDIS miniports, and gets more out of a crash dump: the blackboxes, the KMDF log and the ETW sessions that Windows saves in it, and dx as WinDbg lays it out. In Tern, the browser now steps the target and reads memory as types.
Added¶
!virtiolists the guest’s virtio devices and, with a virtio-win driver’s private PDB, each queue’s state: what the device holds, what the driver has not taken back, and what moved since the last look, naming a queue that is stuck.!vringshows a queue’s buffers and decodes each block, SCSI, network or GPU request with the device’s answer. In the SDK,inspect.virtio()andinspect.vring()return the same as records. See virtio devices.!storagekd.storadapterand!storagekd.storunitshow StorPort adapters and units, such as viostor’s, vioscsi’s and storahci’s: their state, whether a unit’s queue is frozen, paused or busy, and each request the miniport holds with its IRP and SRB. See StorPort adapters.!ndiskd.miniports,!ndiskd.miniportand!ndiskd.minidrivershow the guest’s network miniports, such as NetKVM: their driver, state and link, the adapter context todtwith the driver’s PDB, the filter stack and bindings, and the OID request not yet completed. See network miniports.Guest debug output (
DbgPrint) with thegdbandmemorybackends, as over KD: the REPL prints it while the target runs, MCP results carry it as[dbgprint], and DAP shows it in its console.!dbgprintshows the kernel’s whole buffer on every backend and in crash dumps, including output from before ntoseye attached. See debug output..enumtaglists the tagged data that bugcheck callbacks add to a crash dump, as WinDbg does, and!blackboxbsd,!blackboxntfs,!blackboxpnp,!blackboxwinlogonand!blackboxpcidecode Windows’ blackboxes in it.!wdfkd.wdfcrashdumpshows the In-Flight Recorder log that KMDF saves of one driver, the only copy in a minidump, and withloaderthe KMDF drivers.!analyzesums up each blackbox in a line and names the driver whose KMDF log the dump holds. In the SDK,version().dump.tagged_blockslists the blocks andinspect.read_tagged()reads one, so a script can decode a driver’s own crash data, andinspect.wdf_crash_log()andinspect.wdf_crash_drivers()return KMDF’s. See tagged data and blackboxes and KMDF drivers in a crash dump.In a minidump, the
!wmitracecommands read the ETW sessions that Windows saves in it, such as EventLog-System and WiFiSession, and decode their events as they do from memory. WinDbg’s!wmitracelists only the first of them in a minidump and cannot read their buffers. In the SDK,inspect.etw_crash_sessions()andinspect.etw_crash_events()return them from any crash dump. See ETW sessions in a minidump.dxshows a typed expression’s value and its fields as WinDbg’sdxlays them out, such asdx -r1 (*((nt!_IO_STACK_LOCATION *)0xffff...))ordx @$proc->UniqueProcessId: WinDbg’s type names (unsigned long,_DEVICE_OBJECT *), the fields in declaration order with each bitfield’s bits, and after a pointer the number, string or function it points to. A cast takes C type names such as(unsigned long *). The debugger data model (@$curprocess,Debugger.*) and NatVis views are not supported. See dx.In Tern, the browser (
browse, F2) steps and runs the target with WinDbg’s keys (F10, F11, Shift+F11, F5, and F7 to run to the cursor; Esc breaks in), with the registers and the stack beside the code: what each run changed is tinted, and[and]show a caller’s frame with the registers recovered for it. With a module’s private PDB, each source line is above the instructions compiled from it, as in WinDbg’s mixed mode. See the browser.In Tern, the browser reads memory as a type:
tshowsnt!_EPROCESS, or any type in a loaded PDB, indt’s columns, with nested structures opening in place, Enter following a pointer as its type, and a list link to the next record, soActiveProcessLinkswalks the process list one Enter at a time.ewrites what is under the cursor, an instruction’s bytes, a byte, a pointer or a field, down to a single bit of a flags word.The MCP server pages results over about 24,000 characters, such as
x nt!*, and the newoutputtool reads the rest or searches it without running the command again. See long results.--sympath-append <directory>adds local PDBs, such as a driver’s build output, to the symbol path from the start, as plain files or in symbol-store layout.
Changed¶
Breaking: In the SDK,
Debugger.notices()returnsNoticerecords with alevel("info"or"warning") and thetext, instead of strings.Breaking: In the SDK, a
BlackboxStreamof the triage report has asummaryof what it holds, itsreasonisNonewhen it decodes, andpresentis a plainbool;availableandparsed, which were alwaysFalse, are gone (a record decodes whensummaryis set).Breaking: A field that a PDB declares
intorunsigned inthas the typeINTorUINT, instead ofLONGorULONG, in the SDK’s types,dtand the DAP variables.Notices say what they are: status lines, such as a background symbol fetch finishing, print as
note:, and only something that went wrong, such as a breakpoint that failed to re-arm, aswarning:, in the REPL, over MCP and on the gdbserver console. DAP shows warnings as important output.A command that fails ends its line, as in WinDbg, and names the commands that did not run, so
bp ...; gno longer resumes the guest after a failed breakpoint.Over MCP, and in the SDK with a time limit, a command that needs a halted target fails at once while the target runs with nothing set to stop it (no breakpoint or
sxe ld), and a plaingthen resumes without waiting out the time limit.The MCP server marks a result as an error (
isError) when any command on its line reported one.The MCP server draws stops compactly: a step on the same thread shows the changed registers and the next instructions, about 100 tokens instead of 350. See how stops look.
$proc,$thread,$kthread,$teband$pebare typed pointers (nt!_EPROCESS *and so on), as in WinDbg’s C++ expressions, so? @$proc->UniqueProcessIdreads the field, and?shows them with their type.!irpshows every stack location, as WinDbg does: each driver’s major and minor function, device and file, the completion routine with when it runs and whether the driver returned pending, and its arguments, the current location marked.!irp <address> 1adds the IRP’s status, requestor mode and user buffers. In the SDK,Irp.stacklists the locations, which gainflags,control,argumentsandminor_function_name.
Fixed¶
Detaching from KD no longer leaves the guest hanging, for more than a minute, at its next driver load or debug print, waiting for a debugger it believed was still attached. This covers quitting the REPL as well as closing an MCP, SDK or DAP session, and a detach with breakpoints set or the target halted.
With the
gdbbackend, a breakpoint hit that ntoseye passes over itself (another process’s under/p, a pass count, a false condition) no longer leaves the guest frozen between MCP, SDK or DAP calls while the status says it runs.bp,buandg <address>refuse an address inside an instruction, which corrupted it and could crash the guest, and name that instruction; where ntoseye cannot tell, they warn, and/askips the check. See where a code breakpoint can go.bp <file>:<line>sets a source breakpoint, asbudoes, instead of failing.ba /p <pid> e1 user32!PeekMessageWresolves the symbol in that process, asbp /pdoes, without.process /pfirst.breakon a halted target only says so, sobreak; bp ...; gworks in either state.r rcx, rdx, r8shows those registers on one line, as in WinDbg, instead of its usage.An address in a module without loaded symbols reads
module+offset, as in WinDbg, inln,callbacks,!drvobj, work items and MSR values.!processshows the handle count, times, pool quota and working set on recent Windows 11 builds such as 26200, instead of-.Messages name a command as you typed it. Over MCP and the SDK, an unknown command points to
help,??points todxand?, and a notice raised by several background symbol fetches shows once.The MCP
commandtool no longer advertises aformat=jsonargument it does not take, and the tools carry MCP annotations (read-only, destructive, idempotent) for clients’ permission prompts.--pdb-servergiven both before and after a subcommand uses every server, not only those after it..reload /fand.reload /vwork, as in WinDbg, instead of looking for a module named/f./nreloads only the kernel’s modules and/useronly the selected process’s, and the module can be a pattern such asvio*.Opening a minidump loads its drivers’ symbols, as opening a kernel dump does, so
x,dtand the!wdfkdcommands find a driver’s symbols without.reloadfirst.In Tern, a completion list of more than 100 entries, such as Tab on an empty prompt, ends in a row that says how many more there are and opens the palette on Enter, instead of stopping at
!timeras if that were all.In the browser’s go-to field, typing a number, or past the end of a name such as the
)ofpoi(nt!PsInitialSystemProcess), no longer opens a list of symbols that Enter would take instead.WPP messages in
!wdfkd.wdflogdumpand!wmitrace.logdumpshow list values and status codes as WinDbg does:0x00000002(DPC)instead ofDPC,STATUS_SUCCESSinstead of0x0(STATUS_SUCCESS), an unknown status asNTSTATUS=C0DE0001, and an HRESULT by name, such asS_OKor the Win32 error it wraps.!chkimg ntno longer reports 2 mismatched bytes innt!KiSystemStartupon recent Windows 11 builds such as 26200, where the kernel points aleaat the CFG dispatch routine for the CPU at boot. A change that points it anywhere else is still reported.
v0.47.0 (2026-10-07)¶
ntoseye now draws its REPL natively in Tern, Stencil’s terminal (experimental).
Added¶
In Tern, Stencil’s terminal, the REPL draws its results natively (experimental): a stop is a card that names why it stopped in a chip and holds the thread, the registers folded, the code at the stop and the stack, and a bugcheck and
!analyzeare red cards;.trapis a card with its registers and the kind of entry that built it;k,lm,!process,ps,bl,~,x,!vad,vmmap,!pte,varsand the memory dumps (db,dd,dq,dqs, …) are tables;.help <command>is a card;dt,wtand!hvpartitionsare trees that fold;r,uandufuse Tern’s colors;ls,lsaand a stop at a source line show the source highlighted with its line marked; and a timer shows how longghas run, and long tasks such as downloading and indexing symbols and.dumpshow a progress bar. The prompt is Tern’s own input field: Tab’s completions narrow in a popup as you type, the line is colored as it is typed, Ctrl+Z undoes, and a paste becomes one line of commands. Alt+P opens a palette that searches the commands and recent lines, the symbols, the types and the processes, Ctrl+R opens it on the earlier lines, and it puts the choice in the prompt. Other terminals, captured output and.logopentranscripts keep the text,TERN_TSP=0turns it off, and a Tern too old to draw the views gets text with a warning saying so (details).After a stop on the same thread as the one before, the stop display marks the registers that changed since: yellow in the register grid, and in Tern the folded registers name them (
registers rsp rip changed) and show their values in amber.display <expression>shows the expression’s value at the end of every stop, marked when it changed since the last stop, as gdb’sdisplaydoes;displayalone lists the displays andundisplayremoves them. In Tern they are a table in the stop card.In Tern (experimental),
browseor F2 at the prompt opens a full-screen code and memory browser. It pages through disassembly, and through memory as a hex view with a byte cursor, bytes colored by kind and an inspector beside it of the values at the cursor, or as pointers with their symbols. Enter follows branches,[rip+…]operands and pointers and Backspace goes back,ggoes to an expression with completions,/finds text, bytes or a pointer, andbsets or clears breakpoints in code, only where decoding from the function’s start confirms an instruction begins, and write watchpoints in memory.
Fixed¶
When its terminal goes away (a closed pane or a dropped ssh session), the REPL now removes its breakpoints, leaves the guest running and exits, as
qdoes. It used to spin a CPU core at its prompt and keep the guest halted under the debugger until it was killed.
v0.46.0 (2026-10-05)¶
ntoseye can now debug inside a Windows Sandbox or Hyper-V VM on Intel hosts, not only read it: break on the guest’s code and data, step its threads, and change its memory and registers.
Added¶
Breakpoints and steps in a Windows Sandbox or Hyper-V VM (experimental, gdb backend):
bain a.partitionview sets a hardware breakpoint or data watch that stops only on that guest’s VPs,/cin the view names one of them, and its/p,/tand condition read that guest.gfrom the view runs the target, and the hit shows the guest’s view on the VP that hit it.t,pandguthere step the guest’s thread, andg <address>runs to an address in the guest.eb,edand the other writes there change the guest’s memory, andrchanges the registers of a VP that a vCPU runs at the stop, such as one that hit a breakpoint. In the SDK,breakpoints.add(..., hardware=True),step(),step_over(),step_out()andrun_to()afterselect_partition()do the same, andBreakpoint.partitionnames the guest. See https://ntoseye.com/vbs/guest-partitions/#breakpoints-in-a-guest-partition.lm a <address>shows only the module that contains an address, and finds a kernel module for a kernel address even while a process is selected, as in WinDbg.
Fixed¶
!dlls,lm,!vadand the SDK’sProcess.modulesname a user-mode module whose loader entry’s name is paged out, instead of showing<unknown>: the name comes from the file that the image’s VAD maps. On a desktop guest, this was about 8% of the user-mode modules.
v0.45.0 (2026-10-03)¶
ntoseye can now debug the Windows hypervisor itself on Intel hosts. It can walk hypervisor partitions and virtual processors, inspect and disassemble guest memory, including WSL2, decode hypercalls and break on them based on the caller, and unwind hypervisor stacks. Kernel module unloads can now stop the debugger too, just like module loads.
Added¶
sxe/sxn/sxd/sxiud[:<module>]stop on, report, or ignore kernel module unloads the wayldhandles loads, with-cto run commands at the stop; the stop comes after the driver’s unload routine, while the module is still listed with its symbols. The SDK hasExceptions.module_eventsandStop.ModuleUnload; DAP reports the stop reasonmodule unload.~accepts the vCPU id it lists in place of a processor number (~p01.03s,~p01.03k,~p01.03r), ignoring case.Registers.get(name, default=None)returns a register’s value, ordefaultwhen the register file (for example an unwound frame) does not hold it.DisassembledInstructionhaslength,mnemonicandoperands; eachOperanddescribes a register, memory, immediate or branch operand, so scripts no longer need to parseasm.!hvpartitionsshows the Windows hypervisor’s partitions as a tree with their privileges and each VP’s processor, VTL, where it left off and its last exit;!hvvpslists a partition’s VPs and the processors that run them.~, the stop line and the MCP trailer (runs partition 0x4 VP 2) name a vCPU that runs a guest partition (Hyper-V VM, WSL2, Sandbox) aspartition 0x4 VP 2; the SDK’s run status has it asrunning_vp. The SDK hasdbg.hypervisor_partitions()andVirtualProcessor.processors. Hypervisor commands need the memory or gdb backend, or kd/kdnet with host memory, and say so otherwise.!hvept <gpa>(or-v <address>for a root virtual address) walks each VTL’s extended page tables and shows the host address, access, page size and memory type;!hveptdifflists the guest physical ranges VTL0 and VTL1 map differently. The SDK hasHypervisorVtl.translate()andVirtualProcessor.ept_differences().!hvvmcs [-msr|-io]shows every field of a VTL’s Enlightened VMCS, the MSRs it intercepts or passes (named, e.g.IA32_EFER), and its intercepted I/O ports. The SDK hasHypervisorVtl.vmcs_fields(),msr_intercepts()andio_intercepts().!hvdreads and!hvudisassembles a guest partition’s memory, virtual (4-level long-mode guests) or with-pphysical. Like!hvept,!hveptdiffand!hvvmcs, they default to the VP the current processor runs. The SDK hasHypervisorVtl.read(),translate_virtual()anddisassemble().!hvcallslists the hypervisor’s hypercall table with TLFS names, rep/variable-header flags, input/output sizes and handlers (-aincludes unimplemented codes);hv!now has names for the hypercall handlers andhv!VmExitEntry, usable ink,u,ln,xand expressions. The SDK hasdbg.hypercalls().A saved VTL state shows the VM exit’s qualification, interruption info and instruction length, and the guest’s general-purpose registers recovered from the hypervisor’s exit entry code, which
r, expressions and stacks use. A state that may describe the previous exit is marked “(may be one exit behind)” and is not selected automatically; a hardware breakpoint onhv!VmExitEntrystops with a current state. The SDK hasSavedVtlState.general_registersandmay_be_stale.At a hypervisor stop, the stop header,
~and.vtlcxrname the guest VP the processor serves and decode the hypercall being handled (code, TLFS name, flags);!hvcallshows its full input, including XMM fast calls, rep lists and extended GVA flush ranges with their addresses, page counts and page sizes. The hypercall page shows as modulehvcall(hvcall!Hypercall,hvcall!VtlReturn64). MCP, DAP thread names and the SDK (Cpu.serving,SavedVtlState.hypercall) show the same.!hvbp <call> [partition [vp]]stops on a hypercall only from the given caller; its condition is evaluated on the caller’s registers and reads the caller’s memory, so$pqwo(rdx)tests a slow call’s input. The SDK hasBreakpoints.add_hypercall(),Breakpoint.hypercall, andCpu.hypercall_caller(), which gives awhen=callback the caller’s registers, decoded call and memory.!hvexit <reason> [partition [vp]]stops on a VM exit by its reason (cpuid,rdmsr,wrmsr,ept_violation, or the number), only from the given caller; its condition sees the caller’s registers at the exit, so!hvexit wrmsr if @rcx==0x6e0stops on writes ofIA32_TSC_DEADLINE. The guest runs far slower while it is set, as every exit is checked, so a guest partition’s VPs barely run and a filter on one rarely stops;!hvbpstops on their hypercalls. The SDK hasBreakpoints.add_exit()andBreakpoint.vm_exit.!hvr [partition vp [vtl]]shows the registers of any hypervisor VP, such as a WSL2 VP blocked inHLTthat no processor runs: those of the vCPU that runs it, of the exit a vCPU handles for it, or that it saved at its last exit. The SDK hasVirtualProcessor.registers()..partition <id>inspects the Windows guest of a hypervisor partition, such as a Windows Sandbox, in place of the target, read-only:lm,!process,dt,uandkread its kernel with its symbols, and its VPs are the threads..partition 1returns to the target, and a partition that runs no Windows kernel, such as WSL2’s, is refused with that reason. The SDK hasDebugger.select_partition()andDebugger.partition; MCP’s trailer says which partition is inspected.Hypervisor stacks unwind from the hypervisor’s own unwind data when a copy of the running
hvix64.exeis in the symbol cache or a local store (.fetchimage /f <file>,Symbols.import_image()add one), and otherwise from function prologs, marked[prolog]. The few functions whose unwind data leaves out their stack allocation, such as the external-interrupt exit handler from build 22621 on, unwind from their prologs too. The SDK’sCpu.backtrace()walks a processor’s own stack, the hypervisor’s when it is halted there, and withvtl=from where a VTL left off as the hypervisor saved it..vtlcxr 1selects the state the hypervisor saved for VTL1, sok,r,uand expressions inspect the secure kernel where it left off (read-only);.vtlcxrreturns to VTL0.In DAP, a vCPU halted in the hypervisor shows the hypervisor’s own frames first, then a label frame, then the saved VTL state’s frames.
Changed¶
Breaking:
Exceptions.module_loadsis replaced byExceptions.module_events, which lists the unload filters (sx* ud) along with the load filters.Breaking: MCP’s
commandtool no longer takesformat, and rejects a call that passes it: it returns the REPL’s text with its[target ...]trailer. For typed results, use the Python SDK.The hypervisor image is named
hvas in WinDbg (hv+0x…instead ofhvix64+0x…), and expressions accepthvin the hypervisor’s context.On the gdb backend, software breakpoints in user space are refused (use
ba e1); single steps into user space use debug-register sites, while a run to a user-space address (pover a call,gu) ends with an error. Previously strayint3s could be left in shared user code.Software breakpoints in the Windows hypervisor’s code are refused with a pointer to
ba e1, instead of left pending forever; NT breakpoints can still be set from the hypervisor’s context.On the gdb backend, a breakpoint whose condition or filter declines many hits a second slows the target much less: a declined hit no longer rewrites the site journal on disk.
On the gdb backend under VBS, single steps (
t,step(), and the walks built on them, such aswtandtrace_calls) are about 15% faster and use less host CPU: replies from the stub are read buffered, and a step no longer selects its vCPU again after the vCPU’s own stop.uwithout an address works as in WinDbg: it starts at the instruction pointer, and continues after the previousuuntil the target runs or another frame, thread, or process is selected.!peb,!teb,!gleand!dllsno longer need.process: without one they decode the current thread’s process, as in WinDbg.
Fixed¶
tafter~Nson kd/kdnet steps processor N instead of leaving it unmoved, and breakpoints on the stopped processor keep hitting afterwards; on ARM64 targets, stepping another processor is refused instead of hanging.Ctrl+C, a DAP
pause/disconnect, or a server termination signal now break in on a step that never stops, instead of the session hanging until the transport times out; walks (ta,pa,wt,step(until=)) end on the first Ctrl+C.A walk (
step(until=),step_over(until=),run_to(step=)) that itstimeout=or Ctrl+C cuts short now returns aStop.Interrupt, asrun_to()andstep_out()do, instead of aStop.Step. AStop.Stephad seemed to say the walk ended on an instruction in NT even when it was broken into in the Windows hypervisor, where the next step was refused.Ctrl+C in the REPL now stops the target when a breakpoint whose hits are declined (condition,
/tfilter, other process) fires constantly.REPL errors from
g,t,r,~and.threadshow their message instead of an internal form such asDebugInfo("…"), andbporbaon a backend that cannot set them names the backend instead of “the current backend does not support this”.In DAP, a Debug Console command after one that moved the context (
.thread,.cxr,!thread) runs instead of failing with “stale frame id” until the client walks the stack again.Code that profile-guided optimization split off from its function, far from every symbol, is named after that function through its chained unwind data (
nt!IopXxxControlFile+0x22bddf) in stacks, disassembly,lnand the SDK’ssymbols.nearest(), instead ofnt+0xb1552for “no symbol found”.wt,p,guand the SDK’sstep_over/step_outno longer follow the wrong thread, wait forever for a thread that exited, or crawl under load on code every thread runs; a walk whose thread exits ends with an error.A gdbserver step or continue that cannot start now reports SIGINT, so gdb’s
next/stepno longer loop.On the gdb backend, a
bponnt!DbgLoadImageSymbols(or the unload functions) now stops when nosxfilter surfaces the event.On the gdb backend, the data address QEMU sends with a vCPU’s next stop when that vCPU’s watchpoint hit lost the race to another vCPU’s stop no longer misclassifies the stop: a stop on an execute breakpoint is no longer mistaken for a plain stop, and a stop on a breakpoint is no longer reported as a data watchpoint’s hit.
On the gdb backend under VBS, a step or a resume from a breakpoint no longer gives up with “letting every vCPU run for 1s did not free it” when it should not. The debugger’s own work between the vCPUs’ runs counted against that second, and the first time a session finds a vCPU in the Windows hypervisor that work takes over half a second. And a vCPU waiting in an interrupt handler failed the step whenever the last run caught the handler in a call into the hypervisor, such as a spin loop’s long-wait notification; the step now ends in the handler, as it does when the last run finds the handler in NT.
On the gdb backend under VBS, a data watchpoint’s hit that another vCPU makes while a step or a resume from a breakpoint lets the other vCPUs run is no longer lost: a step ends on it (
step()returns that stop), and a resume reports it as its stop.On the gdb backend under VBS, a step or a resume from a breakpoint that waits on the other vCPUs no longer lets them run only a few milliseconds at a time when one of them is stopped on a breakpoint: that vCPU ended every run at once, and is now held for every other run.
On the gdb backend under VBS, a step no longer ends in a guest partition’s code (WSL2, a Hyper-V VM) when the Windows hypervisor runs that partition’s VP on the stepped vCPU’s processor while NT waits there, after which the next step failed with “Bad virtual address”. The step waits for NT to run there again, and a step of a vCPU that runs a guest partition’s VP is refused, naming the VP.
Breakpoint.delete()no longer raises for a breakpoint that is already gone (such as a fired one-shot), and a stale handle no longer deletes a newer breakpoint that reuses its id..threadon a thread whose vCPU is in the hypervisor selects where NT left off instead of the hypervisor’s registers..vtl 0after.vtl 1at a hypervisor stop returns to the stop’s view instead of the hypervisor’s registers.VTL1’s saved state is listed even before the secure kernel was looked up.
A saved VTL state is no longer reported as current after the processor has switched to another VTL or VP.
kat a hypervisor stop no longer repeats addresses or lists NT addresses as hypervisor frames; scan frames are always marked[scan].