From ca254d1e1f157de7951e63ce2839e4c45547dad2 Mon Sep 17 00:00:00 2001 From: mrexodia Date: Thu, 18 Aug 2016 20:27:32 +0200 Subject: [PATCH] revised memory breakpoint structure --- GleeBug/Debugger.Breakpoint.h | 9 --------- GleeBug/Debugger.Global.h | 1 + GleeBug/Debugger.Process.h | 1 + 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/GleeBug/Debugger.Breakpoint.h b/GleeBug/Debugger.Breakpoint.h index 6b9b6f3..669e7b8 100644 --- a/GleeBug/Debugger.Breakpoint.h +++ b/GleeBug/Debugger.Breakpoint.h @@ -49,14 +49,6 @@ namespace GleeBug Execute }; - struct MemoryBreakpointInfo - { - struct - { - uint32 offset; - } info[PAGE_SIZE]; - }; - /** \brief Structure describing internal breakpoint info. */ @@ -81,7 +73,6 @@ namespace GleeBug { MemoryType type; ptr size; - MemoryBreakpointInfo* info; } memory; }; }; diff --git a/GleeBug/Debugger.Global.h b/GleeBug/Debugger.Global.h index 371625b..64c9d2e 100644 --- a/GleeBug/Debugger.Global.h +++ b/GleeBug/Debugger.Global.h @@ -35,6 +35,7 @@ namespace GleeBug typedef std::map BreakpointMap; typedef std::map BreakpointCallbackMap; typedef std::unordered_map SoftwareBreakpointMap; + typedef std::set MemoryBreakpointSet; //vector typedefs typedef std::vector StepCallbackVector; diff --git a/GleeBug/Debugger.Process.h b/GleeBug/Debugger.Process.h index 9881bc2..f91e3e3 100644 --- a/GleeBug/Debugger.Process.h +++ b/GleeBug/Debugger.Process.h @@ -30,6 +30,7 @@ namespace GleeBug SoftwareBreakpointMap softwareBreakpointReferences; BreakpointCallbackMap breakpointCallbacks; BreakpointInfo hardwareBreakpoints[4]; + MemoryBreakpointSet memoryBreakpoints; /** \brief Constructor.