summaryrefslogtreecommitdiff
path: root/gdb/arch-utils.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-02-26 20:13:18 +0000
committerDaniel Jacobowitz <drow@false.org>2007-02-26 20:13:18 +0000
commitb6d373df1e5729606ff51f3947dd636eab6738b6 (patch)
tree4d83417c0f10a898bcd98764e03cce86189447b1 /gdb/arch-utils.h
parentc74d0ad8276928d58b080ecd50eb5026aac49c5d (diff)
downloadbinutils-gdb-b6d373df1e5729606ff51f3947dd636eab6738b6.tar.gz
* arch-utils.c (selected_byte_order): New.
* arch-utils.h (selected_byte_order): New prototype. * remote-sim.c (gdbsim_open): Use selected_byte_order.
Diffstat (limited to 'gdb/arch-utils.h')
-rw-r--r--gdb/arch-utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h
index d995fcbe2f2..d528d67daf0 100644
--- a/gdb/arch-utils.h
+++ b/gdb/arch-utils.h
@@ -118,6 +118,10 @@ int default_remote_register_number (struct gdbarch *gdbarch,
extern int legacy_register_sim_regno (int regnum);
+/* Return the selected byte order, or BFD_ENDIAN_UNKNOWN if no byte
+ order was explicitly selected. */
+extern enum bfd_endian selected_byte_order (void);
+
/* Return the selected architecture's name, or NULL if no architecture
was explicitly selected. */
extern const char *selected_architecture_name (void);