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.
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
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
15 # srv_linux_usrregs Set to "yes" if we can get at registers via
16 # PTRACE_PEEKUSR / PTRACE_POKEUSR.
18 # Input is taken from the "${target}" variable.
21 arm*-*-linux*) srv_regobj=reg-arm.o
22 srv_tgtobj="linux-low.o linux-arm-low.o"
24 srv_linux_thread_db=yes
26 crisv32-*-linux*) srv_regobj=reg-crisv32.o
27 srv_tgtobj="linux-low.o linux-crisv32-low.o"
29 srv_linux_thread_db=yes
31 cris-*-linux*) srv_regobj=reg-cris.o
32 srv_tgtobj="linux-low.o linux-cris-low.o"
34 srv_linux_thread_db=yes
36 i[34567]86-*-cygwin*) srv_regobj=reg-i386.o
37 srv_tgtobj="win32-i386-low.o"
39 i[34567]86-*-linux*) srv_regobj=reg-i386-linux.o
40 srv_tgtobj="linux-low.o linux-i386-low.o i387-fp.o"
43 srv_linux_thread_db=yes
45 i[34567]86-*-mingw*) srv_regobj=reg-i386.o
46 srv_tgtobj="win32-i386-low.o"
49 ia64-*-linux*) srv_regobj=reg-ia64.o
50 srv_tgtobj="linux-low.o linux-ia64-low.o"
53 m32r*-*-linux*) srv_regobj=reg-m32r.o
54 srv_tgtobj="linux-low.o linux-m32r-low.o"
56 srv_linux_thread_db=yes
58 m68*-*-linux*) srv_regobj=reg-m68k.o
59 srv_tgtobj="linux-low.o linux-m68k-low.o"
62 srv_linux_thread_db=yes
64 m68*-*-uclinux*) srv_regobj=reg-m68k.o
65 srv_tgtobj="linux-low.o linux-m68k-low.o"
68 srv_linux_thread_db=yes
70 mips*-*-linux*) srv_regobj=reg-mips.o
71 srv_tgtobj="linux-low.o linux-mips-low.o"
73 srv_linux_thread_db=yes
75 powerpc64-*-linux*) srv_regobj=reg-ppc64.o
76 srv_tgtobj="linux-low.o linux-ppc64-low.o"
79 srv_linux_thread_db=yes
81 powerpc-*-linux*) srv_regobj=reg-ppc.o
82 srv_tgtobj="linux-low.o linux-ppc-low.o"
85 srv_linux_thread_db=yes
87 s390-*-linux*) srv_regobj=reg-s390.o
88 srv_tgtobj="linux-low.o linux-s390-low.o"
91 s390x-*-linux*) srv_regobj=reg-s390x.o
92 srv_tgtobj="linux-low.o linux-s390-low.o"
95 sh*-*-linux*) srv_regobj=reg-sh.o
96 srv_tgtobj="linux-low.o linux-sh-low.o"
98 srv_linux_thread_db=yes
100 x86_64-*-linux*) srv_regobj=reg-x86-64.o
101 srv_tgtobj="linux-low.o linux-x86-64-low.o i387-fp.o"
102 srv_linux_regsets=yes
103 srv_linux_thread_db=yes
105 xscale*-*-linux*) srv_regobj=reg-arm.o
106 srv_tgtobj="linux-low.o linux-arm-low.o"
107 srv_linux_usrregs=yes
108 srv_linux_thread_db=yes
110 *) echo "Error: target not supported by gdbserver."