summaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-s390-low.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-11-20 16:31:08 +0000
committerDaniel Jacobowitz <drow@false.org>2002-11-20 16:31:08 +0000
commita1358604f19f33d3b588e685f85cbee16ba8bb50 (patch)
treeb178ed7fc214ad9bf3c2d9b4179af0d7e0448bed /gdb/gdbserver/linux-s390-low.c
parent5045ec7ae462b22b27ce2f5401c3200e0c481822 (diff)
downloadbinutils-gdb-a1358604f19f33d3b588e685f85cbee16ba8bb50.tar.gz
* linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
defined(PT_FPR0_HI).
Diffstat (limited to 'gdb/gdbserver/linux-s390-low.c')
-rw-r--r--gdb/gdbserver/linux-s390-low.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gdbserver/linux-s390-low.c b/gdb/gdbserver/linux-s390-low.c
index 8d800ae8b5f..9213f68ef00 100644
--- a/gdb/gdbserver/linux-s390-low.c
+++ b/gdb/gdbserver/linux-s390-low.c
@@ -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,