OSDN Git Service

2002-12-17 Martin M. Hunt <hunt@redhat.com>
authorhunt <hunt>
Tue, 17 Dec 2002 20:29:11 +0000 (20:29 +0000)
committerhunt <hunt>
Tue, 17 Dec 2002 20:29:11 +0000 (20:29 +0000)
commit20295859849042a790d06e7b8793efe6c37486ef
tree051b52001ceb626345ec3fd25cc71beaea1dcbb8
parentaac7226ee0abb3eb40a7523108245b51ff5f4626
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