eteran / edb-debugger

edb is a cross-platform AArch32/x86/x86-64 debugger.
GNU General Public License v2.0
2.7k stars 326 forks source link

edb crashes when adding a hardware breakpoint if a hardware breakpoint was attempted previously unsuccessfully #704

Closed AaronOpfer closed 5 years ago

AaronOpfer commented 5 years ago

Steps to repro:

Expected: breakpoint is set successfully

Actual: edb crashes with the following in the terminal

/home/aopfer/gits/edb-debugger/src/DebugEventHandlers.cpp:40: void DebugEventHandlers::add(IDebugEventHandler*): Fatal error: the same event handler is added twice
eteran commented 5 years ago

Ok, should be an easy fix. Thanks!