This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] lib/gdb.exp: check skip_cplus_tests target info
- To: Nick Duffek <nsd at redhat dot com>
- Subject: Re: [RFA] lib/gdb.exp: check skip_cplus_tests target info
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Fri, 17 Nov 2000 16:29:10 +0000
- CC: gdb-patches at sources dot redhat dot com
- Organization: Red Hat Canada Ltd. - Toronto
- References: <200011170639.eAH6dPD14220@rtl.cygnus.com>
Nick Duffek wrote:
>
> The attached patch skips C++ tests if [target_info exists
> gdb,skip_cplus_tests] is true, allowing C++ tests to be skipped by
> changing the board description file instead of adding board-specific
> checks to gdb.exp.
>
I wonder if this is really board specific. The capability of running
C++ programs is related to the run time environment existent/loaded in the
board. Sometimes a newlib that is linked to the program and loaded there,
sometimes is part of an OS running there etc.
Would you mind elaborating a little bit more on this one?
Thanks.
Fernando
> There are no regressions on i686-pc-linux-gnu or sparc-sun-solaris2.5.1.
> Okay to apply?
>
> ChangeLog:
>
> * lib/gdb.exp (skip_cplus_tests): Check skip_cplus_tests
> in target_info.
>
> Nick
>
> Index: gdb/testsuite/lib/gdb.exp
> ===================================================================
> diff -up gdb/testsuite/lib/gdb.exp gdb/testsuite/lib/gdb.exp
> --- gdb/testsuite/lib/gdb.exp Thu Nov 16 19:28:52 2000
> +++ gdb/testsuite/lib/gdb.exp Thu Nov 16 19:28:44 2000
> @@ -881,6 +881,9 @@ proc skip_cplus_tests {} {
> if { [istarget "h8300-*-*"] } {
> return 1
> }
> + if [target_info exists gdb,skip_cplus_tests] {
> + return 1
> + }
> return 0
> }
>
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9