summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2002-01-14 04:31:35 +0000
committerMichael Chastain <mec@google.com>2002-01-14 04:31:35 +0000
commit85ccb283e68848b52c2db3c867021fa107bd7559 (patch)
tree2c26df6f595d635581f7cdf6d8840559bccb9fb3
parentc3cb6918717c3fdf5d56a9ba9feecb34008fe308 (diff)
downloadbinutils-gdb-85ccb283e68848b52c2db3c867021fa107bd7559.tar.gz
Ported from mainline by Michael Chastain <mec@shout.net>
2001-10-29 Orjan Friberg <orjanf@axis.com> * gdb.base/setvar.exp: Escape curly braces. * gdb.stabs/weird.exp: Ditto.
-rw-r--r--gdb/testsuite/gdb.base/setvar.exp4
-rw-r--r--gdb/testsuite/gdb.stabs/weird.exp4
2 files changed, 4 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/setvar.exp b/gdb/testsuite/gdb.base/setvar.exp
index b418d6ab479..259700a6549 100644
--- a/gdb/testsuite/gdb.base/setvar.exp
+++ b/gdb/testsuite/gdb.base/setvar.exp
@@ -320,7 +320,7 @@ test_set "set v_short_pointer=v_short_array" "set variable *(v_short_pointer)=12
gdb_test "set v_signed_short_pointer=v_signed_short_array" ""
gdb_test "set variable *(v_signed_short_pointer)=123" ""
gdb_test "set variable *(v_signed_short_pointer+1)=-456" ""
-gdb_test "print v_signed_short_array" ".\[0-9\]* =.*\{123,.*-456\}" \
+gdb_test "print v_signed_short_array" ".\[0-9\]* =.*\\{123,.*-456\\}" \
"set variable signed short pointer"
gdb_test "print *(v_signed_short_pointer+1)" ".\[0-9\]*.*=.*-456"
#
@@ -331,7 +331,7 @@ gdb_test "set variable *(v_unsigned_short_pointer)=123" ""
gdb_test "set variable *(v_unsigned_short_pointer+1)=-456" ""
# DTS 10060CLLbs - bad type info from cc
if {$hp_cc_compiler} {setup_xfail hppa*-*-*11* 10060CLLbs}
-gdb_test "print v_unsigned_short_array" ".\[0-9\]* =.*\{123,.*65080\}" \
+gdb_test "print v_unsigned_short_array" ".\[0-9\]* =.*\\{123,.*65080\\}" \
"set variable unsigned short pointer"
# DTS 10060CLLbs - bad type info from cc
if {$hp_cc_compiler} {setup_xfail hppa*-*-*11* 10060CLLbs}
diff --git a/gdb/testsuite/gdb.stabs/weird.exp b/gdb/testsuite/gdb.stabs/weird.exp
index 5001c7ed104..fdf6cb5795b 100644
--- a/gdb/testsuite/gdb.stabs/weird.exp
+++ b/gdb/testsuite/gdb.stabs/weird.exp
@@ -170,9 +170,9 @@ field3 = 0x77888877\}" "print struct constant"
# GDB does not yet support arrays indexed by anything at all unusual
setup_xfail "*-*-*"
- gdb_test "p array0" " = \{42, 43, 44, 45, 46, 47\}" "array0 with strange index"
+ gdb_test "p array0" " = \\{42, 43, 44, 45, 46, 47\\}" "array0 with strange index"
setup_xfail "*-*-*"
- gdb_test "p array1" " = \{42, 43, 44\}" "array1 with strange index"
+ gdb_test "p array1" " = \\{42, 43, 44\\}" "array1 with strange index"
# GDB does not yet support this feature
gdb_test "whatis one_var" "type = inttype_one" \