private static DbgEngDebugger _GetDebugger(DbgDataMemberTypeInfo member)
        {
            if (null == member)
            {
                throw new ArgumentNullException("member");
            }

            return(member.Debugger);
        }
예제 #2
0
        private static string _GetName(DbgDataMemberTypeInfo memberInfo)
        {
            if (null == memberInfo)
            {
                throw new ArgumentNullException("memberInfo");
            }

            return(memberInfo.Name);
        }
 internal DbgDataInheritedMemberTypeInfo(DbgDataMemberTypeInfo member, uint baseOffset)
     : base(_GetDebugger(member),
            member.Module,
            member.TypeId,
            member.Name,
            member.DataKind,
            member.m_memberTypeId,
            member.m_owningTypeId,
            member.Offset + baseOffset,
            member.BitfieldLength,
            member.BitfieldPosition)
 {
 } // end constructor
예제 #4
0
        internal DbgMemberSymbol(DbgEngDebugger debugger,
                                 DbgSymbol parent,
                                 DbgDataMemberTypeInfo memberInfo)
            : base(debugger, _GetName(memberInfo), _GetTargetFromParent(parent))
        {
            Parent     = parent;
            MemberInfo = memberInfo;

            if (Parent.IsValueInRegister)
            {
                m_addr = 0;
            }
            else
            {
                m_addr = Parent.Address + memberInfo.Offset;
            }
        } // end constructor