summaryrefslogtreecommitdiff
path: root/gdb/arch-utils.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2007-02-26 20:13:18 +0000
committerDaniel Jacobowitz <dan@debian.org>2007-02-26 20:13:18 +0000
commit3e0a6a46ab38c51fd1d0db4430db7bea6088b481 (patch)
tree5b9156c15a9d36969ff166c348cd2a1d7b81505d /gdb/arch-utils.h
parent9499080e34b9df64877bf934b1c7e19d6cb1945e (diff)
downloadgdb-3e0a6a46ab38c51fd1d0db4430db7bea6088b481.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);