This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] arm-netbsd clean up native include file.
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: Richard dot Earnshaw at arm dot com
- Date: Wed, 15 May 2002 17:25:08 +0100
- Subject: [patch] arm-netbsd clean up native include file.
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
The native include file for arm*-*-netbsd* was
1) Using #include "nm-nbsd.h" which was potentially self-recursive
2) Defining REGISTER_U_ADDR to call a function that doesn't exist.
Fortunately we never compiled a file that needed this definition ;-)
2002-05-15 Richard Earnshaw <rearnsha@arm.com>
* config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
(REGISTER_U_ADDR): Delete definition.
(arm_register_u_addr): Delete declaration.
Index: config/arm/nm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/arm/nm-nbsd.h,v
retrieving revision 1.2
diff -p -r1.2 nm-nbsd.h
*** config/arm/nm-nbsd.h 9 Jan 2002 18:39:37 -0000 1.2
--- config/arm/nm-nbsd.h 15 May 2002 16:17:29 -0000
***************
*** 22,33 ****
#define NM_NBSD_H
/* Get generic NetBSD native definitions. */
! #include "nm-nbsd.h"
!
! #define REGISTER_U_ADDR(addr, blockend, regno) \
! (addr) = arm_register_u_addr ((blockend),(regno));
!
! extern int
! arm_register_u_addr (int, int);
#endif /* NM_NBSD_H */
--- 22,27 ----
#define NM_NBSD_H
/* Get generic NetBSD native definitions. */
! #include <nm-nbsd.h>
#endif /* NM_NBSD_H */