Fix byte order selection for breakpoints: on arm the byte order for code

might differ from the generic BFD endianess.
Fixes PR toolchain/49445.
This commit is contained in:
martin 2014-12-12 20:25:35 +00:00
parent 6694ef2dff
commit 41f1cccf8f
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ arm_netbsd_init_abi_common (struct gdbarch_info info,
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
tdep->lowest_pc = 0x8000;
switch (info.byte_order)
switch (info.byte_order_for_code)
{
case BFD_ENDIAN_LITTLE:
tdep->arm_breakpoint = arm_nbsd_arm_le_breakpoint;