1 write to Value
Microsoft.Diagnostics.DataContractReader.Abstractions (1)
TargetPointer.cs (1)
15public TargetPointer(ulong value) => Value = value;
249 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)); 780=> 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 (134)
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\Exception_1.cs (1)
65throw new InvalidOperationException($"Stack trace object 0x{stackTraceObj.Value:x} has no MethodTable.");
Contracts\ExecutionManager\ExecutionManagerCore.cs (9)
149return codeHeaderIndirect.Value <= stubCodeBlockLast; 256TargetPointer runtimeFunctionPtr = jitManager?.GetUnwindInfo(range, codeInfoHandle.Address.Value) ?? TargetPointer.Null; 282jitManager?.GetMethodRegionInfo(range, codeInfoHandle.Address.Value, out hotSize, out coldStart, out coldSize); 327if (((IExecutionManager)this).GetCodeKind(new TargetCodePointer(startAddress.Value)) == CodeKind.Interpreter) 364return jitManager?.GetUnwindInfo(range, codeInfoHandle.Address.Value) ?? TargetPointer.Null; 384return jitManager?.GetDebugInfo(range, codeInfoHandle.Address.Value, out hasFlagByte) ?? TargetPointer.Null; 397jitManager?.GetGCInfo(range, codeInfoHandle.Address.Value, out gcInfo, out gcVersion); 486RangeSection range = RangeSection.Find(_target, _topRangeSectionMap, _rangeSectionMapLookup, codeInfoHandle.Address.Value); 565isCatchAllHandler = 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\GC\GC_1.cs (2)
462TargetPointer next = new TargetPointer(currentAddress.Value + currentObjectSize); 471return new TargetPointer(context.Limit.Value + minObjSize);
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)
618? (long)(int)_target.ReadPointer(mtAddress - pointerSize).Value 619: (long)_target.ReadPointer(mtAddress - pointerSize).Value; 629ulong rawSeriesSize = _target.ReadPointer(seriesBase).Value; 630ulong seriesOffset = _target.ReadPointer(seriesBase + pointerSize).Value; 637ulong 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)
46set => Rsp = value.Value; 51set => Rip = value.Value; 56set => 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)
52set => Sp = value.Value; 57set => Pc = value.Value; 62set => Fp = value.Value;
Contracts\StackWalk\Context\ARMContext.cs (3)
44set => Sp = (uint)value.Value; 50set => Pc = (uint)value.Value; 56set => 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)
50set => Sp = value.Value; 55set => Pc = value.Value; 60set => 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)
50set => Sp = value.Value; 55set => Pc = value.Value; 60set => 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)
53set => Esp = (uint)value.Value; 58set => Eip = (uint)value.Value; 63set => 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 (4)
359return (icf.Datum.Value & mask) == mask; 385return frame.Datum != TargetPointer.Null && (frame.Datum.Value & 0x1) == 0; 389return ((long)frame.Datum.Value & ~0xffff) != 0; 546if (!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 (8)
660handle.Context.StackPointer.Value < handle.FrameIter.CurrentFrameAddress.Value || 811return handle.FrameIter.CurrentFrameAddress.Value < parentContext.StackPointer.Value; 867if (returnAddress != TargetPointer.Null && _eman.GetCodeBlockHandle(returnAddress.Value) is CodeBlockHandle cbh) 934_target.ReadBuffer(filterContext.Value, buffer); 968if (context.StackPointer.Value != 0 && context.InstructionPointer.Value != 0)
Contracts\StressLog.cs (4)
146if (currentPointer.Value < currentChunkData.Buf.Value) 153if (readPointer.Value >= currentChunkData.Buf.Value + chunkSize)
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)
24WriteClrModule(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 (99)
ClrDataFrame.cs (1)
463TargetCodePointer codePointer = new TargetCodePointer(ip.Value);
ConversionExtensions.cs (2)
21return address.Value; 25return (ulong)(int)address.Value;
Dbi\DacDbiImpl.cs (69)
284pTargetBuffer->pAddress = buffer.Value; 326pData->vmAssembly = loader.GetAssembly(handle).Value; 327pData->vmPEAssembly = loader.GetPEAssembly(handle).Value; 334pData->pPEBaseAddress = baseAddress.Value; 376*pModule = modulePtr.Value; 515fpCallback(assembly.Value, pUserData); 517cdacAssemblies?.Add(assembly.Value); 678fpCallback(currentThread.Value, pUserData); 680cdacThreads?.Add(currentThread.Value); 750*pRetVal = (void*)threadData.ThreadHandle.Value; 779*pRetVal = threadData.ExposedObjectHandle.Value; 807ulong limit = threadData.AllocContextLimit.Value; 808ulong pointer = threadData.AllocContextPointer.Value; 1043*pRetVal = exceptionHandle.Value; 1092*pRetVal = objectHandle.Value; 1118*pRetVal = threadData.CurrentCustomDebuggerNotificationHandle.Value; 1176*pRetVal = loader.GetAssembly(referencedModuleHandle).Value; 1213*pRetVal = filterContext.Value; 1221*pRetVal = redirectedContext.Value; 1372data.fp = frame.FrameAddress.Value; 1373data.vmCurrentAppDomainToken = currentAppDomain.Value; 1376data.stubFrame.vmAssembly = vmAssembly.Value; 1377data.stubFrame.vmMethodDesc = vmMethodDesc.Value; 1626*pArgBase = argBase.Value; 1627*pRetVal = new DacDbiTargetBuffer { pAddress = sigAddr.Value, cbSize = sigLen }; 1707*pRetVal = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(rawToken)).Value; 1781pTargetBuffer->pAddress = headerPtr.Value + (ulong)headerSize; 2026fd.m_vmFieldDesc = fdPtr.Value; 2063fd.m_pFldStaticAddress = addr.Value; 2261*pRetVal = loader.GetModuleLookupMapElement(lookupTables.TypeDefToMethodTable, metadataToken, out var _).Value; 2264*pRetVal = loader.GetModuleLookupMapElement(lookupTables.TypeRefToMethodTable, metadataToken, out var _).Value; 2326*pVmTypeHandle = th.Address.Value; 2620*pRetVal = rts.GetFieldDescThreadStaticAddress(fd, new TargetPointer(vmRuntimeThread)).Value; 2647*pRetVal = rts.GetFieldDescStaticAddress(fd, unboxValueTypes: false).Value; 2773*pVmModule = module.Value; 2862ulong vmAppDomain = _target.ReadPointer(appDomainPointer).Value; 2870frames.Add((vmAppDomain, vmAssembly.Value, frame.Ip.Value, methodDef, isLastForeign)); 2872fpCallback(vmAppDomain, vmAssembly.Value, frame.Ip.Value, methodDef, isLastForeign, pUserData); 2961itfPtrs.Add(unknown.Value); 3011*pRetVal = _target.Contracts.Debugger.GetDebuggerControlBlockAddress().Value; 3036*pRetVal = _target.ReadPointer(new TargetPointer(ptr)).Value; 3398segments.Add((gen0AllocStart.Value, heapData.AllocAllocated.Value, (int)CorDebugGenerationTypes.CorDebug_Gen0, heapIndex)); 3404segments.Add((raw.Start.Value, raw.End.Value, (int)ToCorDebugGenerationType(raw.Generation), heapIndex)); 3411segments.Add((gen1AllocStart.Value, gen0AllocStart.Value, (int)CorDebugGenerationTypes.CorDebug_Gen1, heapIndex)); 3413segments.Add((raw.Start.Value, gen1AllocStart.Value, (int)CorDebugGenerationTypes.CorDebug_Gen2, heapIndex)); 3550pType->token1 = mt.Value; 3699corField->id.token1 = rts.GetPrimitiveType(CorElementType.I).Address.Value; 3710corField->id.token1 = mtHandle.Address.Value; 3773pLayout->parentID.token1 = parentMT.Value; 3829pLayout->componentID.token1 = charTypeHandle.Address.Value; 3846pLayout->componentID.token1 = componentTypeHandle.Address.Value; 4072*pVmILCodeVersionNode = ilCodeVersion.ILCodeVersionNode.Value; 4111*pVmNativeCodeVersionNode = nativeCodeVersion.CodeVersionNodeAddress.Value; 4148*pVmILCodeVersionNode = ilCodeVersion.ILCodeVersionNode.Value; 4262*ppFunctionAssembly = _target.Contracts.Loader.GetAssembly(moduleHandle).Value; 4301*ppTargetObj = delegateInfo.TargetObject.Value; 4408*pVmAssembly = assemblyPtr.Value; 4637WriteLittleEndian(ref pTypeInfo->ClassTypeData_typeHandle, typeHandle.Address.Value); 4644WriteLittleEndian(ref pTypeInfo->ClassTypeData_vmAssembly, loader.GetAssembly(moduleHandle).Value); 4656WriteLittleEndian(ref pTypeInfo->NaryTypeData_typeHandle, typeHandle.Address.Value); 4676WriteLittleEndian(ref typeInfo.vmTypeHandle, typeHandle.Address.Value); 4692WriteLittleEndian(ref typeInfo.vmTypeHandle, typeHandle.Address.Value); 4698WriteLittleEndian(ref typeInfo.vmAssembly, loader.GetAssembly(moduleHandle).Value);
Dbi\Helpers\HeapWalk.cs (13)
46if (seg.Start.Value >= seg.End.Value) 50while (currentObj.Value < seg.End.Value) 52if (!_cache.TryReadPointer(currentObj.Value + _methodTableOffset, out TargetPointer mt)) 57mt = new TargetPointer(mt.Value & _methodTableMask); 66if (currentObj.Value + size > seg.End.Value) 74if (nextObj.Value > seg.End.Value) 96address = reportedAddr.Value, 98type = new COR_TYPEID { token1 = mt.Value, token2 = 0 }, 139if (!_cache.TryReadUInt32(objAddr.Value + numComponentsOffset, out uint numComponents))
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)