aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-12-29 19:25:58 +0000
committerAndrew Cagney <cagney@redhat.com>2001-12-29 19:25:58 +0000
commit428721aaa3be621b3c63dc823dfbd993eb2bf942 (patch)
tree09705df9da87cb7f40c39bb714103f048238f95f /gdb/gdbarch.h
parent815ecd347616d4b1178452cb38548f964efefdd7 (diff)
downloadgdb-428721aaa3be621b3c63dc823dfbd993eb2bf942.zip
gdb-428721aaa3be621b3c63dc823dfbd993eb2bf942.tar.gz
gdb-428721aaa3be621b3c63dc823dfbd993eb2bf942.tar.bz2
* arch-utils.c (initialize_current_architecture): Test byte_order
against BFD_ENDIAN_UNKNOWN. (gdbarch_info_init): Initialize byte_order to BFD_ENDIAN_UNKNOWN. * gdbarch.sh: Update comments on default value of byte_order. (verify_gdbarch, gdbarch_update_p): Test byte_order against BFD_ENDIAN_UNKNOWN. * gdbarch.h, gdbarch.c: Re-generate.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r--gdb/gdbarch.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index 84e5c16..8cac8cb 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -2263,8 +2263,7 @@ extern struct gdbarch_tdep *gdbarch_tdep (struct gdbarch *gdbarch);
The INIT function parameter INFO shall, as far as possible, be
pre-initialized with information obtained from INFO.ABFD or
- previously selected architecture (if similar). INIT shall ensure
- that the INFO.BYTE_ORDER is non-zero.
+ previously selected architecture (if similar).
The INIT function shall return any of: NULL - indicating that it
doesn't recognize the selected architecture; an existing ``struct
@@ -2288,7 +2287,7 @@ struct gdbarch_info
/* Use default: NULL (ZERO). */
const struct bfd_arch_info *bfd_arch_info;
- /* Use default: 0 (ZERO). */
+ /* Use default: BFD_ENDIAN_UNKNOWN (NB: is not ZERO). */
int byte_order;
/* Use default: NULL (ZERO). */