This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: backtrace changes current source location
- From: Felix Lee <felix dot 1 at canids dot net>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 05 Nov 2004 00:51:23 -0800
- Subject: Re: backtrace changes current source location
- References: <20041026075115.4A2C354AAB5@stray.canids> <20041026132924.GA26886@nevyn.them.org> <20041026150127.6ED3E54AAB5@stray.canids> <417FDC11.7060700@gnu.org> <20041028005157.259D34E8F0A@stray.canids> <41825FD5.1030607@gnu.org> <20041029220723.CCE45501085@stray.canids> <4182D9AD.5010003@gnu.org> <20041030032828.DB2D2501085@stray.canids> <20041101043803.A261E50346B@stray.canids> <20041101161332.GA26751@nevyn.them.org>
ok, checking this in, with the changes mentioned below.
Daniel Jacobowitz <drow@false.org>:
> 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