From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H . J . Lu" To: GDB Cc: gdb-patches@sourceware.cygnus.com Subject: A patch for Linux config Date: Fri, 04 May 2001 14:16:00 -0000 Message-id: <20010504141655.A3250@lucon.org> X-SW-Source: 2001-05/msg00048.html Without this patch, config/?m-linux.h won't be included with #include "arch/?m-linux.h" H.J. --- 2001-05-04 H.J. Lu * config/alpha/nm-linux.h: Include , not "nm-linux.h". * config/arm/nm-linux.h: Likewise. * config/i386/nm-linux.h: Likewise. * config/ia64/nm-linux.h: Likewise. * config/m68k/nm-linux.h: Likewise. * config/powerpc/nm-linux.h: Likewise. * config/sparc/nm-linux.h: Likewise. * config/arm/tm-linux.h: Include , not "tm-linux.h". * config/i386/tm-linux.h: Likewise. * config/ia64/tm-linux.h: Likewise. * config/m68k/tm-linux.h: Likewise. * config/powerpc/tm-linux.h: Likewise. * config/sparc/tm-linux.h: Likewise. Index: config/alpha/nm-linux.h =================================================================== RCS file: /cvs/src/src/gdb/config/alpha/nm-linux.h,v retrieving revision 1.5 diff -u -p -r1.5 nm-linux.h --- nm-linux.h 2001/05/04 04:15:29 1.5 +++ nm-linux.h 2001/05/04 21:12:03 @@ -21,7 +21,7 @@ #ifndef NM_LINUX_H #define NM_LINUX_H -#include "nm-linux.h" +#include /* Figure out where the longjmp will land. We expect that we have just entered longjmp and haven't yet setup the stack frame, so the args are still in the Index: config/arm/nm-linux.h =================================================================== RCS file: /cvs/src/src/gdb/config/arm/nm-linux.h,v retrieving revision 1.5 diff -u -p -r1.5 nm-linux.h --- nm-linux.h 2001/05/04 04:15:30 1.5 +++ nm-linux.h 2001/05/04 21:12:03 @@ -21,7 +21,7 @@ #ifndef NM_ARMLINUX_H #define NM_ARMLINUX_H -#include "nm-linux.h" +#include /* Return sizeof user struct to callers in less machine dependent routines */ extern int kernel_u_size (void); Index: config/arm/tm-linux.h =================================================================== RCS file: /cvs/src/src/gdb/config/arm/tm-linux.h,v retrieving revision 1.6 diff -u -p -r1.6 tm-linux.h --- tm-linux.h 2000/09/06 00:39:11 1.6 +++ tm-linux.h 2001/05/04 21:12:04 @@ -24,7 +24,7 @@ /* Include the common ARM target definitions. */ #include "arm/tm-arm.h" -#include "tm-linux.h" +#include /* Target byte order on ARM Linux is little endian and not selectable. */ #undef TARGET_BYTE_ORDER_SELECTABLE_P Index: config/i386/nm-linux.h =================================================================== RCS file: /cvs/src/src/gdb/config/i386/nm-linux.h,v retrieving revision 1.11 diff -u -p -r1.11 nm-linux.h --- nm-linux.h 2001/05/04 04:15:31 1.11 +++ nm-linux.h 2001/05/04 21:12:04 @@ -27,7 +27,7 @@ #define I386_USE_GENERIC_WATCHPOINTS #include "i386/nm-i386.h" -#include "nm-linux.h" +#include /* Return sizeof user struct to callers in less machine dependent routines. */ Index: config/i386/tm-linux.h =================================================================== RCS file: /cvs/src/src/gdb/config/i386/tm-linux.h,v retrieving revision 1.13 diff -u -p -r1.13 tm-linux.h --- tm-linux.h 2001/03/28 11:36:23 1.13 +++ tm-linux.h 2001/05/04 21:12:04 @@ -29,7 +29,7 @@ #endif #include "i386/tm-i386.h" -#include "tm-linux.h" +#include /* Use target_specific function to define link map offsets. */ extern struct link_map_offsets *i386_linux_svr4_fetch_link_map_offsets (void); Index: config/ia64/nm-linux.h =================================================================== RCS file: /cvs/src/src/gdb/config/ia64/nm-linux.h,v retrieving revision 1.7 diff -u -p -r1.7 nm-linux.h --- nm-linux.h 2001/05/04 04:15:31 1.7 +++ nm-linux.h 2001/05/04 21:12:04 @@ -22,7 +22,7 @@ #ifndef NM_LINUX_H #define NM_LINUX_H -#include "nm-linux.h" +#include /* Note: It seems likely that we'll have to eventually define FETCH_INFERIOR_REGISTERS. But until that time, we'll make do Index: config/ia64/tm-linux.h =================================================================== RCS file: /cvs/src/src/gdb/config/ia64/tm-linux.h,v retrieving revision 1.3 diff -u -p -r1.3 tm-linux.h --- tm-linux.h 2001/03/06 08:21:30 1.3 +++ tm-linux.h 2001/05/04 21:12:04 @@ -24,7 +24,7 @@ #define IA64_GNULINUX_TARGET #include "ia64/tm-ia64.h" -#include "tm-linux.h" +#include #define TARGET_ELF64 Index: config/m68k/nm-linux.h =================================================================== RCS file: /cvs/src/src/gdb/config/m68k/nm-linux.h,v retrieving revision 1.3 diff -u -p -r1.3 nm-linux.h --- nm-linux.h 2001/03/06 08:21:30 1.3 +++ nm-linux.h 2001/05/04 21:12:04 @@ -21,7 +21,7 @@ #ifndef NM_LINUX_H #define NM_LINUX_H -#include "nm-linux.h" +#include /* Return sizeof user struct to callers in less machine dependent routines */ Index: config/m68k/tm-linux.h =================================================================== RCS file: /cvs/src/src/gdb/config/m68k/tm-linux.h,v retrieving revision 1.5 diff -u -p -r1.5 tm-linux.h --- tm-linux.h 2001/03/14 23:23:12 1.5 +++ tm-linux.h 2001/05/04 21:12:04 @@ -74,7 +74,7 @@ } \ } -#include "tm-linux.h" +#include #include "m68k/tm-m68k.h" /* Extract from an array REGBUF containing the (raw) register state Index: config/powerpc/nm-linux.h =================================================================== RCS file: /cvs/src/src/gdb/config/powerpc/nm-linux.h,v retrieving revision 1.6 diff -u -p -r1.6 nm-linux.h --- nm-linux.h 2001/05/04 04:15:32 1.6 +++ nm-linux.h 2001/05/04 21:12:04 @@ -19,7 +19,7 @@ Foundation, Inc., 675 Mass Ave, Cambridg #ifndef NM_LINUX_H -#include "nm-linux.h" +#include #define NM_LINUX_H Index: config/powerpc/tm-linux.h =================================================================== RCS file: /cvs/src/src/gdb/config/powerpc/tm-linux.h,v retrieving revision 1.9 diff -u -p -r1.9 tm-linux.h --- tm-linux.h 2001/03/20 18:16:20 1.9 +++ tm-linux.h 2001/05/04 21:12:04 @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place - Suit #include "powerpc/tm-ppc-eabi.h" /* Avoid warning from redefinition in tm-sysv4.h (included from tm-linux.h) */ #undef SKIP_TRAMPOLINE_CODE -#include "tm-linux.h" +#include /* We can single step on linux */ #undef SOFTWARE_SINGLE_STEP Index: config/sh/tm-linux.h =================================================================== RCS file: /cvs/src/src/gdb/config/sh/tm-linux.h,v retrieving revision 1.2 diff -u -p -r1.2 tm-linux.h --- tm-linux.h 2001/03/06 08:21:35 1.2 +++ tm-linux.h 2001/05/04 21:12:04 @@ -19,7 +19,7 @@ Boston, MA 02111-1307, USA. */ /* Pull in Linux generic defs */ -#include "tm-linux.h" +#include /* Pull in sh-target defs */ #include "sh/tm-sh.h" Index: config/sparc/nm-linux.h =================================================================== RCS file: /cvs/src/src/gdb/config/sparc/nm-linux.h,v retrieving revision 1.4 diff -u -p -r1.4 nm-linux.h --- nm-linux.h 2001/03/06 08:21:36 1.4 +++ nm-linux.h 2001/05/04 21:12:04 @@ -19,8 +19,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifndef NM_LINUX_H +#define NM_LINUX_H + #include -#include "nm-linux.h" +#include #include "solib.h" #define FETCH_INFERIOR_REGISTERS @@ -29,3 +32,5 @@ #define KERNEL_U_SIZE kernel_u_size() extern int kernel_u_size (void); + +#endif /* NM_LINUX_H */ Index: config/sparc/tm-linux.h =================================================================== RCS file: /cvs/src/src/gdb/config/sparc/tm-linux.h,v retrieving revision 1.2 diff -u -p -r1.2 tm-linux.h --- tm-linux.h 2001/03/06 08:21:37 1.2 +++ tm-linux.h 2001/05/04 21:12:04 @@ -26,6 +26,6 @@ #define SIGCONTEXT_PC_OFFSET 12 -#include "tm-linux.h" +#include #endif /* TM_SPARCLINUX_H */