2001-10-29 Orjan Friberg <orjanf@axis.com>
authorOrjan Friberg <orjanf@axis.com>
Mon, 29 Oct 2001 16:24:35 +0000 (16:24 +0000)
committerOrjan Friberg <orjanf@axis.com>
Mon, 29 Oct 2001 16:24:35 +0000 (16:24 +0000)
* gdb.base/setvar.exp: Escape curly braces.
* gdb.stabs/weird.exp: Ditto.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/setvar.exp
gdb/testsuite/gdb.stabs/weird.exp

index 3d62eeb30ec71b414cfc1c0bf52b4a26d2b5cee5..d0251e5668bace6e277b3ef876f14409e3c3ac68 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-29  Orjan Friberg  <orjanf@axis.com>
+
+       * gdb.base/setvar.exp: Escape curly braces.
+       * gdb.stabs/weird.exp: Ditto.
+
 2001-10-27  Daniel Jacobowitz  <drow@mvista.com>
 
        * gdb.mi/mi-hack-cli.exp: Remove excess newlines from test strings.
index b418d6ab4793ab5e824e90c0c024983987d64f0c..259700a65494a19c4edcf8e06b5efba1d77366b1 100644 (file)
@@ -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}
index 3bfee49ce03e0ca71c92bee2dfac483309f1fb0b..0e5d52218a7dcfe634dd2d2a56513830d0f368c6 100644 (file)
@@ -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" \