From 98a46aa1d162d8bdd43ab640387a4be03eef7d96 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Thu, 20 Apr 2023 11:25:51 +0800 Subject: [PATCH] Supress compiler warnings --- ui/ui.cpp | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/ui/ui.cpp b/ui/ui.cpp index 788e677..d5efdcb 100644 --- a/ui/ui.cpp +++ b/ui/ui.cpp @@ -183,23 +183,23 @@ static bool InstallDbgEngRedistributable() #endif -static bool ShowAsCode(BinaryView* view, uint64_t addr) -{ - DataVariable var; - if (view->GetDataVariableAtAddress(addr, var)) - { - auto sym = view->GetSymbolByAddress(addr); - if (sym) - { - auto name = sym->GetFullName(); - if (name.substr(0, 14) == "BN_CODE_start_") - { - return true; - } - } - } - return false; -} +//static bool ShowAsCode(BinaryView* view, uint64_t addr) +//{ +// DataVariable var; +// if (view->GetDataVariableAtAddress(addr, var)) +// { +// auto sym = view->GetSymbolByAddress(addr); +// if (sym) +// { +// auto name = sym->GetFullName(); +// if (name.substr(0, 14) == "BN_CODE_start_") +// { +// return true; +// } +// } +// } +// return false; +//} //static void MakeCodeHelper(BinaryView* view, uint64_t addr) @@ -1094,7 +1094,6 @@ void DebuggerUI::updateUI(const DebuggerEvent& event) case TargetStoppedEventType: case ActiveThreadChangedEvent: { - uint64_t address = m_controller->IP(); // If there is no function at the current address, define one. This might be a little aggressive, // but given that we are lacking the ability to "show as code", this feels like an OK workaround. BinaryViewRef liveView = m_controller->GetLiveView();