--- gdb-5.2/gdb/arm-linux-tdep.c.orig Mon Jul 15 20:28:30 2002 +++ gdb-5.2/gdb/arm-linux-tdep.c Mon Jul 15 20:31:24 2002 @@ -45,6 +45,8 @@ static const char arm_linux_arm_le_breakpoint[] = {0x01,0x00,0x9f,0xef}; +static const char arm_linux_arm_be_breakpoint[] = {0xef, 0x9f, 0x00, 0x01}; + /* CALL_DUMMY_WORDS: This sequence of words is the instructions @@ -723,7 +725,10 @@ struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); tdep->lowest_pc = 0x8000; - tdep->arm_breakpoint = arm_linux_arm_le_breakpoint; + if (info.byte_order == BFD_ENDIAN_BIG) + tdep->arm_breakpoint = arm_linux_arm_be_breakpoint; + else + tdep->arm_breakpoint = arm_linux_arm_le_breakpoint; tdep->arm_breakpoint_size = sizeof (arm_linux_arm_le_breakpoint); tdep->jb_pc = JB_PC;