Fix #8786 - Use brk0 for arm64 breakpoints

This commit is contained in:
pancake 2017-12-03 16:51:25 +01:00
parent 9ff66fc7ad
commit 37626f13a5

View File

@ -4,8 +4,11 @@
#include <r_lib.h>
static struct r_bp_arch_t r_bp_plugin_arm_bps[] = {
{ 64, 4, 0, (const ut8*)"\xfe\xde\xff\xe7" }, // le - arm64
{ 64, 1, 0, (const ut8*)"\xfe\xde\xff\xe7" }, // le - arm64 // hacky fix
{ 64, 4, 0, (const ut8*)"\x00\x00\x20\xd4" }, // le - arm64 brk0
{ 64, 1, 0, (const ut8*)"\x00\x00\x20\xd4" }, // le - arm64
{ 64, 4, 1, (const ut8*)"\xd4\x20\x00\x00" }, // be - arm64
{ 64, 1, 1, (const ut8*)"\xd4\x20\x00\x00" }, // be - arm64
//{ 64, 1, 0, (const ut8*)"\xfe\xde\xff\xe7" }, // le - arm64 // hacky fix
// { 32, 1, 0, (const ut8*)"\xff\xff\xff\xff" }, // le - linux only? (undefined instruction)
// { 32, 1, 1, (const ut8*)"\xff\xff\xff\xff" }, // be - linux only? (undefined instruction)
{ 32, 4, 0, (const ut8*)"\x01\x00\x9f\xef" }, // le - linux only? (undefined instruction)