PPCSymbolDB: Eliminate Redundant Member
This can be accessed through the CPUThreadGuard.
This commit is contained in:
1 parent
8f6fd912f7
commit
0f36654d2b
2 files changed
+4
-8
No files matched your search
@@ -28,9 +28,7 @@
|
||||
|
||||
PPCSymbolDB g_symbolDB;
|
||||
|
||||
PPCSymbolDB::PPCSymbolDB() : debugger{&Core::System::GetInstance().GetPowerPC().GetDebugInterface()}
|
||||
{
|
||||
}
|
||||
PPCSymbolDB::PPCSymbolDB() = default;
|
||||
|
||||
PPCSymbolDB::~PPCSymbolDB() = default;
|
||||
|
||||
@@ -510,6 +508,8 @@ bool PPCSymbolDB::SaveCodeMap(const Core::CPUThreadGuard& guard, const std::stri
|
||||
// Write ".text" at the top
|
||||
f.WriteString(".text\n");
|
||||
|
||||
const auto& ppc_debug_interface = guard.GetSystem().GetPowerPC().GetDebugInterface();
|
||||
|
||||
u32 next_address = 0;
|
||||
for (const auto& function : m_functions)
|
||||
{
|
||||
@@ -530,7 +530,7 @@ bool PPCSymbolDB::SaveCodeMap(const Core::CPUThreadGuard& guard, const std::stri
|
||||
// Write the code
|
||||
for (u32 address = symbol.address; address < next_address; address += 4)
|
||||
{
|
||||
const std::string disasm = debugger->Disassemble(&guard, address);
|
||||
const std::string disasm = ppc_debug_interface.Disassemble(&guard, address);
|
||||
f.WriteString(fmt::format("{0:08x} {1:<{2}.{3}} {4}\n", address, symbol.name,
|
||||
SYMBOL_NAME_LIMIT, SYMBOL_NAME_LIMIT, disasm));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user