This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]