This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Fix gdbserver build on S/390


Apparently SuSE ships an S/390 kernel with "interesting" headers. 
PT_FPR0_HI is normally a #define, but in theirs it's an enum instead.  So
check a different variable to figure out whether to use PT_FPR0_HI or
PT_FPR0.

Committed trunk, committing branch.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

2002-11-20  Daniel Jacobowitz  <drow@mvista.com>

	* linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
	defined(PT_FPR0_HI).

Index: linux-s390-low.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/linux-s390-low.c,v
retrieving revision 1.2
diff -u -p -r1.2 linux-s390-low.c
--- linux-s390-low.c	9 Apr 2002 22:44:43 -0000	1.2
+++ linux-s390-low.c	20 Nov 2002 16:29:47 -0000
@@ -49,7 +49,8 @@ static int s390_regmap[] = {
   
   PT_FPC,
 
-#ifdef PT_FPR0_HI
+/* <asm/ptrace.h> defines GPR_SIZE.  */
+#if GPR_SIZE == 4
   PT_FPR0_HI, PT_FPR1_HI, PT_FPR2_HI, PT_FPR3_HI,
   PT_FPR4_HI, PT_FPR5_HI, PT_FPR6_HI, PT_FPR7_HI,
   PT_FPR8_HI, PT_FPR9_HI, PT_FPR10_HI, PT_FPR11_HI,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]