Implement specification of MI tests as comments
authorVladimir Prus <vladimir@codesourcery.com>
Thu, 4 Jan 2007 20:12:15 +0000 (20:12 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Thu, 4 Jan 2007 20:12:15 +0000 (20:12 +0000)
commit2d0720d988230d947d5eee9245a7d2fc3f0eeb0a
tree71bb59981f532d851c6f809519a8c477663ecd4d
parenta028a6f5344b31f555a14d6769b61e6871317475
Implement specification of MI tests as comments
in C and C++ sources.
* lib/mi-support.exp (mi_autotest_data): New variable.
(mi_autotest_source): New variable.
(count_newlines, mi_prepare_inline_tests)
(mi_get_inline_test, mi_continue_to_line)
(mi_run_inline_test, mi_tbreak)
(mi_send_resuming_command, mi_wait_for_stop): New functions.
* gdb.mi/mi-var-cp.exp: Move most content to the C file.
Run inline tests.
* gdb.mi/mi-var-cp.cc: Define tests here.
gdb/ChangeLog
gdb/testsuite/gdb.mi/mi-var-cp.cc
gdb/testsuite/gdb.mi/mi-var-cp.exp
gdb/testsuite/lib/mi-support.exp