Re: [rfa/testsuite] gdb.base/selftest.exp: work with optimization

Michael Elizabeth Chastain
2002-12-11T22:15:56Z

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