This is the mail archive of the gdb-patches@sources.redhat.com 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: backtrace changes current source location


On Sun, Oct 31, 2004 at 08:38:03PM -0800, Felix Lee wrote:
> Index: gdb/testsuite/gdb.base/cursal.c
> ===================================================================
> RCS file: gdb/testsuite/gdb.base/cursal.c
> diff -N gdb/testsuite/gdb.base/cursal.c
> --- /dev/null	1 Jan 1970 00:00:00 -0000
> +++ gdb/testsuite/gdb.base/cursal.c	31 Oct 2004 10:42:55 -0000
> @@ -0,0 +1,19 @@

Current policy is that this needs to have a copyright notice, please.

> +if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != ""} {
> +    gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> +}

> +if {! [runto_main]} {
> +    gdb_suppress_tests
> +}
> +

Also, don't use the *suppress* procedures - just return -1, and an
"untested" for the first one.

-- 
Daniel Jacobowitz


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