This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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]

[RFA] Fix apparent typo in pc-fp.exp


I ran into a case where gdb was timing out in the get_valueofx proc,
resulting in an expect error:

  FAIL: gdb.base/pc-fp.exp: get value of $pc (timeout)
  ERROR: tcl error sourcing pc-fp.exp.
  ERROR: can't read "val": no such variable

This looks like the obvious fix to me; probably a simple typo that has
gone unnoticed/unexercised until now.

-Fred


2004-03-02  Fred Fish  <fnf@redhat.com>

	* gdb.base/pc-fp.exp (get_valueofx): Fix apparent typo to now set
	"val" instead of unused "size".

Index: gdb.base/pc-fp.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/pc-fp.exp,v
retrieving revision 1.1
diff -c -p -r1.1 pc-fp.exp
*** gdb.base/pc-fp.exp	25 Sep 2002 20:30:38 -0000	1.1
--- gdb.base/pc-fp.exp	2 Mar 2004 21:37:22 -0000
*************** proc get_valueofx { fmt exp default } {
*** 65,71 ****
  	    pass "get value of ${exp} ($val)"
  	}
  	timeout {
! 	    set size ${default}
  	    fail "get value of ${exp} (timeout)"
  	}
      }
--- 65,71 ----
  	    pass "get value of ${exp} ($val)"
  	}
  	timeout {
! 	    set val ${default}
  	    fail "get value of ${exp} (timeout)"
  	}
      }



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