aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-12-23 02:13:37 +0000
committerAndrew Cagney <cagney@redhat.com>1998-12-23 02:13:37 +0000
commit30ce5223b84d5e16765fde766f0214b6541ec54f (patch)
tree2b907bcb8d741ab29354db32494d6878b50d2be1 /gdb/defs.h
parent83e2dcc0143617fba9da0d3c134c8f5675f36499 (diff)
downloadgdb-30ce5223b84d5e16765fde766f0214b6541ec54f.zip
gdb-30ce5223b84d5e16765fde766f0214b6541ec54f.tar.gz
gdb-30ce5223b84d5e16765fde766f0214b6541ec54f.tar.bz2
* defs.h (TARGET_FLOAT_FORMAT, TARGET_DOUBLE_FORMAT): Define using
TARGET_BYTE_ORDER and not target_byte_order.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h70
1 files changed, 5 insertions, 65 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 1c3e804..2d87f96 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -778,51 +778,11 @@ extern void free ();
#define LITTLE_ENDIAN 1234
#endif
-/* Target-system-dependent parameters for GDB. */
-
-/* TARGET_BYTE_ORDER_SELECTABLE_P determines if the target endianness
- is selectable at runtime. The user can use the `set endian'
- command to change it. TARGET_BYTE_ORDER_AUTO is nonzero when
- target_byte_order should be auto-detected (from the program image
- say). */
-
-#ifndef TARGET_BYTE_ORDER_SELECTABLE_P
-/* compat - Catch old targets that define TARGET_BYTE_ORDER_SLECTABLE
- when they should have defined TARGET_BYTE_ORDER_SELECTABLE_P 1 */
-#ifdef TARGET_BYTE_ORDER_SELECTABLE
-#define TARGET_BYTE_ORDER_SELECTABLE_P 1
-#else
-#define TARGET_BYTE_ORDER_SELECTABLE_P 0
-#endif
-#endif
-
-extern int target_byte_order;
-#ifdef TARGET_BYTE_ORDER_SELECTABLE
-/* compat - Catch old targets that define TARGET_BYTE_ORDER_SELECTABLE
- and expect defs.h to re-define TARGET_BYTE_ORDER. */
-#undef TARGET_BYTE_ORDER
-#endif
-#ifndef TARGET_BYTE_ORDER
-#define TARGET_BYTE_ORDER (target_byte_order + 0)
-#endif
-
-extern int target_byte_order_auto;
-#ifndef TARGET_BYTE_ORDER_AUTO
-#define TARGET_BYTE_ORDER_AUTO (target_byte_order_auto + 0)
-#endif
+/* Dynamic target-system-dependent parameters for GDB. */
-extern void set_endian_from_file PARAMS ((bfd *));
+#include "gdbarch.h"
-/* The target architecture can be set at run-time. */
-extern int target_architecture_auto;
-extern const bfd_arch_info_type *target_architecture;
-#define TARGET_ARCHITECTURE_AUTO (target_architecture_auto + 0)
-#define TARGET_ARCHITECTURE (target_architecture + 0)
-extern void set_architecture_from_file PARAMS ((bfd *));
-/* Notify target of a change to the selected architecture. Zero return
- status indicates that the target did not like the change. */
-extern int (*target_architecture_hook) PARAMS ((const bfd_arch_info_type *ap));
-extern void set_architecture_from_arch_mach PARAMS ((enum bfd_architecture arch, unsigned long mach));
+/* Static target-system-dependent parameters for GDB. */
/* Number of bits in a char or unsigned char for the target machine.
Just like CHAR_BIT in <limits.h> but describes the target machine. */
@@ -938,12 +898,12 @@ extern const struct floatformat floatformat_unknown;
#endif
#ifndef TARGET_FLOAT_FORMAT
-#define TARGET_FLOAT_FORMAT (target_byte_order == BIG_ENDIAN \
+#define TARGET_FLOAT_FORMAT (TARGET_BYTE_ORDER == BIG_ENDIAN \
? &floatformat_ieee_single_big \
: &floatformat_ieee_single_little)
#endif
#ifndef TARGET_DOUBLE_FORMAT
-#define TARGET_DOUBLE_FORMAT (target_byte_order == BIG_ENDIAN \
+#define TARGET_DOUBLE_FORMAT (TARGET_BYTE_ORDER == BIG_ENDIAN \
? &floatformat_ieee_double_big \
: &floatformat_ieee_double_little)
#endif
@@ -1013,26 +973,6 @@ extern CORE_ADDR push_word PARAMS ((CORE_ADDR, ULONGEST));
extern int watchdog;
#endif
-#include "dis-asm.h" /* Get defs for disassemble_info */
-
-extern int dis_asm_read_memory PARAMS ((bfd_vma memaddr, bfd_byte *myaddr,
- int len, disassemble_info *info));
-
-extern void dis_asm_memory_error PARAMS ((int status, bfd_vma memaddr,
- disassemble_info *info));
-
-extern void dis_asm_print_address PARAMS ((bfd_vma addr,
- disassemble_info *info));
-
-extern int (*tm_print_insn) PARAMS ((bfd_vma, disassemble_info*));
-extern disassemble_info tm_print_insn_info;
-#ifndef TARGET_PRINT_INSN
-#define TARGET_PRINT_INSN(vma, info) (*tm_print_insn) (vma, info)
-#endif
-#ifndef TARGET_PRINT_INSN_INFO
-#define TARGET_PRINT_INSN_INFO (&tm_print_insn_info)
-#endif
-
/* Hooks for alternate command interfaces. */
#ifdef __STDC__