]> Git Repo - binutils.git/commitdiff
* gdb.python: Add test for linespecs with commas.
authorKeith Seitz <[email protected]>
Fri, 30 Mar 2012 19:16:52 +0000 (19:16 +0000)
committerKeith Seitz <[email protected]>
Fri, 30 Mar 2012 19:16:52 +0000 (19:16 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/python.exp

index 2aa0493eb5451a4b61081162acf98fe6e891a116..daed6f0f4c75590a3b2f801c82ab558af194a832 100644 (file)
@@ -1,3 +1,7 @@
+2012-03-30  Keith Seitz  <[email protected]>
+
+       * gdb.python: Add test for linespecs with commas.
+
 2012-03-28  Keith Seitz  <[email protected]>
 
        * gdb.linespec/ls-dollar.cc: New file.
index 2708dcc663ccfe949533a32735b227f61f71d98f..7333e26e13697543f696b84fb966d0ef31f00234 100644 (file)
@@ -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"
This page took 0.086834 seconds and 4 git commands to generate.