Re-implement gdbach_dump() so that it prints out the macro values.

Add ``maint print arch'' command.
Add ``gdbarch_register()'' function that also takes gdbarch_dump_tdep().
Use in mips-tdep.c.
This commit is contained in:
Andrew Cagney
2000-06-10 05:37:47 +00:00
parent dee8b1a1c5
commit 4b9b395931
7 changed files with 1233 additions and 453 deletions

View File

@ -413,7 +413,7 @@ set_arch (const struct bfd_arch_info *arch,
break;
}
if (gdbarch_debug)
gdbarch_dump ();
gdbarch_dump (current_gdbarch, gdb_stdlog);
}
/* Set the architecture from arch/machine (deprecated) */
@ -564,7 +564,7 @@ set_gdbarch_from_file (abfd)
extern const bfd_arch_info_type DEFAULT_BFD_ARCH;
static const bfd_arch_info_type *default_bfd_arch = &DEFAULT_BFD_ARCH;
#else
static const bfd_arch_info_type *default_bfd_arch
static const bfd_arch_info_type *default_bfd_arch;
#endif
#ifdef DEFAULT_BFD_VEC