DebugInterface: Rename InsertBLR to Patch

This commit is contained in:
Sepalani 2017-10-05 20:09:12 +02:00
parent 428f0fa69b
commit f65dcdcdca
6 changed files with 9 additions and 9 deletions

View File

@ -39,7 +39,7 @@ public:
virtual void SetPC(unsigned int /*address*/) {} virtual void SetPC(unsigned int /*address*/) {}
virtual void Step() {} virtual void Step() {}
virtual void RunToBreakpoint() {} virtual void RunToBreakpoint() {}
virtual void InsertBLR(unsigned int /*address*/, unsigned int /*value*/) {} virtual void Patch(unsigned int /*address*/, unsigned int /*value*/) {}
virtual int GetColor(unsigned int /*address*/) { return 0xFFFFFFFF; } virtual int GetColor(unsigned int /*address*/) { return 0xFFFFFFFF; }
virtual std::string GetDescription(unsigned int /*address*/) = 0; virtual std::string GetDescription(unsigned int /*address*/) = 0;
}; };

View File

@ -156,7 +156,7 @@ void PPCDebugInterface::ToggleMemCheck(unsigned int address, bool read, bool wri
} }
} }
void PPCDebugInterface::InsertBLR(unsigned int address, unsigned int value) void PPCDebugInterface::Patch(unsigned int address, unsigned int value)
{ {
PowerPC::HostWrite_U32(value, address); PowerPC::HostWrite_U32(value, address);
PowerPC::ScheduleInvalidateCacheThreadSafe(address); PowerPC::ScheduleInvalidateCacheThreadSafe(address);

View File

@ -42,7 +42,7 @@ public:
void SetPC(unsigned int address) override; void SetPC(unsigned int address) override;
void Step() override {} void Step() override {}
void RunToBreakpoint() override; void RunToBreakpoint() override;
void InsertBLR(unsigned int address, unsigned int value) override; void Patch(unsigned int address, unsigned int value) override;
int GetColor(unsigned int address) override; int GetColor(unsigned int address) override;
std::string GetDescription(unsigned int address) override; std::string GetDescription(unsigned int address) override;
}; };

View File

@ -132,9 +132,9 @@ void DSPDebugInterface::ToggleMemCheck(unsigned int address, bool read, bool wri
PanicAlert("MemCheck functionality not supported in DSP module."); PanicAlert("MemCheck functionality not supported in DSP module.");
} }
void DSPDebugInterface::InsertBLR(unsigned int address, unsigned int value) void DSPDebugInterface::Patch(unsigned int address, unsigned int value)
{ {
PanicAlert("insertBLR functionality not supported in DSP module."); PanicAlert("Patch functionality not supported in DSP module.");
} }
// ======================================================= // =======================================================

View File

@ -37,7 +37,7 @@ public:
void SetPC(unsigned int address) override; void SetPC(unsigned int address) override;
void Step() override {} void Step() override {}
void RunToBreakpoint() override; void RunToBreakpoint() override;
void InsertBLR(unsigned int address, unsigned int value) override; void Patch(unsigned int address, unsigned int value) override;
int GetColor(unsigned int address) override; int GetColor(unsigned int address) override;
std::string GetDescription(unsigned int address) override; std::string GetDescription(unsigned int address) override;
}; };

View File

@ -227,9 +227,9 @@ void CCodeView::InsertBlrNop(int Blr)
temp.oldValue = m_debugger->ReadMemory(m_selection); temp.oldValue = m_debugger->ReadMemory(m_selection);
m_blrList.push_back(temp); m_blrList.push_back(temp);
if (Blr == 0) if (Blr == 0)
m_debugger->InsertBLR(m_selection, 0x4e800020); m_debugger->Patch(m_selection, 0x4e800020);
else else
m_debugger->InsertBLR(m_selection, 0x60000000); m_debugger->Patch(m_selection, 0x60000000);
} }
Refresh(); Refresh();
} }
@ -320,7 +320,7 @@ void CCodeView::OnPopupMenu(wxCommandEvent& event)
unsigned long code; unsigned long code;
if (dialog.GetValue().ToULong(&code, 0) && code <= std::numeric_limits<u32>::max()) if (dialog.GetValue().ToULong(&code, 0) && code <= std::numeric_limits<u32>::max())
{ {
m_debugger->InsertBLR(m_selection, code); m_debugger->Patch(m_selection, code);
Refresh(); Refresh();
} }
} }