diff options
Diffstat (limited to 'gdb/iq2000-tdep.c')
-rw-r--r-- | gdb/iq2000-tdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/iq2000-tdep.c b/gdb/iq2000-tdep.c index dd3ff80..cc18485 100644 --- a/gdb/iq2000-tdep.c +++ b/gdb/iq2000-tdep.c @@ -501,7 +501,8 @@ iq2000_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr) (long) *pcptr); *lenptr = 4; - return (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) ? big_breakpoint + return (gdbarch_byte_order (current_gdbarch) + == BFD_ENDIAN_BIG) ? big_breakpoint : little_breakpoint; } |