1 write to Value
Microsoft.Diagnostics.DataContractReader.Abstractions (1)
TargetPointer.cs (1)
15public TargetPointer(ulong value) => Value = value;
199 references to Value
Microsoft.Diagnostics.DataContractReader (7)
ContractDescriptorTarget.cs (7)
184subDescriptorAddress.Value, 272NumericValue = descriptor.PointerData[global.NumericValue.Value].Value, 383if (dataTargetDelegates.ReadFromTarget(descriptorAddr.Value, descriptorBuffer) < 0) 394if (!TryReadPointer(pointerDataAddr.Value + (uint)(i * pointerSize), config, dataTargetDelegates, out pointerData[i])) 489Write<ulong>(address, value.Value); 491Write<uint>(address, checked((uint)value.Value)); 753=> IsAligned(pointer.Value, _config.PointerSize);
Microsoft.Diagnostics.DataContractReader.Abstractions (9)
TargetPointer.cs (9)
17public static implicit operator ulong(TargetPointer p) => p.Value; 20public static bool operator ==(TargetPointer left, TargetPointer right) => left.Value == right.Value; 21public static bool operator !=(TargetPointer left, TargetPointer right) => left.Value != right.Value; 26public bool Equals(TargetPointer other) => Value == other.Value; 28public override int GetHashCode() => Value.GetHashCode(); 30public override string ToString() => $"0x{Value:x}";
Microsoft.Diagnostics.DataContractReader.Contracts (128)
CodePointerUtils.cs (2)
25return new TargetCodePointer(address.Value | Arm32ThumbBit); 32return new TargetCodePointer(address.Value);
Contracts\CodeNotifications_1.cs (4)
113if (module != TargetPointer.Null && entry.ClrModule.Value != module.Value) 188if (entry.ClrModule.Value != module.Value) 240_target.WriteBuffer(tablePointer.Value, zeros); 242_target.WritePointer(globalAddr.Value, tablePointer);
Contracts\Debugger_1.cs (7)
47return (int)_target.Read<uint>(addr.Value); 53uint currentFlags = _target.Read<uint>(addr.Value); 54_target.Write<uint>(addr.Value, currentFlags | (uint)DebuggerControlFlag_1.PendingAttach); 60uint currentFlags = _target.Read<uint>(addr.Value); 63_target.Write<uint>(addr.Value, currentFlags | (uint)DebuggerControlFlag_1.Attached); 67_target.Write<uint>(addr.Value, currentFlags & ~((uint)DebuggerControlFlag_1.Attached | (uint)DebuggerControlFlag_1.PendingAttach)); 75return _target.Read<byte>(addr.Value.Value) != 0;
Contracts\ExecutionManager\ExecutionManagerCore.cs (9)
146return codeHeaderIndirect.Value <= stubCodeBlockLast; 253TargetPointer runtimeFunctionPtr = jitManager?.GetUnwindInfo(range, codeInfoHandle.Address.Value) ?? TargetPointer.Null; 278jitManager?.GetMethodRegionInfo(range, codeInfoHandle.Address.Value, out hotSize, out coldStart, out coldSize); 323if (((IExecutionManager)this).GetCodeKind(new TargetCodePointer(startAddress.Value)) == CodeKind.Interpreter) 360return jitManager?.GetUnwindInfo(range, codeInfoHandle.Address.Value) ?? TargetPointer.Null; 380return jitManager?.GetDebugInfo(range, codeInfoHandle.Address.Value, out hasFlagByte) ?? TargetPointer.Null; 393jitManager?.GetGCInfo(range, codeInfoHandle.Address.Value, out gcInfo, out gcVersion); 464RangeSection range = RangeSection.Find(_target, _topRangeSectionMap, _rangeSectionMapLookup, codeInfoHandle.Address.Value); 543isCatchAllHandler = typeHandle.Value.Value == objectMethodTable.Value;
Contracts\ExecutionManager\ExecutionManagerCore.EEJitManager.cs (6)
36Debug.Assert(codeStart.Value <= jittedCodeAddress.Value); 37TargetNUInt relativeOffset = new TargetNUInt(jittedCodeAddress.Value - codeStart.Value); 73Debug.Assert(codeStart.Value <= jittedCodeAddress.Value); 104Debug.Assert(codeStart.Value <= jittedCodeAddress.Value); 139Debug.Assert(codeStart.Value <= jittedCodeAddress.Value); 192return GetStubKind((StubKind)codeHeaderAddress.Value);
Contracts\ExecutionManager\ExecutionManagerCore.InterpreterJitManager.cs (3)
35Debug.Assert(codeStart.Value <= jittedCodeAddress.Value); 36TargetNUInt relativeOffset = new TargetNUInt(jittedCodeAddress.Value - codeStart.Value); 41info = new CodeBlock(codeStart.Value, realCodeHeader.MethodDesc, relativeOffset, rangeSection.Data.JitManager);
Contracts\ExecutionManager\ExecutionManagerCore.ReadyToRunJitManager.cs (2)
51new TargetCodePointer(imageBase.Value + function.BeginAddress), Target); 60new TargetCodePointer(imageBase.Value + coldFunction.BeginAddress), Target);
Contracts\ExecutionManager\Helpers\NibbleMapConstantLookup.cs (1)
61TargetNUInt relativeAddress = new TargetNUInt(currentPC.Value - mapBase.Value);
Contracts\ExecutionManager\Helpers\NibbleMapHelpers.cs (2)
135TargetNUInt relativeAddress = new TargetNUInt(currentPC.Value - mapBase.Value);
Contracts\ExecutionManager\Helpers\NibbleMapLinearLookup.cs (1)
69TargetNUInt relativeAddress = new TargetNUInt(currentPC.Value - mapBase.Value);
Contracts\Notifications_1.cs (4)
47notification = (NotificationType_1)(uint)exceptionInformation[0].Value switch 54NotificationType_1.ExceptionCatcherEnter => new ExceptionCatcherEnterNotificationData(exceptionInformation[1], (uint)exceptionInformation[2].Value), 63GcEventType eventType = (GcEventType)(uint)exceptionInformation[1].Value; 64GcEventData eventData = new(eventType, (int)(uint)exceptionInformation[2].Value);
Contracts\Object_1.cs (1)
36return mt.Value & (ulong)~_objectToMethodTableUnmask;
Contracts\PrecodeStubs_3.cs (1)
98byte targetBytePattern = target.Read<byte>(new TargetPointer((instrAddress.Value + (ulong)i)));
Contracts\PrecodeStubs_Common.cs (2)
182ulong pageBase = instrPointer.Value & ~pageMask; 183ulong offset = instrPointer.Value - pageBase;
Contracts\RuntimeTypeSystem_1.cs (5)
593? (long)(int)_target.ReadPointer(mtAddress - pointerSize).Value 594: (long)_target.ReadPointer(mtAddress - pointerSize).Value; 604ulong rawSeriesSize = _target.ReadPointer(seriesBase).Value; 605ulong seriesOffset = _target.ReadPointer(seriesBase + pointerSize).Value; 612ulong startOffset = _target.ReadPointer(mtAddress - 2 * pointerSize).Value;
Contracts\Signature\Signature_1.cs (2)
66return new TargetPointer(vaSigCookieAddr.Value + cookie.SizeOfArgs); 69return new TargetPointer(vaSigCookieAddr.Value + (ulong)_target.PointerSize);
Contracts\StackWalk\Context\AMD64\AMD64Unwinder.cs (2)
48if (_eman.GetCodeBlockHandle(context.InstructionPointer.Value) is not CodeBlockHandle cbh) 1245if (_eman.GetCodeBlockHandle(controlPC.Value) is not CodeBlockHandle cbh)
Contracts\StackWalk\Context\AMD64Context.cs (3)
43set => Rsp = value.Value; 48set => Rip = value.Value; 53set => Rbp = value.Value;
Contracts\StackWalk\Context\ARM\ARMUnwinder.cs (3)
22if (_eman.GetCodeBlockHandle(context.InstructionPointer.Value) is not CodeBlockHandle cbh) 65uint controlPcRva = (uint)(context.Pc - imageBase.Value); 600uint controlPcRva = (uint)(context.Pc - imageBase.Value);
Contracts\StackWalk\Context\ARM64\ARM64Unwinder.cs (1)
54if (_eman.GetCodeBlockHandle(context.InstructionPointer.Value) is not CodeBlockHandle cbh)
Contracts\StackWalk\Context\ARM64Context.cs (3)
50set => Sp = value.Value; 55set => Pc = value.Value; 60set => Fp = value.Value;
Contracts\StackWalk\Context\ARMContext.cs (3)
41set => Sp = (uint)value.Value; 47set => Pc = (uint)value.Value; 53set => R11 = (uint)value.Value;
Contracts\StackWalk\Context\LoongArch64\LoongArch64Unwinder.cs (3)
39if (_eman.GetCodeBlockHandle(context.InstructionPointer.Value) is not CodeBlockHandle cbh) 77uint controlPcRva = (uint)(context.Pc - imageBase.Value); 713ulong value = _target.ReadPointer(address).Value;
Contracts\StackWalk\Context\LoongArch64Context.cs (3)
48set => Sp = value.Value; 53set => Pc = value.Value; 58set => Fp = value.Value;
Contracts\StackWalk\Context\RISCV64\RISCV64Unwinder.cs (3)
47if (_eman.GetCodeBlockHandle(context.InstructionPointer.Value) is not CodeBlockHandle cbh) 85uint controlPcRva = (uint)(context.Pc - imageBase.Value); 723ulong value = _target.ReadPointer(address).Value;
Contracts\StackWalk\Context\RISCV64Context.cs (3)
48set => Sp = value.Value; 53set => Pc = value.Value; 58set => Fp = value.Value;
Contracts\StackWalk\Context\X86\GCInfoDecoding\GCInfo.cs (2)
94_infoHdrSize = (uint)(offset.Value - gcInfoAddress.Value);
Contracts\StackWalk\Context\X86\X86Unwinder.cs (4)
54if (eman.GetCodeBlockHandle(context.InstructionPointer.Value) is not CodeBlockHandle cbh) 382offset = SKIP_PUSH_REG(methodStart.Value, offset); 387offset = SKIP_ALLOC_FRAME((int)gcInfo.RawStackSize, methodStart.Value, offset); 475UnwindEbpDoubleAlignFrameProlog(ref context, gcInfo, methodStart.Value);
Contracts\StackWalk\Context\X86Context.cs (3)
50set => Esp = (uint)value.Value; 55set => Eip = (uint)value.Value; 60set => Ebp = (uint)value.Value;
Contracts\StackWalk\FrameHandling\AMD64FrameHandler.cs (2)
23_holder.Context.Rcx = next.Address.Value; 27_holder.Context.Rdi = next.Address.Value;
Contracts\StackWalk\FrameHandling\ARM64FrameHandler.cs (1)
23_holder.Context.X0 = next.Address.Value;
Contracts\StackWalk\FrameHandling\BaseFrameHandler.cs (1)
118if (current.Next.Value == terminator)
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (3)
312return frame.Datum != TargetPointer.Null && (frame.Datum.Value & 0x1) == 0; 316return ((long)frame.Datum.Value & ~0xffff) != 0; 473if (!context.TrySetRegister(registerName, new TargetNUInt(value.Value)))
Contracts\StackWalk\GC\GCRefMapDecoder.cs (1)
60_currentByte = new TargetPointer(_currentByte.Value + 1);
Contracts\StackWalk\GC\GcScanner.cs (11)
88TargetPointer addr = new(baseAddr.Value + (ulong)(long)slot.SpOffset); 232TargetPointer argAddr = new(argRegStart.Value + (uint)_target.PointerSize); 259ulong imageBase = r2rInfo.LoadedImageBase.Value; 260if (indirection.Value < imageBase) 262ulong diff = indirection.Value - imageBase; 276TargetPointer sectionAddr = new(sectionsBase.Value + i * ImportSectionSize); 297uint lookupOffset = _target.Read<uint>(new TargetPointer(gcRefMapBase.Value + lookupIndex * 4)); 298TargetPointer p = new(gcRefMapBase.Value + lookupOffset); 303p = new(p.Value + 1); 304p = new(p.Value + 1); 464return new TargetPointer(tb.FirstGCRefMapSlot.Value + (ulong)(pos * _target.PointerSize));
Contracts\StackWalk\StackWalk_1.cs (5)
681handle.Context.StackPointer.Value < handle.FrameIter.CurrentFrameAddress.Value || 810return handle.FrameIter.CurrentFrameAddress.Value < parentContext.StackPointer.Value; 866if (returnAddress != TargetPointer.Null && _eman.GetCodeBlockHandle(returnAddress.Value) is CodeBlockHandle cbh)
Contracts\StressLog.cs (4)
146if (currentPointer.Value < currentChunkData.Buf.Value) 153if (readPointer.Value >= currentChunkData.Buf.Value + chunkSize)
Contracts\Thread_1.cs (1)
324_target.ReadBuffer(filterContext.Value, buffer);
Data\EETypeHashTable.cs (1)
34public uint Flags { get; } = (uint)(value.Value & FLAG_MASK);
Data\InstMethodHashTable.cs (1)
34public uint Flags { get; } = (uint)(value.Value & FLAG_MASK);
Data\JITNotification.cs (1)
59ClrModule = new TargetNUInt(module.Value);
PrintfStressMessageFormatter.cs (8)
83builder.Append(ptr.Value.ToString($"X{_target.PointerSize * 2}")); 117builder.Append($"(#Could not read address of string at 0x{ptr.Value:x}#)"); 129builder.Append($"(#Could not read address of string at 0x{ptr.Value:x}#)"); 139ReadOnlySpan<char> value = ptr.Value.ToString(format); 148builder.Append($"0x{ptr.Value:x}".PadLeft(paddingFormat.Width, paddingFormat.FormatChar)); 157return T.CreateTruncating(value.Value).ToString($"{format}{paddingFormat.Width}", formatProvider: CultureInfo.InvariantCulture); 161return T.CreateTruncating(value.Value).ToString($"{format}", formatProvider: CultureInfo.InvariantCulture).PadLeft(paddingFormat.Width, paddingFormat.FormatChar); 167double value = BitConverter.UInt64BitsToDouble(valueAsBits.Value);
Microsoft.Diagnostics.DataContractReader.Legacy (55)
ClrDataFrame.cs (1)
463TargetCodePointer codePointer = new TargetCodePointer(ip.Value);
ConversionExtensions.cs (2)
21return address.Value; 25return (ulong)(int)address.Value;
Dbi\DacDbiImpl.cs (38)
273pData->vmAssembly = loader.GetAssembly(handle).Value; 274pData->vmPEAssembly = loader.GetPEAssembly(handle).Value; 281pData->pPEBaseAddress = baseAddress.Value; 317*pModule = modulePtr.Value; 448fpCallback(assembly.Value, pUserData); 450cdacAssemblies?.Add(assembly.Value); 614fpCallback(currentThread.Value, pUserData); 616cdacThreads?.Add(currentThread.Value); 693*pRetVal = threadData.ExposedObjectHandle.Value; 926*pRetVal = exceptionHandle.Value; 975*pRetVal = objectHandle.Value; 1001*pRetVal = threadData.CurrentCustomDebuggerNotificationHandle.Value; 1059*pRetVal = loader.GetAssembly(referencedModuleHandle).Value; 1241*pArgBase = argBase.Value; 1242*pRetVal = new DacDbiTargetBuffer { pAddress = sigAddr.Value, cbSize = sigLen }; 1322*pRetVal = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(rawToken)).Value; 1445*pRetVal = loader.GetModuleLookupMapElement(lookupTables.TypeDefToMethodTable, metadataToken, out var _).Value; 1448*pRetVal = loader.GetModuleLookupMapElement(lookupTables.TypeRefToMethodTable, metadataToken, out var _).Value; 1496*pRetVal = rts.GetFieldDescThreadStaticAddress(fd, new TargetPointer(vmRuntimeThread)).Value; 1523*pRetVal = rts.GetFieldDescStaticAddress(fd, unboxValueTypes: false).Value; 1570*pVmModule = module.Value; 1647*pRetVal = _target.Contracts.Debugger.GetDebuggerControlBlockAddress().Value; 1672*pRetVal = _target.ReadPointer(new TargetPointer(ptr)).Value; 1857segments.Add((gen0AllocStart.Value, heapData.AllocAllocated.Value, (int)CorDebugGenerationTypes.CorDebug_Gen0, heapIndex)); 1863segments.Add((raw.Start.Value, raw.End.Value, (int)ToCorDebugGenerationType(raw.Generation), heapIndex)); 1870segments.Add((gen1AllocStart.Value, gen0AllocStart.Value, (int)CorDebugGenerationTypes.CorDebug_Gen1, heapIndex)); 1872segments.Add((raw.Start.Value, gen1AllocStart.Value, (int)CorDebugGenerationTypes.CorDebug_Gen2, heapIndex)); 1962pType->token1 = mt.Value; 2036pLayout->parentID.token1 = parentMT.Value; 2092pLayout->componentID.token1 = charTypeHandle.Address.Value; 2109pLayout->componentID.token1 = componentTypeHandle.Address.Value; 2286*pVmILCodeVersionNode = ilCodeVersion.ILCodeVersionNode.Value; 2325*pVmNativeCodeVersionNode = nativeCodeVersion.CodeVersionNodeAddress.Value; 2362*pVmILCodeVersionNode = ilCodeVersion.ILCodeVersionNode.Value;
SOSDacImpl.cs (11)
828data->MethodStart = eman.GetStartAddress(cbh).Value; 3150data->metadataStart = readOnlyMetadata.Address.Value; 3232*nextNestedException = nextNestedExceptionLocal.Value; 3384data->ElementTypeHandle = element.Address.Value; 4082Address = refs[i].Address.Value, 4083Object = refs[i].Object.Value, 4085Source = refs[i].Source.Value, 4089StackPointer = refs[i].StackPointer.Value, 4765pCallback(blockData.Address.Value, (nuint)blockData.Size.Value, block == firstBlock ? Interop.BOOL.TRUE : Interop.BOOL.FALSE); 4767DebugTraverseLoaderHeapBlocks.Add((blockData.Address.Value, (nuint)blockData.Size.Value)); 5260arguments[i] = _target.ReadNUInt(basePtr.Value + (ulong)(i * _target.PointerSize)).Value;
SOSDacImpl.IXCLRDataProcess.cs (2)
127TargetPointer methodDesc = eman.NonVirtualEntry2MethodDesc(new TargetCodePointer(entryPoint.Value)); 131*displacement = codeAddr.ToAddress(_target).Value - entryPoint;
TypeNameBuilder.cs (1)
183if (parentTypePointer.Value == 0)