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]

[RFC/testsuite] Update "info float" output for i386


I'm still in testsuite maintenance mode, for a little while longer.  I'm on
the home stretch for GCC 2.95.3 + stabs; as soon as I finish, I'll do my
monthly apt-get dist-upgrade, the default compiler on my Debian machine will
change to GCC 3.2 + DWARF-2, and I'll be right back where I started at
dozens of failures.  But I'll have a tremendous sense of accomplishment!

Some time ago Mark Kettenis updated i387-tdep.c to use frame_register_read
for "info float".  This changed the result of "info float" with no running
program; I think for the better, and so did he, if I recall rightly.  Can
anyone think of a reason not to update the testsuite correspondingly, as
with the attached patch?

For reference, the old output was a zeroed register dump; the new is "The
program has no registers now."  Which is quite entirely accurate.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

2003-01-13  Daniel Jacobowitz  <drow@mvista.com>

	* gdb.base/default.exp (info float): Update expected output for
	i386.

Index: gdb.base/default.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/default.exp,v
retrieving revision 1.14
diff -u -p -r1.14 default.exp
--- gdb.base/default.exp	18 Oct 2002 18:54:55 -0000	1.14
+++ gdb.base/default.exp	14 Jan 2003 04:10:46 -0000
@@ -1,5 +1,5 @@
 #   Copyright 1988, 1990, 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999,
-#   2000, 2001, 2002
+#   2000, 2001, 2002, 2003
 #   Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
@@ -325,7 +325,7 @@ if { [istarget "arm*-*-*"] || \
 	[istarget "strongarm*-*-*"] } then {
     gdb_test "info float" "Software FPU type.*mask:.*flags:.*" "info float"
 } elseif [istarget "i\[3456\]86-*-*"] then {
-    gdb_test "info float" "R7:.*Status Word:.*Opcode:.*" "info float"
+    gdb_test "info float" "The program has no registers now." "info float"
 } else {
     gdb_test "info float" "No floating.point info available for this processor." "info float"
 }


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