Commit | Line | Data |
---|---|---|
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 | ||
20 | case "${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 | ;; |
1581182a | 26 | i[34567]86-*-linux*) srv_regobj=reg-i386-linux.o |
58caa3dc DJ |
27 | srv_tgtobj="linux-low.o linux-i386-low.o i387-fp.o" |
28 | srv_linux_usrregs=yes | |
29 | srv_linux_regsets=yes | |
0d62e5e8 | 30 | srv_linux_thread_db=yes |
7ea81414 DJ |
31 | ;; |
32 | ia64-*-linux*) srv_regobj=reg-ia64.o | |
33 | srv_tgtobj="linux-low.o linux-ia64-low.o" | |
58caa3dc | 34 | srv_linux_usrregs=yes |
7ea81414 | 35 | ;; |
7cfbc4a0 KI |
36 | m32r*-*-linux*) srv_regobj=reg-m32r.o |
37 | srv_tgtobj="linux-low.o linux-m32r-low.o" | |
38 | srv_linux_usrregs=yes | |
39 | srv_linux_thread_db=yes | |
40 | ;; | |
7ea81414 DJ |
41 | m68*-*-linux*) srv_regobj=reg-m68k.o |
42 | srv_tgtobj="linux-low.o linux-m68k-low.o" | |
58caa3dc | 43 | srv_linux_usrregs=yes |
db1d3e1b AS |
44 | srv_linux_regsets=yes |
45 | srv_linux_thread_db=yes | |
7ea81414 DJ |
46 | ;; |
47 | mips*-*-linux*) srv_regobj=reg-mips.o | |
48 | srv_tgtobj="linux-low.o linux-mips-low.o" | |
58caa3dc | 49 | srv_linux_usrregs=yes |
0d62e5e8 | 50 | srv_linux_thread_db=yes |
7ea81414 DJ |
51 | ;; |
52 | powerpc*-*-linux*) srv_regobj=reg-ppc.o | |
53 | srv_tgtobj="linux-low.o linux-ppc-low.o" | |
58caa3dc | 54 | srv_linux_usrregs=yes |
0d62e5e8 | 55 | srv_linux_thread_db=yes |
7ea81414 | 56 | ;; |
265f716b DJ |
57 | s390-*-linux*) srv_regobj=reg-s390.o |
58 | srv_tgtobj="linux-low.o linux-s390-low.o" | |
59 | srv_linux_usrregs=yes | |
60 | ;; | |
61 | s390x-*-linux*) srv_regobj=reg-s390x.o | |
62 | srv_tgtobj="linux-low.o linux-s390-low.o" | |
63 | srv_linux_usrregs=yes | |
64 | ;; | |
7ea81414 DJ |
65 | sh*-*-linux*) srv_regobj=reg-sh.o |
66 | srv_tgtobj="linux-low.o linux-sh-low.o" | |
58caa3dc | 67 | srv_linux_usrregs=yes |
0d62e5e8 | 68 | srv_linux_thread_db=yes |
58caa3dc DJ |
69 | ;; |
70 | x86_64-*-linux*) srv_regobj=reg-x86-64.o | |
71 | srv_tgtobj="linux-low.o linux-x86-64-low.o i387-fp.o" | |
72 | srv_linux_regsets=yes | |
7ea81414 | 73 | ;; |
7f313d07 BC |
74 | xscale*-*-linux*) srv_regobj=reg-arm.o |
75 | srv_tgtobj="linux-low.o linux-arm-low.o" | |
76 | srv_linux_usrregs=yes | |
77 | srv_linux_thread_db=yes | |
78 | ;; | |
7ea81414 DJ |
79 | *) echo "Error: target not supported by gdbserver." |
80 | exit 1 | |
81 | ;; | |
82 | esac |