diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-08-28 10:20:21 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-08-28 10:20:21 +0000 |
commit | d0aba53f38a67ebccc29d691e878ff324bd4de14 (patch) | |
tree | c6bd2dea594fb2e5968c2f7606b2b4c0f02b11a4 /gdb/defs.h | |
parent | f40d28bfc07c793f413cf7523a1f93385f546d95 (diff) | |
download | gdb-d0aba53f38a67ebccc29d691e878ff324bd4de14.zip gdb-d0aba53f38a67ebccc29d691e878ff324bd4de14.tar.gz gdb-d0aba53f38a67ebccc29d691e878ff324bd4de14.tar.bz2 |
New commands ``set architecture'', ``show architecture'' and ``info
architecture''. Update SH target to use new target_architecture_hook.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -764,6 +764,15 @@ extern int target_byte_order_auto; extern void set_endian_from_file PARAMS ((bfd *)); +/* The target architecture can be set at run-time. */ +extern int target_architecture_auto; +extern const bfd_arch_info_type *target_architecture; +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 PARAMS ((char *arg, int from_tty)); + /* 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. */ #if !defined (TARGET_CHAR_BIT) |