aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/list.exp
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2010-02-16 20:51:51 +0000
committerDaniel Jacobowitz <drow@false.org>2010-02-16 20:51:51 +0000
commit791dfb6488c972e2352ff5c3b4aa5659ce476136 (patch)
tree8df2dc07b5461cf5d0868edfe205d1538e5e695f /gdb/testsuite/gdb.base/list.exp
parent14d1346bd3b6fc51d1144d2060ee1e6822341c5d (diff)
downloadgdb-791dfb6488c972e2352ff5c3b4aa5659ce476136.zip
gdb-791dfb6488c972e2352ff5c3b4aa5659ce476136.tar.gz
gdb-791dfb6488c972e2352ff5c3b4aa5659ce476136.tar.bz2
gdb/
* linespec.c (decode_line_1): Handle FILE:FUNCTION even if FUNCTION contains parentheses. Improve removal of a trailing single quote. gdb/testsuite/ * gdb.base/list.exp (test_list_filename_and_function): Add test with single quotes. * gdb.cp/overload.cc (intToChar): Rewrite onto one line for easy matching. * gdb.cp/overload.exp: Add tests with filename, function, and quotes. Add KFAIL'd tests for PR gdb/11289.
Diffstat (limited to 'gdb/testsuite/gdb.base/list.exp')
-rw-r--r--gdb/testsuite/gdb.base/list.exp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/list.exp b/gdb/testsuite/gdb.base/list.exp
index ba3e637..11804c8 100644
--- a/gdb/testsuite/gdb.base/list.exp
+++ b/gdb/testsuite/gdb.base/list.exp
@@ -473,6 +473,9 @@ proc test_list_filename_and_function {} {
pass "list filename:function ($testcnt tests)"
+ # Test with quoting.
+ gdb_test "list 'list0.c:main'" "int main.*"
+
# Test some invalid specs
# The following test takes the FIXME result on most systems using
# DWARF. It fails to notice that main() is not in the file requested.