* gdb.java/jprint.exp: XFAIL printing of static class members
authorKeith Seitz <keiths@redhat.com>
Thu, 25 Mar 2010 22:12:07 +0000 (22:12 +0000)
committerKeith Seitz <keiths@redhat.com>
Thu, 25 Mar 2010 22:12:07 +0000 (22:12 +0000)
  because of GCC debuginfo problem.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.java/jprint.exp

index 33652d13bdda56c21700e84924a3d6d53d6a2100..3ee9fb5fbe5f3eb2fd49aec7e8ef4d6a314942ad 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-25  Keith Seitz  <keiths@redhat.com>
+
+       * gdb.java/jprint.exp: XFAIL printing of static class members
+       because of GCC debuginfo problem.
+
 2010-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * gdb.base/dup-sect.exp, gdb.base/dup-sect.S: New.
index 447ca73495a3a6af345010d6ac3a08b8e34e258b..2e33af413e58f0a0f30474fde67ec8de3fc77b36 100644 (file)
@@ -86,5 +86,8 @@ if ![set_lang_java] then {
     gdb_test "call x.addk(44)" "adding k gives 121\r\n.*= 121.*" "inherited virtual fn call"
 
     # Regression test for a crasher.
+    # GCC does not output location information for static class members,
+    # so GDB will report these as "optimized out". See gcc/43260.
+    setup_xfail *-*-* gcc/43260
     gdb_test "print *jprint.props" " = .*" "print a java.util.Properties"
 }