Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch/rfa] Fix trampoline definitions for hppa-linux
@ 2004-05-15  3:08 Randolph Chung
  2004-05-17 15:10 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Randolph Chung @ 2004-05-15  3:08 UTC (permalink / raw)
  To: gdb-patches

The cross-gdb patch I posted earlier had a nasty side effect that it 
overrode some of the trampoline methods set in hppa-linux-tdep.c. This
fixes it. ok to apply? 

It's rather non-obvious that including tm-linux.h will suddenly make
some gdbarch methods not work anymore.... :(

randolph

2004-05-14  Randolph Chung  <tausq@debian.org>

	* config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
	Undefine these so we can overide them using gdbarch.

Index: config/pa/tm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/pa/tm-linux.h,v
retrieving revision 1.1
diff -u -p -r1.1 tm-linux.h
--- config/pa/tm-linux.h	10 May 2004 18:33:37 -0000	1.1
+++ config/pa/tm-linux.h	15 May 2004 03:02:38 -0000
@@ -24,4 +24,10 @@
 #include "pa/tm-hppa.h"
 #include "config/tm-linux.h"
 
+/* Including tm-linux.h indirectly includes tm-sysv4.h which defines
+   the following macros.  We want to use the regular gdbarch mechanism
+   to set the methods in hppa*tdep.c, so undefine them here.  */
+#undef IN_SOLIB_CALL_TRAMPOLINE
+#undef SKIP_TRAMPOLINE_CODE
+
 #endif /* #ifndef TM_LINUX_H */

-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/


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

end of thread, other threads:[~2004-05-17 15:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-15  3:08 [patch/rfa] Fix trampoline definitions for hppa-linux Randolph Chung
2004-05-17 15:10 ` Andrew Cagney

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