gdb
authorTom Tromey <tromey@redhat.com>
Tue, 26 Jan 2010 16:53:44 +0000 (16:53 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 26 Jan 2010 16:53:44 +0000 (16:53 +0000)
PR exp/7643:
* eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
coerce_array on result.
gdb/testsuite
PR exp/7643:
* gdb.base/printcmds.exp (test_print_string_constants): Remove
setup_kfail.

gdb/ChangeLog
gdb/eval.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/printcmds.exp

index f68b7a8be45e430dc140d51d2a386ebd4075f89d..e891ecb2b1d82da887a761f4f5a1311186f2d224 100644 (file)
@@ -1,3 +1,9 @@
+2010-01-26  Tom Tromey  <tromey@redhat.com>
+
+       PR exp/7643:
+       * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
+       coerce_array on result.
+
 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
 
        * cp-namespace.c (cp_lookup_symbol_namespace): Added
index 27b78956465adfd797928f90295abebd24d1a02f..a0556cf90cbcf4e6d371594f939abe28e43636a4 100644 (file)
@@ -2629,7 +2629,7 @@ evaluate_subexp_for_address (struct expression *exp, int *pos,
          goto default_case_after_eval;
        }
 
-      return x;
+      return coerce_array (x);
 
     case UNOP_MEMVAL:
       (*pos) += 3;
index c8e5c6e47ba7cf380b429f8de485a5bbfc984249..667154d4e141b90cdb8ae885343257877cc11fd1 100644 (file)
@@ -1,3 +1,9 @@
+2010-01-26  Tom Tromey  <tromey@redhat.com>
+
+       PR exp/7643:
+       * gdb.base/printcmds.exp (test_print_string_constants): Remove
+       setup_kfail.
+
 2010-01-14  Sami Wagiaalla  <swagiaal@redhat.com>
 
        * gdb.cp/nsrecurs.exp: New test.
index 2f4b0cce0dcd6baf8ed8f96969cdbe1b605f3e2c..5598bde2a9d71beae8d1ff7a6bfce7b9836abc66 100644 (file)
@@ -647,7 +647,6 @@ proc test_print_string_constants {} {
     gdb_test "p *\"foo\""              " = 102 'f'"
     gdb_test "ptype *\"foo\""          " = char"
     gdb_test "p &*\"foo\""             " = \"foo\""
-    setup_kfail "gdb/538" *-*-*
     gdb_test "ptype &*\"foo\"" "type = char \\*"
     gdb_test "p (char *)\"foo\""       " = \"foo\""
 }