public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Patch: Fix .gdbtkinit reading
@ 2001-08-21 14:39 Tom Tromey
  2001-08-22 11:38 ` Keith Seitz
  0 siblings, 1 reply; 6+ messages in thread
From: Tom Tromey @ 2001-08-21 14:39 UTC (permalink / raw)
  To: Insight List

Currently Insight tries to encode preference values which include `='.
Unfortunately due to a small bug Insight doesn't properly re-read such
values.

I found this while trying to use a saved session.  I tested the
appended patch on that session.  Ok to commit?

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* library/prefs.tcl (pref_read): Version number appears in
	comment.

Index: library/prefs.tcl
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/prefs.tcl,v
retrieving revision 1.11
diff -u -r1.11 prefs.tcl
--- library/prefs.tcl 2001/08/09 20:43:54 1.11
+++ library/prefs.tcl 2001/08/21 21:39:37
@@ -78,7 +78,8 @@
 	  {^[ \t\n]*#.*} {
 	    # Comment.  We recognize one magic comment that includes
 	    # the version number.
-	    if {[regexp -- "^GDBtkInitVersion: (\[0-9\]+)\$" $line v]} {
+	    if {[regexp -- "^# GDBtkInitVersion: (\[0-9\]+)\$" $line \
+		   dummy v]} {
 	      set version $v
 	    }
 	  }

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-08-22 15:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-21 14:39 Patch: Fix .gdbtkinit reading Tom Tromey
2001-08-22 11:38 ` Keith Seitz
2001-08-22 11:43   ` Tom Tromey
2001-08-22 12:01     ` Keith Seitz
2001-08-22 14:11   ` Tom Tromey
2001-08-22 15:26     ` Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).