示例#1
0
        public string CreateWatchName(ulong address)
        {
            var list = DebugSource.GetSymbolsStartingAt(address);

            if (list?.Count >= 1)
            {
                return(list[0].CommonName);
            }

            return(string.Empty);
        }
示例#2
0
        public string CreateBreakPointName(ulong address)
        {
            var list = DebugSource.GetSymbolsStartingAt(address);

            if (list?.Count >= 1)
            {
                return(list[0].CommonName);
            }

            return(GetAddressInfo(address));
        }
示例#3
0
        public string CreateBreakPointName(ulong address)
        {
            var list = DebugSource.GetSymbolsStartingAt(address);

            if (list?.Count >= 1)
            {
                return(list[0].CommonName);
            }
            else
            {
                var first = DebugSource.GetFirstSymbol(address);

                if (first != null)
                {
                    int delta = (int)(address - first.Address);
                    return("0x" + delta.ToString("X2") + "+" + first.CommonName);
                }
            }

            return(string.Empty);
        }