This is the mail archive of the gdb-patches@sourceware.org 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: Sporadic failures of selftest tests


On 10/17/2017 03:34 PM, Pedro Alves wrote:

> Wait, is your build of GDB an optimized build?  Maybe the compiler
> managed to inline captured_command_loop for you?  Currnetly, when
> GDB stops for an inline breakpoint, it stops at the stack caller,
> which would explain this.

Yup, I can reproduce this with:

$ rm -f main.o && make CXXFLAGS="-g3 -O2"
$ make check TESTS="*/complaints.exp"
[...]
Running src/gdb/testsuite/gdb.gdb/complaints.exp ...
FAIL: gdb.gdb/complaints.exp: run until breakpoint at captured_command_loop
WARNING: Couldn't test self

Thanks,
Pedro Alves


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