Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] arm-netbsd clean up native include file.
@ 2002-05-15  9:25 Richard Earnshaw
  2002-05-15 10:01 ` Andrew Cagney
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Earnshaw @ 2002-05-15  9:25 UTC (permalink / raw)
  To: gdb-patches; +Cc: Richard.Earnshaw

[-- Attachment #1: Type: text/plain, Size: 455 bytes --]


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.



[-- Attachment #2: gdb-nbsdreg.patch --]
[-- Type: text/x-patch , Size: 747 bytes --]

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 */

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-05-16 14:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-15  9:25 [patch] arm-netbsd clean up native include file Richard Earnshaw
2002-05-15 10:01 ` Andrew Cagney
2002-05-15 10:07   ` Richard Earnshaw
2002-05-15 10:31     ` Andrew Cagney
2002-05-15 10:41       ` Richard Earnshaw
2002-05-16  7:01         ` Richard Earnshaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox