OSDN Git Service

2002-12-17 Martin M. Hunt <hunt@redhat.com>
authorMartin Hunt <hunt@redhat.com>
Tue, 17 Dec 2002 20:29:12 +0000 (20:29 +0000)
committerMartin Hunt <hunt@redhat.com>
Tue, 17 Dec 2002 20:29:12 +0000 (20:29 +0000)
commit5301be4cd9b0c1571a3b6cb289e0e3b7a2a04fcb
tree923a1bd4c5f2410308ef84dc39b42c44216a534c
parentde9fc5150d3b76bc58bf8a6695cd9ce76bbde866
2002-12-17  Martin M. Hunt  <hunt@redhat.com>

* library/regwin.itb (_load_prefs): Get list of registers from
the group name.
(_build_win): Remove old menu system.  Replace with an optionmenu
that contains all the valid group names for this architecture.
(_layout_table): No need to update old menu.
(_but3): Add "Close" to popup menu.
(_delete_from_display): No need to update old menu.
(_display_all): Ditto.
(_post_menu): Deleted.
(_select_group): New method. Callback for group optionmenu.

* library/regwin.ith: New private variable _group.
New private method _select_group.  Removed _post_menu.

* generic/gdbtk-register.c: Include reggroups.h.
(gdb_register_info): Add "group" and "grouplist".
(gdb_regformat): Fix Tcl_WrongNumArgs call so it doesn't crash.
(gdb_reggrouplist): New function. Returns the names of the
register groups.
(gdb_reggroup): New function. Returns the register numbers of the
registers in a group.
gdb/gdbtk/ChangeLog
gdb/gdbtk/generic/gdbtk-register.c
gdb/gdbtk/library/regwin.itb
gdb/gdbtk/library/regwin.ith