-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add systemmode hw_breakpoint libafl set/remove fns (#93)
* Add systemmode hw_breakpoint libafl set/remove fns * very bad kvm breakpoint hook yolo * cleanup * Prevent GDB from using HW breakpoints * fix: hw breakpoint add/rm no loop over CPUs
- Loading branch information
1 parent
2b5e4bf
commit 30ad91f
Showing
4 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
#pragma once | ||
|
||
#include "hw/core/cpu.h" | ||
#include "gdbstub/enums.h" | ||
#include "sysemu/accel-ops.h" | ||
#include "sysemu/cpus.h" | ||
|
||
int libafl_qemu_set_hw_breakpoint(vaddr addr); | ||
int libafl_qemu_remove_hw_breakpoint(vaddr addr); | ||
|
||
void libafl_qemu_init(int argc, char** argv); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters