aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-11-13 19:06:26 +0000
committerAndrew Cagney <cagney@redhat.com>2003-11-13 19:06:26 +0000
commita8cf2722eab033c833d822db6892038f570303ad (patch)
tree6d6ca21a62084f585e61f02afcf618140ed50528 /gdb/arch-utils.h
parent475b6ddd329a54a32907a55cf4f2efc9013f5973 (diff)
downloadgdb-a8cf2722eab033c833d822db6892038f570303ad.zip
gdb-a8cf2722eab033c833d822db6892038f570303ad.tar.gz
gdb-a8cf2722eab033c833d822db6892038f570303ad.tar.bz2
2003-11-13 Andrew Cagney <cagney@redhat.com>
* arch-utils.h (selected_architecture_name): Declare. (selected_byte_order): Declare. * arch-utils.c (selected_byte_order): New function. (selected_architecture_name): New function. (target_architecture_auto): Make static. (set_architecture_string): Make static. (target_byte_order): Make static. (target_byte_order_auto): Make static. * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete non-multi-arch definition. (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete. (target_byte_order, target_architecture): Delete declaration. (target_byte_order_auto, target_architecture_auto): Ditto. * gdbarch.h: Re-generate. * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and "selected_byte_order".
Diffstat (limited to 'gdb/arch-utils.h')
-rw-r--r--gdb/arch-utils.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h
index fbc7aa2..32fbc4d 100644
--- a/gdb/arch-utils.h
+++ b/gdb/arch-utils.h
@@ -149,9 +149,21 @@ extern int default_stabs_argument_has_addr (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);
+
/* Initialize a ``struct info''. Can't use memset(0) since some
- default values are not zero. */
+ default values are not zero. "fill" takes all available
+ information and fills in any unspecified fields. */
+
extern void gdbarch_info_init (struct gdbarch_info *info);
+extern void gdbarch_info_fill (struct gdbarch *gdbarch,
+ struct gdbarch_info *info);
/* Similar to init, but this time fill in the blanks. Information is
obtained from the specified architecture, global "set ..." options,