From 13048afd08403e05e9e6303c83633126430b84f5 Mon Sep 17 00:00:00 2001 From: Sepalani Date: Tue, 6 Sep 2016 18:19:40 +0400 Subject: [PATCH] MemoryView: Symbols shown in ASCII view --- Source/Core/DolphinWX/Debugger/MemoryView.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/Debugger/MemoryView.cpp b/Source/Core/DolphinWX/Debugger/MemoryView.cpp index 195cd965b3..1f7f413e92 100644 --- a/Source/Core/DolphinWX/Debugger/MemoryView.cpp +++ b/Source/Core/DolphinWX/Debugger/MemoryView.cpp @@ -17,6 +17,7 @@ #include "Common/CommonTypes.h" #include "Common/DebugInterface.h" #include "Common/StringUtil.h" +#include "Core/PowerPC/PPCSymbolDB.h" #include "Core/PowerPC/PowerPC.h" #include "DolphinWX/Debugger/CodeWindow.h" #include "DolphinWX/Debugger/DebuggerUIUtil.h" @@ -335,7 +336,11 @@ void CMemoryView::OnPaint(wxPaintEvent& event) word = ' '; } - dis = StringFromFormat("%c%c%c%c", a[0], a[1], a[2], a[3]); + Symbol* sym = g_symbolDB.GetSymbolFromAddr(mem_data); + if (sym == nullptr) + dis = StringFromFormat("%c%c%c%c", a[0], a[1], a[2], a[3]); + else + dis = StringFromFormat("# -> %s", sym->name.c_str()); } else if (viewAsType == VIEWAS_HEX) {