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:
parent
6694ef2dff
commit
41f1cccf8f
|
@ -43,7 +43,7 @@ arm_netbsd_init_abi_common (struct gdbarch_info info,
|
||||||
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
|
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
|
||||||
|
|
||||||
tdep->lowest_pc = 0x8000;
|
tdep->lowest_pc = 0x8000;
|
||||||
switch (info.byte_order)
|
switch (info.byte_order_for_code)
|
||||||
{
|
{
|
||||||
case BFD_ENDIAN_LITTLE:
|
case BFD_ENDIAN_LITTLE:
|
||||||
tdep->arm_breakpoint = arm_nbsd_arm_le_breakpoint;
|
tdep->arm_breakpoint = arm_nbsd_arm_le_breakpoint;
|
||||||
|
|
Loading…
Reference in New Issue