2002-02-27 Daniel Jacobowitz <drow@mvista.com>
[external/binutils.git] / gdb / gdbserver / configure.srv
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
20 case "${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                         ;;
25   i[3456]86-*-linux*)   srv_regobj=reg-i386-linux.o
26                         srv_tgtobj="linux-low.o linux-i386-low.o i387-fp.o"
27                         srv_linux_usrregs=yes
28                         srv_linux_regsets=yes
29                         ;;
30   ia64-*-linux*)        srv_regobj=reg-ia64.o
31                         srv_tgtobj="linux-low.o linux-ia64-low.o"
32                         srv_linux_usrregs=yes
33                         ;;
34   m68*-*-linux*)        srv_regobj=reg-m68k.o
35                         srv_tgtobj="linux-low.o linux-m68k-low.o"
36                         srv_linux_usrregs=yes
37                         ;;
38   mips*-*-linux*)       srv_regobj=reg-mips.o
39                         srv_tgtobj="linux-low.o linux-mips-low.o"
40                         srv_linux_usrregs=yes
41                         ;;
42   powerpc*-*-linux*)    srv_regobj=reg-ppc.o
43                         srv_tgtobj="linux-low.o linux-ppc-low.o"
44                         srv_linux_usrregs=yes
45                         ;;
46   sh*-*-linux*)         srv_regobj=reg-sh.o
47                         srv_tgtobj="linux-low.o linux-sh-low.o"
48                         srv_linux_usrregs=yes
49                         ;;
50   x86_64-*-linux*)      srv_regobj=reg-x86-64.o
51                         srv_tgtobj="linux-low.o linux-x86-64-low.o i387-fp.o"
52                         srv_linux_regsets=yes
53                         ;;
54   *)                    echo "Error: target not supported by gdbserver."
55                         exit 1
56                         ;;
57 esac