mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-14 00:58:51 +02:00

If the delimiters of a memory aren't exactly the same as an address, but their size includes the memory breakpoint delimiter, the break will not go through. This makes it so that you can specify a search for a memory breakpoint with a data size and will check if the data fits with that size on all memory breakpoints so the breaks go through.
49 lines
1.6 KiB
C++
49 lines
1.6 KiB
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <string>
|
|
|
|
#include "Common/DebugInterface.h"
|
|
|
|
// wrapper between disasm control and Dolphin debugger
|
|
|
|
class PPCDebugInterface final : public DebugInterface
|
|
{
|
|
public:
|
|
PPCDebugInterface() {}
|
|
std::string Disassemble(unsigned int address) override;
|
|
std::string GetRawMemoryString(int memory, unsigned int address) override;
|
|
int GetInstructionSize(int /*instruction*/) override { return 4; }
|
|
bool IsAlive() override;
|
|
bool IsBreakpoint(unsigned int address) override;
|
|
void SetBreakpoint(unsigned int address) override;
|
|
void ClearBreakpoint(unsigned int address) override;
|
|
void ClearAllBreakpoints() override;
|
|
void AddWatch(unsigned int address) override;
|
|
void ToggleBreakpoint(unsigned int address) override;
|
|
void ClearAllMemChecks() override;
|
|
bool IsMemCheck(unsigned int address, size_t size = 1) override;
|
|
void ToggleMemCheck(unsigned int address, bool read = true, bool write = true,
|
|
bool log = true) override;
|
|
unsigned int ReadMemory(unsigned int address) override;
|
|
|
|
enum
|
|
{
|
|
EXTRAMEM_ARAM = 1,
|
|
};
|
|
|
|
unsigned int ReadExtraMemory(int memory, unsigned int address) override;
|
|
unsigned int ReadInstruction(unsigned int address) override;
|
|
unsigned int GetPC() override;
|
|
void SetPC(unsigned int address) override;
|
|
void Step() override {}
|
|
void RunToBreakpoint() override;
|
|
void InsertBLR(unsigned int address, unsigned int value) override;
|
|
int GetColor(unsigned int address) override;
|
|
std::string GetDescription(unsigned int address) override;
|
|
};
|