[5/5] fix test suite for MI output

Tom Tromey
2012-05-14T20:01:34Z

This is the final patch in the series.

Regression testing pointed out that the new setting changed MI varobj
output.

I'm not sure whether this is reasonable to do or not, so I pulled this
patch out separately.

It is not too hard to fix varobj to disable this new setting, if that is
preferable for some reason.

gdb/testsuite/gdb.mi/mi-var-cmd.exp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gdb/testsuite/gdb.mi/mi-var-cmd.exp b/gdb/testsuite/gdb.mi/mi-var-cmd.exp
index f3ee77a..cadff9f 100644
--- a/gdb/testsuite/gdb.mi/mi-var-cmd.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-cmd.exp
@@ -377,11 +377,11 @@ mi_gdb_test "-var-update *" \
"assign same value to func (update)"

mi_gdb_test "-var-create array_ptr * array_ptr" \
- "\\^done,name=\"array_ptr\",numchild=\"1\",value=\"$hex\",type=\"int \\*\",has_more=\"0\"" \
+ "\\^done,name=\"array_ptr\",numchild=\"1\",value=\"$hex <array>\",type=\"int \\*\",has_more=\"0\"" \
"create global variable array_ptr"

mi_gdb_test "-var-assign array_ptr array2" \
- "\\^done,value=\"$hex\"" \
+ "\\^done,value=\"$hex <array2>\"" \
"assign array to pointer"

mi_gdb_test "-var-update *" \
@@ -389,7 +389,7 @@ mi_gdb_test "-var-update *" \
"assign array to pointer (update)"

mi_gdb_test "-var-assign array_ptr array2" \
- "\\^done,value=\"$hex\"" \
+ "\\^done,value=\"$hex <array2>\"" \
"assign same array to pointer"

mi_gdb_test "-var-update *" \
--
1.7.7.6