summaryrefslogtreecommitdiff
path: root/gdb/arch-utils.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2006-11-10 19:20:37 +0000
committerDaniel Jacobowitz <dan@debian.org>2006-11-10 19:20:37 +0000
commit2aa6a4fbba3f60c0184f6fb6d8abb1d5f0e613fc (patch)
tree82ec53d4d5084abd2fbc4fc0736ab0b55a038f25 /gdb/arch-utils.h
parentc6630ee2d60697d35720a5a59fc41a0682b88e1d (diff)
downloadgdb-2aa6a4fbba3f60c0184f6fb6d8abb1d5f0e613fc.tar.gz
gdb/
* arch-utils.c (target_byte_order_user): Renamed from target_byte_order. (target_byte_order_auto, selected_byte_order): Removed. (show_endian): Check target_byte_order_user. (set_endian): Always update the architecture. Set target_byte_order_user after success. (target_architecture_auto): Removed. (target_architecture_user): New. (selected_architecture_name, show_architecture): Check it. (set_architecture): Set target_architecture_user after success. (gdbarch_from_bfd): Check the argument. (default_byte_order): New. (initialize_current_architecture): Set the global default architecture and endianness. (gdbarch_info_fill): Remove GDBARCH argument. Do not check the previous architecture. Use exec_bfd, global selected architecture and endianness, and global defaults. * arch-utils.h (selected_byte_order): Remove prototype. (gdbarch_info_fill): Update. * exec.c (exec_file_attach): Update the architecture after removing the current file. * gdbarch.sh: Update comments. (find_arch_by_info): Remove OLD_GDBARCH argument. Update call to gdbarch_info_fill. (gdbarch_find_by_info): Update call to find_arch_by_info. * gdbarch.h, gdbarch.c: Regenerated. * remote-sim.c (gdbsim_open): Use TARGET_BYTE_ORDER. gdb/doc/ * gdbint.texinfo (Target Architecture Definition): Add new Initializing a New Architecture section.
Diffstat (limited to 'gdb/arch-utils.h')
-rw-r--r--gdb/arch-utils.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h
index 533f5afabd4..1fec80f5881 100644
--- a/gdb/arch-utils.h
+++ b/gdb/arch-utils.h
@@ -126,10 +126,6 @@ extern int generic_instruction_nullified (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);
@@ -141,10 +137,9 @@ extern const char *selected_architecture_name (void);
extern void gdbarch_info_init (struct gdbarch_info *info);
/* Similar to init, but this time fill in the blanks. Information is
- obtained from the specified architecture, global "set ..." options,
- and explicitly initialized INFO fields. */
-extern void gdbarch_info_fill (struct gdbarch *gdbarch,
- struct gdbarch_info *info);
+ obtained from the global "set ..." options and explicitly
+ initialized INFO fields. */
+extern void gdbarch_info_fill (struct gdbarch_info *info);
/* Return the architecture for ABFD. If no suitable architecture
could be find, return NULL. */