This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix "-nx"


Hi,

Ever try running "-nx" option to insight/gdb? Doesn't work, does it? The
testsuite doesn't, either!

Turns out to be a simple goof. I've committed the following patch to fix
it.

Keith

ChangeLog
2002-08-01  Keith Seitz  <keiths@redhat.com>

        * library/prefs.tcl (pref_read): Don't suppress setting the default
        colors if the user has suppressed reading the preferences file.

Patch
Index: library/prefs.tcl
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/prefs.tcl,v
retrieving revision 1.17
diff -p -r1.17 prefs.tcl
*** library/prefs.tcl	7 Jun 2002 09:22:44 -0000	1.17
--- library/prefs.tcl	1 Aug 2002 17:56:05 -0000
*************** proc pref_read {} {
*** 139,147 ****
      # now set global options
      set gdb_ImageDir [file join $GDBTK_LIBRARY [pref get gdb/ImageDir]]

-     # finally set colors, from system if possible
-     pref_set_colors
    }
  }

  # ------------------------------------------------------------------
--- 139,148 ----
      # now set global options
      set gdb_ImageDir [file join $GDBTK_LIBRARY [pref get gdb/ImageDir]]

    }
+
+   # finally set colors, from system if possible
+   pref_set_colors
  }

  # ------------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]