PPCSymbolDB: Default destructor and pass to member variables in the constructor initializer-list
This commit is contained in:
parent
d6d17eea60
commit
b44eb90ee4
|
@ -21,15 +21,11 @@
|
||||||
|
|
||||||
PPCSymbolDB g_symbolDB;
|
PPCSymbolDB g_symbolDB;
|
||||||
|
|
||||||
PPCSymbolDB::PPCSymbolDB()
|
PPCSymbolDB::PPCSymbolDB() : debugger{&PowerPC::debug_interface}
|
||||||
{
|
{
|
||||||
// Get access to the disasm() fgnction
|
|
||||||
debugger = &PowerPC::debug_interface;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PPCSymbolDB::~PPCSymbolDB()
|
PPCSymbolDB::~PPCSymbolDB() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
// Adds the function to the list, unless it's already there
|
// Adds the function to the list, unless it's already there
|
||||||
Symbol* PPCSymbolDB::AddFunction(u32 start_addr)
|
Symbol* PPCSymbolDB::AddFunction(u32 start_addr)
|
||||||
|
|
|
@ -18,7 +18,7 @@ class PPCSymbolDB : public SymbolDB
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PPCSymbolDB();
|
PPCSymbolDB();
|
||||||
~PPCSymbolDB();
|
~PPCSymbolDB() override;
|
||||||
|
|
||||||
Symbol* AddFunction(u32 start_addr) override;
|
Symbol* AddFunction(u32 start_addr) override;
|
||||||
void AddKnownSymbol(u32 startAddr, u32 size, const std::string& name,
|
void AddKnownSymbol(u32 startAddr, u32 size, const std::string& name,
|
||||||
|
|
Loading…
Reference in New Issue