[patch][python] 4 of 5 - Frame filter testsuite changes

Tom Tromey tromey@redhat.com
Wed Dec 5 17:32:00 GMT 2012


>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:

Phil> +set testfile "py-framefilter"
Phil> +set srcfile ${testfile}.c
Phil> +set binfile ${objdir}/${subdir}/${testfile}

standard_testfile

Phil> +# We cannot use prepare_for_testing as we have to set the safe-patch
Phil> +# to check objfile and progspace printers.
Phil> +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {

You can still use build_executable though.

Phil> +# Make the -gdb.py script available to gdb, it is automagically loaded by gdb.
Phil> +# Care is taken to put it in the same directory as the binary so that
Phil> +# gdb will find it.
Phil> +set remote_obj_python_file [remote_download host ${srcdir}/${subdir}/${testfile}-gdb.py.in ${subdir}/${testfile}-gdb.py]

Line should be split.

Phil> +gdb_test_no_output "set auto-load safe-path ${remote_obj_python_file}" "set auto-load safe-path"

Likewise.

Phil> +if ![runto_main ] then {

Extra space.

Phil> +set remote_python_file [remote_download host ${srcdir}/${subdir}/${testfile}.py]

Split.

Tom



More information about the Gdb-patches mailing list