Mono.Debugger.Languages.Mono.MonoVariableLocation.update C# (CSharp) Method

update() private method

private update ( TargetMemoryAccess target ) : void
target TargetMemoryAccess
return void
        void update(TargetMemoryAccess target)
        {
            // If this is a reference type, the register just holds the
            // address of the actual data, so read the address from the
            // register and return it.
            if (!register.Valid) {
                is_valid = false;
                return;
            }

            long contents = register.Value;

            if (contents == 0)
                address = TargetAddress.Null;
            else
                address = new TargetAddress (
                    target.AddressDomain, contents + regoffset);

            if (is_byref && is_regoffset)
                address = target.ReadAddress (address);
            is_valid = true;
        }

Usage Example

Example #1
0
        public static MonoVariableLocation Create(TargetMemoryAccess target, bool is_regoffset,
							   Register register, long regoffset,
							   bool is_byref)
        {
            MonoVariableLocation location = new MonoVariableLocation (
                is_regoffset, register, regoffset, is_byref);
            location.update (target);
            return location;
        }
All Usage Examples Of Mono.Debugger.Languages.Mono.MonoVariableLocation::update