aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python
diff options
context:
space:
mode:
authorThiago Jung Bauermann <bauerman@br.ibm.com>2008-08-16 20:36:30 +0000
committerThiago Jung Bauermann <bauerman@br.ibm.com>2008-08-16 20:36:30 +0000
commit311a4e6b7b004617841f2a6c657e76dddd7d2249 (patch)
treeadd8ea8a0e51cfd11e91242ee3f46fa02b3931c1 /gdb/testsuite/gdb.python
parent24209737f058af510525de950de9620b3c5ecd90 (diff)
downloadgdb-311a4e6b7b004617841f2a6c657e76dddd7d2249.zip
gdb-311a4e6b7b004617841f2a6c657e76dddd7d2249.tar.gz
gdb-311a4e6b7b004617841f2a6c657e76dddd7d2249.tar.bz2
gdb/
2008-08-16 Vladimir Prus <vladimir@codesourcery.com> Thiago Jung Bauermann <bauerman@br.ibm.com> * cli-script.c (read_next_line): Add parse_commands argument. (recurse_read_control_structure): Adapt to new read_next_line signature. (read_command_lines): Add parse_commands argument. (define_command): Adapt to new read_command_lines signature. (document_command): Likewise. * breakpoint.c (commands_command): Likewise. * defs.h (read_command_lines): Adjust function prototype. testsuite/ 2008-08-16 Thiago Jung Bauermann <bauerman@br.ibm.com> * gdb.base/define.exp: Test indented command documentation. * gdb.python/python.exp: Test indented multi-line command.
Diffstat (limited to 'gdb/testsuite/gdb.python')
-rw-r--r--gdb/testsuite/gdb.python/python.exp7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp
index 44037f2..677f8d2 100644
--- a/gdb/testsuite/gdb.python/python.exp
+++ b/gdb/testsuite/gdb.python/python.exp
@@ -64,3 +64,10 @@ gdb_py_test_multiple "show python command" \
"end" "" \
"end" "" \
"show user zzq" "User command zzq:.* python.*print 23.* end"
+
+gdb_py_test_multiple "indented multi-line python command" \
+ "python" "" \
+ "def foo ():" "" \
+ " print 'hello, world!'" "" \
+ "foo ()" "" \
+ "end" "hello, world!"