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

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

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

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

            return(GetAddressInfo(address));
        }
Beispiel #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);
        }