+2009-04-27 Tom Tromey <tromey@redhat.com>
+
+ * c-exp.y (yylex): Handle '[' and ']' like '(' and ')'.
+
2009-04-27 Jerome Guitton <guitton@adacore.com>
* symtab.c (append_exact_match_to_sals): New function, extracted
+2009-04-27 Tom Tromey <tromey@redhat.com>
+
+ * gdb.base/printcmds.exp (test_printf): Test comma operator in [].
+
2009-04-27 Doug Evans <dje@google.com>
* gdb.threads/watchthreads.c (main): Initialize args before starting
gdb_test "printf \"x=%d,y=%f,z=%d\\n\", 5, 6.0, 7" "x=5,y=6\.0+,z=7"
gdb_test "printf \"%x %f, %c %x, %x, %f\\n\", 0xbad, -99.541, 'z',\
0xfeedface, 0xdeadbeef, 5.0" "bad -99.54\[0-9\]+, z feedface, deadbeef, 5.0+"
+
+ # Regression test for C lexer bug.
+ gdb_test "printf \"%c\\n\", \"x\"\[1,0\]" "x"
}
#Test printing DFP values with printf