This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: prgregset_t vs gdb_gregset_t on Linux: not the same!
- To: "H . J . Lu" <hjl at lucon dot org>
- Subject: Re: prgregset_t vs gdb_gregset_t on Linux: not the same!
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Date: Sun, 10 Jun 2001 11:01:20 +0300 (IDT)
- cc: Andrew Cagney <ac131313 at cygnus dot com>, gdb at sources dot redhat dot com
On Sun, 10 Jun 2001, H . J . Lu wrote:
> The gdb configure links/copies mips/tm-littlelinux.h to tm.h. Now
> gdb/tm.h has
>
> ---
> #ifndef TM_MIPSLITTLELINUX_H
> #define TM_MIPSLITTLELINUX_H
>
> #define TARGET_BYTE_ORDER LITTLE_ENDIAN
>
> #include "mips/tm-linux.h"
> ---
>
> If in mips/tm-linux.h, there are
>
> #include "mips/tm-mips.h"
> #include "tm-linux.h"
>
> mips/tm-linux.h is found by -Isrc/gdb/config. But can you guess which
> tm-linux.h is included from mips/tm-linux.h? It is mips/tm-linux.h
This is all expected. Perhaps it means that it's a bad idea to have
several headers by the same name in different directories, if some port
might include more than one of those headers, because small changes in
the order of the -I options can break the build.