diff options
author | Keith Seitz <keiths@redhat.com> | 2012-03-30 19:16:52 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2012-03-30 19:16:52 +0000 |
commit | f87a302320198a6e616d5c64b8cb377236ed38df (patch) | |
tree | aef7a14eb4f186f83c8faa7380cc8e405d427fcb /gdb/testsuite | |
parent | a7e28bbe634e0e6d99570554f85d2306b52bb345 (diff) | |
download | gdb-f87a302320198a6e616d5c64b8cb377236ed38df.zip gdb-f87a302320198a6e616d5c64b8cb377236ed38df.tar.gz gdb-f87a302320198a6e616d5c64b8cb377236ed38df.tar.bz2 |
* gdb.python: Add test for linespecs with commas.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/python.exp | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 2aa0493..daed6f0 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-03-30 Keith Seitz <keiths@redhat.com> + + * gdb.python: Add test for linespecs with commas. + 2012-03-28 Keith Seitz <keiths@redhat.com> * gdb.linespec/ls-dollar.cc: New file. diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp index 2708dcc..7333e26 100644 --- a/gdb/testsuite/gdb.python/python.exp +++ b/gdb/testsuite/gdb.python/python.exp @@ -182,6 +182,9 @@ gdb_test "python print len(symtab)" "2" "Test decode_line func1 length" gdb_test "python print len(symtab\[1\])" "1" "Test decode_line func1 length" gdb_test "python print symtab\[1\]\[0\].symtab" ".*gdb.python/python-1.c.*" "Test decode_line func1 filename" gdb_test "python print symtab\[1\]\[0\].line" "19" "Test decode_line func1 line number" +gdb_py_test_silent_cmd {python symtab = gdb.decode_line ("func1,func2")} \ + "test decode_line func1,func2" 1 +gdb_test {python print symtab[0]} ",func2" "stop at comma in linespec" # gdb.write gdb_test "python print sys.stderr" ".*__main__.GdbOutputErrorFile instance at.*" "Test stderr location" |