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


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


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