This is the mail archive of the
insight@sourceware.cygnus.com
mailing list for the Insight project.
RFC/RFA: Save Preferences (on Registers window)?
- To: insight at sourceware dot cygnus dot com
- Subject: RFC/RFA: Save Preferences (on Registers window)?
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Thu, 08 Jun 2000 19:46:15 +0000
- Organization: Cygnus Solutions (a Red Hat company) - Toronto
If for some reason your Registers windows do not get closed properly,
all your settings are lost.
Yes, I know, it should never happen... But lets be pragmatic, it does
happen sometimes. And I hate when I have to get everything the way I like
again.
There is a trick, which is close and reopen the register window, that I do
often, so often that I would like to have a menu entry "Save Preferences"
in the Register menu.
Here is the patch.
--
Fernando Nasser
Cygnus Solutions (a Red Hat company) E-Mail: fnasser@cygnus.com
2323 Yonge Street, Suite #300 Tel: 416-482-2661 ext. 311
Toronto, Ontario M4P 2C9 Fax: 416-482-6299
Index: regwin.itb
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/gdbtk/library/regwin.itb,v
retrieving revision 1.3.8.1
diff -c -p -r1.3.8.1 regwin.itb
*** regwin.itb 2000/06/08 19:18:14 1.3.8.1
--- regwin.itb 2000/06/08 19:21:29
*************** body RegWin::build_win {} {
*** 192,197 ****
--- 192,199 ----
$m add command -label "Display All Registers" -underline 0 -state disabled \
-command "$this display_all"
set disp_all_menu_item [$m index last]
+ $m add command -label "Save Preferences" -underline 0 -state normal \
+ -command "RegWin::save_reg_display_vars"
if {!$all_regs_shown} {
$m entryconfigure $disp_all_menu_item -state normal