+2007-06-27 Keith Seitz <keiths@redhat.com>
+
+ * generic/gdbtk-register.c (Gdbtk_Register_Init): Remove
+ calls to deprecated_register_gdbarch_swap.
+ Add "gdb_reg_arch_changed" command.
+ * library/regwin.itb (arch_changed): Call gdb_reg_arch_changed.
+
2007-06-21 Maciej W. Rozycki <macro@mips.com>
* generic/gdbtk-cmds.c (gdbtk_load_asm): Update the call to
# Register display window for Insight.
-# Copyright (C) 1998, 1999, 2001, 2002, 2003, 2004 Red Hat, Inc.
+# Copyright (C) 1998, 1999, 2001, 2002, 2003, 2004, 2007 Red Hat, Inc.
#
# Written by Keith Seitz (keiths@redhat.com)
# and Martin Hunt (hunt@redhat.com)
# ------------------------------------------------------------------
itcl::body RegWin::arch_changed {event} {
- # When the arch changes, gdb will callback into gdbtk-register.c
- # to swap out the old register set, so we need only redraw the
- # window, updating the register names and numbers.
+ # Update internal register caches
+ gdb_reg_arch_changed
+
+ # Relayout the table
_layout_table
# Clear gdb's change list