* gdb.cp/overload.exp: Test that the filename portion of a linespec
authorKeith Seitz <keiths@redhat.com>
Thu, 4 Mar 2010 18:38:17 +0000 (18:38 +0000)
committerKeith Seitz <keiths@redhat.com>
Thu, 4 Mar 2010 18:38:17 +0000 (18:38 +0000)
can be quoted.  Test that both the filename and function/line
portions can be quoted at the same time.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/overload.exp

index 196791a..b5e4c98 100644 (file)
@@ -1,3 +1,9 @@
+2010-03-04  Keith Seitz  <keiths@redhat.com>
+
+       * gdb.cp/overload.exp: Test that the filename portion of a linespec
+       can be quoted.  Test that both the filename and function/line
+       portions can be quoted at the same time.
+
 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
 
        * gdb.base/watch-non-mem.c, gdb.base/watch-non-mem.exp: New.
index ae8fd26..c6d8bff 100644 (file)
@@ -299,6 +299,8 @@ gdb_test "list ${srcfile}:intToChar" "int intToChar.*"
 gdb_test "list ${srcfile}:intToChar(char)" "int intToChar.*"
 gdb_test "list ${srcfile}:'intToChar(char)'" "int intToChar.*"
 gdb_test "list '${srcfile}:intToChar(char)'" "int intToChar.*"
+gdb_test "list '${srcfile}':intToChar(char)" "int intToChar.*"
+gdb_test "list '${srcfile}':'intToChar(char)'" "int intToChar.*"
 
 # And with filename and namespace... which does not work.