* configure.in: Allow mingw32 and cygwin targets to build cross-gdb.
[deliverable/binutils-gdb.git] / gdb / gdbserver / configure.srv
... / ...
CommitLineData
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.
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.
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"
23 srv_linux_usrregs=yes
24 srv_linux_thread_db=yes
25 ;;
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 ;;
36 i[34567]86-*-linux*) srv_regobj=reg-i386-linux.o
37 srv_tgtobj="linux-low.o linux-i386-low.o i387-fp.o"
38 srv_linux_usrregs=yes
39 srv_linux_regsets=yes
40 srv_linux_thread_db=yes
41 ;;
42 ia64-*-linux*) srv_regobj=reg-ia64.o
43 srv_tgtobj="linux-low.o linux-ia64-low.o"
44 srv_linux_usrregs=yes
45 ;;
46 m32r*-*-linux*) srv_regobj=reg-m32r.o
47 srv_tgtobj="linux-low.o linux-m32r-low.o"
48 srv_linux_usrregs=yes
49 srv_linux_thread_db=yes
50 ;;
51 m68*-*-linux*) srv_regobj=reg-m68k.o
52 srv_tgtobj="linux-low.o linux-m68k-low.o"
53 srv_linux_usrregs=yes
54 srv_linux_regsets=yes
55 srv_linux_thread_db=yes
56 ;;
57 m68*-*-uclinux*) srv_regobj=reg-m68k.o
58 srv_tgtobj="linux-low.o linux-m68k-low.o"
59 srv_linux_usrregs=yes
60 srv_linux_regsets=yes
61 srv_linux_thread_db=yes
62 ;;
63 mips*-*-linux*) srv_regobj=reg-mips.o
64 srv_tgtobj="linux-low.o linux-mips-low.o"
65 srv_linux_usrregs=yes
66 srv_linux_thread_db=yes
67 ;;
68 powerpc64-*-linux*) srv_regobj=reg-ppc64.o
69 srv_tgtobj="linux-low.o linux-ppc64-low.o"
70 srv_linux_usrregs=yes
71 srv_linux_regsets=yes
72 srv_linux_thread_db=yes
73 ;;
74 powerpc-*-linux*) srv_regobj=reg-ppc.o
75 srv_tgtobj="linux-low.o linux-ppc-low.o"
76 srv_linux_usrregs=yes
77 srv_linux_regsets=yes
78 srv_linux_thread_db=yes
79 ;;
80 s390-*-linux*) srv_regobj=reg-s390.o
81 srv_tgtobj="linux-low.o linux-s390-low.o"
82 srv_linux_usrregs=yes
83 ;;
84 s390x-*-linux*) srv_regobj=reg-s390x.o
85 srv_tgtobj="linux-low.o linux-s390-low.o"
86 srv_linux_usrregs=yes
87 ;;
88 sh*-*-linux*) srv_regobj=reg-sh.o
89 srv_tgtobj="linux-low.o linux-sh-low.o"
90 srv_linux_usrregs=yes
91 srv_linux_thread_db=yes
92 ;;
93 x86_64-*-linux*) srv_regobj=reg-x86-64.o
94 srv_tgtobj="linux-low.o linux-x86-64-low.o i387-fp.o"
95 srv_linux_regsets=yes
96 srv_linux_thread_db=yes
97 ;;
98 xscale*-*-linux*) srv_regobj=reg-arm.o
99 srv_tgtobj="linux-low.o linux-arm-low.o"
100 srv_linux_usrregs=yes
101 srv_linux_thread_db=yes
102 ;;
103 *) echo "Error: target not supported by gdbserver."
104 exit 1
105 ;;
106esac
This page took 0.023047 seconds and 4 git commands to generate.