This is the mail archive of the gdb@sources.redhat.com 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]

Re: prgregset_t vs gdb_gregset_t on Linux: not the same!


On Mon, Jun 11, 2001 at 09:48:43AM -0400, Andrew Cagney wrote:
> 
> With regard to #include "tm-linux.h", I'd mimic *bsd.  That way it is 
> clear exactly what is going on.  Regardless of the semantics of "" vs <>.

I disagree. I prefer the gcc way. The gdb only gets away with "" is
we copy/link tm.h/xm.h/nm.h. If one day we ever want to have the gcc
style tm.h/xm.h/nm.h, where you have

# cat tm.h
#define TARGET_CPU_DEFAULT (MASK_GAS)
#ifdef IN_GCC
#include "gansidecl.h"
#endif
#ifdef IN_GCC
#include "elfos.h"
#endif
#ifdef IN_GCC
#include "mips/elfl.h"
#endif
#ifdef IN_GCC
#include "mips/linux.h"
#endif

"" won't work. I prefer <> over "".


H.J.


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