Change the DebugInterface, PPCDebugInterface, and DSPDebugInterface to use CamelCase names.

This is the standard coding convention in the codebase, so our interfaces should use it too.
This commit is contained in:
Lioncash
2014-03-03 00:39:08 -05:00
parent 32e0544088
commit 279a8c0148
9 changed files with 157 additions and 153 deletions
+22 -22
View File
@@ -15,7 +15,7 @@
#include "Core/PowerPC/PPCSymbolDB.h"
#include "Core/PowerPC/JitCommon/JitBase.h"
void PPCDebugInterface::disasm(unsigned int address, char *dest, int max_size)
void PPCDebugInterface::Disassemble(unsigned int address, char *dest, int max_size)
{
// Memory::ReadUnchecked_U32 seemed to crash on shutdown
if (PowerPC::GetState() == PowerPC::CPU_POWERDOWN) return;
@@ -43,13 +43,13 @@ void PPCDebugInterface::disasm(unsigned int address, char *dest, int max_size)
}
}
void PPCDebugInterface::getRawMemoryString(int memory, unsigned int address, char *dest, int max_size)
void PPCDebugInterface::GetRawMemoryString(int memory, unsigned int address, char *dest, int max_size)
{
if (Core::GetState() != Core::CORE_UNINITIALIZED)
{
if (memory || Memory::IsRAMAddress(address, true, true))
{
snprintf(dest, max_size, "%08X%s", readExtraMemory(memory, address), memory ? " (ARAM)" : "");
snprintf(dest, max_size, "%08X%s", ReadExtraMemory(memory, address), memory ? " (ARAM)" : "");
}
else
{
@@ -62,12 +62,12 @@ void PPCDebugInterface::getRawMemoryString(int memory, unsigned int address, cha
}
}
unsigned int PPCDebugInterface::readMemory(unsigned int address)
unsigned int PPCDebugInterface::ReadMemory(unsigned int address)
{
return Memory::ReadUnchecked_U32(address);
}
unsigned int PPCDebugInterface::readExtraMemory(int memory, unsigned int address)
unsigned int PPCDebugInterface::ReadExtraMemory(int memory, unsigned int address)
{
switch (memory)
{
@@ -83,34 +83,34 @@ unsigned int PPCDebugInterface::readExtraMemory(int memory, unsigned int address
}
}
unsigned int PPCDebugInterface::readInstruction(unsigned int address)
unsigned int PPCDebugInterface::ReadInstruction(unsigned int address)
{
return Memory::Read_Instruction(address);
}
bool PPCDebugInterface::isAlive()
bool PPCDebugInterface::IsAlive()
{
return Core::GetState() != Core::CORE_UNINITIALIZED;
}
bool PPCDebugInterface::isBreakpoint(unsigned int address)
bool PPCDebugInterface::IsBreakpoint(unsigned int address)
{
return PowerPC::breakpoints.IsAddressBreakPoint(address);
}
void PPCDebugInterface::setBreakpoint(unsigned int address)
void PPCDebugInterface::SetBreakpoint(unsigned int address)
{
PowerPC::breakpoints.Add(address);
}
void PPCDebugInterface::clearBreakpoint(unsigned int address)
void PPCDebugInterface::ClearBreakpoint(unsigned int address)
{
PowerPC::breakpoints.Remove(address);
}
void PPCDebugInterface::clearAllBreakpoints() {}
void PPCDebugInterface::ClearAllBreakpoints() {}
void PPCDebugInterface::toggleBreakpoint(unsigned int address)
void PPCDebugInterface::ToggleBreakpoint(unsigned int address)
{
if (PowerPC::breakpoints.IsAddressBreakPoint(address))
PowerPC::breakpoints.Remove(address);
@@ -118,13 +118,13 @@ void PPCDebugInterface::toggleBreakpoint(unsigned int address)
PowerPC::breakpoints.Add(address);
}
bool PPCDebugInterface::isMemCheck(unsigned int address)
bool PPCDebugInterface::IsMemCheck(unsigned int address)
{
return (Memory::AreMemoryBreakpointsActivated()
&& PowerPC::memchecks.GetMemCheck(address));
}
void PPCDebugInterface::toggleMemCheck(unsigned int address)
void PPCDebugInterface::ToggleMemCheck(unsigned int address)
{
if (Memory::AreMemoryBreakpointsActivated()
&& !PowerPC::memchecks.GetMemCheck(address))
@@ -145,12 +145,12 @@ void PPCDebugInterface::toggleMemCheck(unsigned int address)
PowerPC::memchecks.Remove(address);
}
void PPCDebugInterface::insertBLR(unsigned int address, unsigned int value)
void PPCDebugInterface::InsertBLR(unsigned int address, unsigned int value)
{
Memory::Write_U32(value, address);
}
void PPCDebugInterface::breakNow()
void PPCDebugInterface::BreakNow()
{
CCPU::Break();
}
@@ -159,7 +159,7 @@ void PPCDebugInterface::breakNow()
// =======================================================
// Separate the blocks with colors.
// -------------
int PPCDebugInterface::getColor(unsigned int address)
int PPCDebugInterface::GetColor(unsigned int address)
{
if (!Memory::IsRAMAddress(address, true, true))
return 0xeeeeee;
@@ -182,27 +182,27 @@ int PPCDebugInterface::getColor(unsigned int address)
// =============
std::string PPCDebugInterface::getDescription(unsigned int address)
std::string PPCDebugInterface::GetDescription(unsigned int address)
{
return g_symbolDB.GetDescription(address);
}
unsigned int PPCDebugInterface::getPC()
unsigned int PPCDebugInterface::GetPC()
{
return PowerPC::ppcState.pc;
}
void PPCDebugInterface::setPC(unsigned int address)
void PPCDebugInterface::SetPC(unsigned int address)
{
PowerPC::ppcState.pc = address;
}
void PPCDebugInterface::showJitResults(unsigned int address)
void PPCDebugInterface::ShowJitResults(unsigned int address)
{
Host_ShowJitResults(address);
}
void PPCDebugInterface::runToBreakpoint()
void PPCDebugInterface::RunToBreakpoint()
{
}