This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa/testsuite] gdb.base/selftest.exp: work with optimization
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: carlton at math dot stanford dot edu, gdb-patches at sources dot redhat dot com
- Cc: fnasser at redhat dot com
- Date: Wed, 11 Dec 2002 16:15:52 -0600
- Subject: Re: [rfa/testsuite] gdb.base/selftest.exp: work with optimization
David Carlton writes:
> Digging further, it happens during the part of the test that steps
> through captured_main; when GDB is compiled with optimization, GDB
> sometimes stops on the opening brace.
I see that too.
gdb.base/selftest.exp needs to be a lot more careful about its
regexp's, because it is operating on a test program which changes
outside of its control, rather than a small defined test program.
+ # "current_directory initialization" possibilities happen to
+ # me with GCC 3.1 on i686-pc-linux-gnu when I compile with
+ # optimization.
That is twice today you said "gcc 3.1" -- is that a think for gcc 3.2.1,
or are you really testing with gcc 3.1?
Michael C