diff options
author | Tom Tromey <tromey@redhat.com> | 2010-01-26 16:53:44 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-01-26 16:53:44 +0000 |
commit | 708ead4e0572e94084eb3f4f0254428d996e8ee3 (patch) | |
tree | 3c057abe6d1d29a78d3b01ca06671f9c6616a199 /gdb | |
parent | b14e635ec430d1a84fa9061bcd404ef76cf5bf11 (diff) | |
download | gdb-708ead4e0572e94084eb3f4f0254428d996e8ee3.zip gdb-708ead4e0572e94084eb3f4f0254428d996e8ee3.tar.gz gdb-708ead4e0572e94084eb3f4f0254428d996e8ee3.tar.bz2 |
gdb
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/eval.c | 2 | ||||
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/printcmds.exp | 1 |
4 files changed, 13 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f68b7a8..e891ecb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 @@ -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; diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c8e5c6e..667154d 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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. diff --git a/gdb/testsuite/gdb.base/printcmds.exp b/gdb/testsuite/gdb.base/printcmds.exp index 2f4b0cc..5598bde 100644 --- a/gdb/testsuite/gdb.base/printcmds.exp +++ b/gdb/testsuite/gdb.base/printcmds.exp @@ -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\"" } |