2007-02-08 Jeff Johnston <jjohnstn@redhat.com>
[deliverable/binutils-gdb.git] / gdb / gdbserver / configure.srv
CommitLineData
7ea81414
DJ
1# Mappings from configuration triplets to gdbserver build options.
2# This is invoked from the autoconf-generated configure script, to
3# produce the appropriate Makefile substitutions.
4
5# This file sets the following shell variables:
6# srv_regobj The register protocol appropriate for this target.
7# srv_tgtobj Any other target-specific modules appropriate
8# for this target.
9#
10# In addition, on GNU/Linux the following shell variables will be set:
11# srv_linux_regsets Set to "yes" if ptrace(PTRACE_GETREGS) and friends
12# may be available on this platform; unset otherwise.
58caa3dc
DJ
13# They will only be used if <sys/ptrace.h> defines
14# PTRACE_GETREGS.
15# srv_linux_usrregs Set to "yes" if we can get at registers via
16# PTRACE_PEEKUSR / PTRACE_POKEUSR.
7ea81414
DJ
17
18# Input is taken from the "${target}" variable.
19
20case "${target}" in
21 arm*-*-linux*) srv_regobj=reg-arm.o
22 srv_tgtobj="linux-low.o linux-arm-low.o"
58caa3dc 23 srv_linux_usrregs=yes
0d62e5e8 24 srv_linux_thread_db=yes
7ea81414 25 ;;
45b134e5
OF
26 crisv32-*-linux*) srv_regobj=reg-crisv32.o
27 srv_tgtobj="linux-low.o linux-crisv32-low.o"
28 srv_linux_regsets=yes
29 srv_linux_thread_db=yes
30 ;;
31 cris-*-linux*) srv_regobj=reg-cris.o
32 srv_tgtobj="linux-low.o linux-cris-low.o"
33 srv_linux_usrregs=yes
34 srv_linux_thread_db=yes
35 ;;
b80864fb
DJ
36 i[34567]86-*-cygwin*) srv_regobj=reg-i386.o
37 srv_tgtobj="win32-i386-low.o"
38 ;;
1581182a 39 i[34567]86-*-linux*) srv_regobj=reg-i386-linux.o
58caa3dc
DJ
40 srv_tgtobj="linux-low.o linux-i386-low.o i387-fp.o"
41 srv_linux_usrregs=yes
42 srv_linux_regsets=yes
0d62e5e8 43 srv_linux_thread_db=yes
7ea81414 44 ;;
b80864fb
DJ
45 i[34567]86-*-mingw*) srv_regobj=reg-i386.o
46 srv_tgtobj="win32-i386-low.o"
47 srv_mingw=yes
48 ;;
7ea81414
DJ
49 ia64-*-linux*) srv_regobj=reg-ia64.o
50 srv_tgtobj="linux-low.o linux-ia64-low.o"
58caa3dc 51 srv_linux_usrregs=yes
7ea81414 52 ;;
7cfbc4a0
KI
53 m32r*-*-linux*) srv_regobj=reg-m32r.o
54 srv_tgtobj="linux-low.o linux-m32r-low.o"
55 srv_linux_usrregs=yes
56 srv_linux_thread_db=yes
57 ;;
7ea81414
DJ
58 m68*-*-linux*) srv_regobj=reg-m68k.o
59 srv_tgtobj="linux-low.o linux-m68k-low.o"
58caa3dc 60 srv_linux_usrregs=yes
db1d3e1b
AS
61 srv_linux_regsets=yes
62 srv_linux_thread_db=yes
7ea81414 63 ;;
52fb6437
NS
64 m68*-*-uclinux*) srv_regobj=reg-m68k.o
65 srv_tgtobj="linux-low.o linux-m68k-low.o"
66 srv_linux_usrregs=yes
67 srv_linux_regsets=yes
68 srv_linux_thread_db=yes
69 ;;
186947f7
DJ
70 mips*64*-*-linux*) srv_regobj=reg-mips64.o
71 srv_tgtobj="linux-low.o linux-mips-low.o"
72 srv_linux_regsets=yes
73 srv_linux_usrregs=yes
74 srv_linux_thread_db=yes
75 ;;
7ea81414
DJ
76 mips*-*-linux*) srv_regobj=reg-mips.o
77 srv_tgtobj="linux-low.o linux-mips-low.o"
186947f7 78 srv_linux_regsets=yes
58caa3dc 79 srv_linux_usrregs=yes
0d62e5e8 80 srv_linux_thread_db=yes
7ea81414 81 ;;
eee84df1
DJ
82 powerpc64-*-linux*) srv_regobj=reg-ppc64.o
83 srv_tgtobj="linux-low.o linux-ppc64-low.o"
84 srv_linux_usrregs=yes
e9d25b98 85 srv_linux_regsets=yes
eee84df1
DJ
86 srv_linux_thread_db=yes
87 ;;
88 powerpc-*-linux*) srv_regobj=reg-ppc.o
7ea81414 89 srv_tgtobj="linux-low.o linux-ppc-low.o"
58caa3dc 90 srv_linux_usrregs=yes
e9d25b98 91 srv_linux_regsets=yes
0d62e5e8 92 srv_linux_thread_db=yes
7ea81414 93 ;;
265f716b
DJ
94 s390-*-linux*) srv_regobj=reg-s390.o
95 srv_tgtobj="linux-low.o linux-s390-low.o"
96 srv_linux_usrregs=yes
b7149293
UW
97 srv_linux_regsets=yes
98 srv_linux_thread_db=yes
265f716b
DJ
99 ;;
100 s390x-*-linux*) srv_regobj=reg-s390x.o
101 srv_tgtobj="linux-low.o linux-s390-low.o"
102 srv_linux_usrregs=yes
b7149293
UW
103 srv_linux_regsets=yes
104 srv_linux_thread_db=yes
265f716b 105 ;;
7ea81414
DJ
106 sh*-*-linux*) srv_regobj=reg-sh.o
107 srv_tgtobj="linux-low.o linux-sh-low.o"
58caa3dc 108 srv_linux_usrregs=yes
0d62e5e8 109 srv_linux_thread_db=yes
58caa3dc 110 ;;
a13e2c95
UW
111 spu*-*-*) srv_regobj=reg-spu.o
112 srv_tgtobj="spu-low.o"
113 ;;
8695c747 114 x86_64-*-linux*) srv_regobj=reg-x86-64-linux.o
58caa3dc
DJ
115 srv_tgtobj="linux-low.o linux-x86-64-low.o i387-fp.o"
116 srv_linux_regsets=yes
011a70c2 117 srv_linux_thread_db=yes
7ea81414 118 ;;
7f313d07
BC
119 xscale*-*-linux*) srv_regobj=reg-arm.o
120 srv_tgtobj="linux-low.o linux-arm-low.o"
121 srv_linux_usrregs=yes
122 srv_linux_thread_db=yes
123 ;;
7ea81414
DJ
124 *) echo "Error: target not supported by gdbserver."
125 exit 1
126 ;;
127esac
This page took 0.370139 seconds and 4 git commands to generate.