This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Sporadic failures of selftest tests
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: palves at redhat dot com (Pedro Alves)
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 20 Oct 2017 14:51:20 +0200 (CEST)
- Subject: Re: Sporadic failures of selftest tests
- Authentication-results: sourceware.org; auth=none
Pedro Alves wrote:
> Probably the best fix would be to move away from selftest
> entirely and convert them to unit tests instead.
>
> Meanwhile, how about this as an easy fix? We could try
> playing games with making functions extern, but maybe
> that'd break again with LTO.
>
> Seems to work for gdb.gdb/selftest.exp and gdb.gdb/complaints.exp
> at least.
>
> (I think we can use __attribute__ directly because
> include/ansidecl.h defines it to empty on non-gcc or
> older gccs.)
>
> From: Pedro Alves <palves@redhat.com>
> Date: 2017-10-17 15:04:11 +0100
>
> prevent inlining captured_command_loop
Makes sense to me ...
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com