[Lldb-commits] [PATCH] Fix breakpoint trap opcode detection for arm linux

Greg Clayton clayborg at gmail.com
Fri Apr 10 10:22:37 PDT 2015


On MacOSX we use the actual BKPT instructions for ARM and Thumb that have the immediate values set correctly so the ARM BKPT works for Thumb as well:

static const uint8_t g_arm_breakpoint_opcode[] = { 0x70, 0xBE, 0x20, 0xE1 };
static const uint8_t g_thumb_breakpoint_opcode[] = { 0x70, 0xBE };

But, If these opcodes are what your kernel recognizes, you will want to use what the kernel expects.


http://reviews.llvm.org/D8975

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the lldb-commits mailing list