aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-12-16 01:17:50 +0000
committerAndrew Cagney <cagney@redhat.com>1998-12-16 01:17:50 +0000
commit5036d102ed967ae8fae10e2a659bcac99ec51a76 (patch)
tree88378879c4267cedf8a495ad14c60e98b63a7e96 /gdb/gdbarch.h
parent48aed924816c08111e5d67943199c1ac29d5e859 (diff)
downloadgdb-5036d102ed967ae8fae10e2a659bcac99ec51a76.zip
gdb-5036d102ed967ae8fae10e2a659bcac99ec51a76.tar.gz
gdb-5036d102ed967ae8fae10e2a659bcac99ec51a76.tar.bz2
* gdbarch.c (show_architecture): Use TARGET_ARCHITECTURE.
* gdbarch.h, gdbarch.c: Fix typo's. Use struct's in preference to types. * gdbarch.h, gdbarch.c (gdbarch_debug): Add ``set archdebug'' to command set.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r--gdb/gdbarch.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index 1c93bb3..098db4c 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define GDBARCH_H
-/* The target-system-dependant byte order is dynmaic */
+/* The target-system-dependant byte order is dynamic */
/* TARGET_BYTE_ORDER_SELECTABLE_P determines if the target endianness
is selectable at runtime. The user can use the `set endian'
@@ -59,16 +59,20 @@ extern int target_byte_order_auto;
/* The target-system-dependant BFD architecture is dynamic */
extern int target_architecture_auto;
+#ifndef TARGET_ARCHITECTURE_AUTO
#define TARGET_ARCHITECTURE_AUTO (target_architecture_auto + 0)
+#endif
-extern const bfd_arch_info_type *target_architecture;
+extern const struct bfd_arch_info *target_architecture;
+#ifndef TARGET_ARCHITECTURE
#define TARGET_ARCHITECTURE (target_architecture + 0)
+#endif
/* Notify the target dependant backend of a change to the selected
architecture. A zero return status indicates that the target did
not like the change. */
-extern int (*target_architecture_hook) PARAMS ((const bfd_arch_info_type *));
+extern int (*target_architecture_hook) PARAMS ((const struct bfd_arch_info *));
@@ -101,9 +105,14 @@ extern disassemble_info tm_print_insn_info;
extern void set_gdbarch_from_file PARAMS ((bfd *));
+
/* Explicitly set the dynamic target-system-dependant parameters based
on bfd_architecture and machine. */
extern void set_architecture_from_arch_mach PARAMS ((enum bfd_architecture, unsigned long));
+
+/* gdbarch trace variable */
+extern int gdbarch_debug;
+
#endif