This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch][python] 4 of 5 - Frame filter testsuite changes
- From: Tom Tromey <tromey at redhat dot com>
- To: Phil Muldoon <pmuldoon at redhat dot com>
- Cc: "gdb-patches\ at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 05 Dec 2012 10:32:11 -0700
- Subject: Re: [patch][python] 4 of 5 - Frame filter testsuite changes
- References: <50B8C34E.1080704@redhat.com>
>>>>> "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