prgregset_t vs gdb_gregset_t on Linux: not the same!

H . J . Lu hjl@lucon.org
Mon Jun 11 08:58:00 GMT 2001


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.



More information about the Gdb mailing list