This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH RFC] Fix break.exp optimization related failure
- From: Mark Kettenis <kettenis at chello dot nl>
- To: mec at shout dot net
- Cc: ac131313 at redhat dot com, kevinb at redhat dot com, gdb-patches at sources dot redhat dot com
- Date: Sat, 27 Sep 2003 21:29:48 +0200 (CEST)
- Subject: Re: [PATCH RFC] Fix break.exp optimization related failure
- References: <200309271915.h8RJFhAh007979@duracef.shout.net>
Date: Sat, 27 Sep 2003 15:15:43 -0400
From: Michael Elizabeth Chastain <mec@shout.net>
ac> We're probably also going to have to split up our test files in to
ac> separate .c's so that the compiler can't see smarts like this :-/
I like separate files much better than #ifdef __GNUC__,
__weak__, and stuff like that. Separate files are simpler in
concept, more future-proof against improvements in gcc,
and also proof against improvements in non-gcc compilers.
Moreover, this trick with __weak__ probably only works on ELF.
Mark