ARM BE8 support.
authorStan Shebs <shebs@codesourcery.com>
Mon, 11 Aug 2008 19:00:25 +0000 (19:00 +0000)
committerStan Shebs <shebs@codesourcery.com>
Mon, 11 Aug 2008 19:00:25 +0000 (19:00 +0000)
commit9d4fde7506bd543f837946511c7adf055148ff23
treeaadbf5e5a3f675f7d25a6ff8ac9ce7e08c9deb13
parent90aecf7a80c1cefeb45fc10a6cd02c8338e34b4c
ARM BE8 support.
* disasm.c (gdb_disassemble_info): Set endian_code.
* gdbarch.sh (gdbarch_info): New field byte_order_for_code.
* gdbarch.h, gdbarch.c: Regenerate.
* arch-utils.c (initialize_current_architecture): Set the
default byte_order_for_code.
(gdbarch_info_init): Ditto.
(gdbarch_info_fill): Ditto.
* arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
(thumb_analyze_prologue): Swap halfword if code endianness is
different from general endianness.
(arm_skip_prologue): Similarly.
(arm_scan_prologue): Ditto.
(thumb_get_next_pc): Ditto.
(arm_get_next_pc): Ditto.
(arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
choose correct endianness for breakpoints.
gdb/ChangeLog
gdb/arch-utils.c
gdb/arm-tdep.c
gdb/disasm.c
gdb/gdbarch.c
gdb/gdbarch.h
gdb/gdbarch.sh