mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 07:25:26 +00:00
Refactor debugger_frame into subclasses. Mostly trying to simplify
breakpoints.
This commit is contained in:
parent
633004c820
commit
477522210e
19 changed files with 780 additions and 426 deletions
32
rpcs3/rpcs3qt/breakpoint_handler.cpp
Normal file
32
rpcs3/rpcs3qt/breakpoint_handler.cpp
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#include "breakpoint_handler.h"
|
||||
|
||||
extern void ppu_breakpoint(u32 loc, bool isAdding);
|
||||
|
||||
breakpoint_handler::breakpoint_handler() :m_breakpoints()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
breakpoint_handler::~breakpoint_handler()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool breakpoint_handler::HasBreakpoint(u32 loc) const
|
||||
{
|
||||
return m_breakpoints.find(loc) != m_breakpoints.end();
|
||||
}
|
||||
|
||||
bool breakpoint_handler::AddBreakpoint(u32 loc)
|
||||
{
|
||||
m_breakpoints.insert(loc);
|
||||
ppu_breakpoint(loc, true);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool breakpoint_handler::RemoveBreakpoint(u32 loc)
|
||||
{
|
||||
m_breakpoints.erase(loc);
|
||||
ppu_breakpoint(loc, false);
|
||||
return true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue