OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [gdb/] [gdbserver/] [configure.srv] - Blame information for rev 24

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# 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
#   srv_hostio_err      The object implementing the hostio_last_error
10
#                       target method.
11
#   srv_xmltarget       The XML source file to use for target.xml, if any.
12
#   srv_xmlfiles        Any other XML files which should be available for
13
#                       gdbserver in this configuration.
14
#
15
# In addition, on GNU/Linux the following shell variables will be set:
16
#   srv_linux_regsets   Set to "yes" if ptrace(PTRACE_GETREGS) and friends
17
#                       may be available on this platform;  unset otherwise.
18
#                       They will only be used if  defines
19
#                       PTRACE_GETREGS.
20
#   srv_linux_usrregs   Set to "yes" if we can get at registers via
21
#                       PTRACE_PEEKUSR / PTRACE_POKEUSR.
22
 
23
# Default hostio_last_error implementation
24
srv_hostio_err_objs="hostio-errno.o"
25
 
26
# Input is taken from the "${target}" variable.
27
 
28
case "${target}" in
29
  arm*-*-linux*)        srv_tgtobj="linux-low.o linux-arm-low.o"
30
                        srv_linux_usrregs=yes
31
                        srv_linux_regsets=yes
32
                        srv_linux_thread_db=yes
33
                        if test $gdb_cv_arm_iwmmxt = yes; then
34
                          srv_regobj=arm-with-iwmmxt.o
35
                          srv_xmltarget=arm-with-iwmmxt.xml
36
                          srv_xmlfiles="arm-core.xml xscale-iwmmxt.xml"
37
                        else
38
                          srv_regobj=reg-arm.o
39
                        fi
40
                        ;;
41
  arm*-*-mingw32ce*)    srv_regobj=reg-arm.o
42
                        srv_tgtobj="win32-low.o win32-arm-low.o"
43
                        srv_tgtobj="${srv_tgtobj} wincecompat.o"
44
                        # hostio_last_error implementation is in win32-low.c
45
                        srv_hostio_err_objs=""
46
                        srv_mingw=yes
47
                        srv_mingwce=yes
48
                        ;;
49
  crisv32-*-linux*)     srv_regobj=reg-crisv32.o
50
                        srv_tgtobj="linux-low.o linux-crisv32-low.o"
51
                        srv_linux_regsets=yes
52
                        srv_linux_thread_db=yes
53
                        ;;
54
  cris-*-linux*)        srv_regobj=reg-cris.o
55
                        srv_tgtobj="linux-low.o linux-cris-low.o"
56
                        srv_linux_usrregs=yes
57
                        srv_linux_thread_db=yes
58
                        ;;
59
  i[34567]86-*-cygwin*) srv_regobj=reg-i386.o
60
                        srv_tgtobj="win32-low.o win32-i386-low.o"
61
                        ;;
62
  i[34567]86-*-linux*)  srv_regobj=reg-i386-linux.o
63
                        srv_tgtobj="linux-low.o linux-i386-low.o i387-fp.o"
64
                        srv_linux_usrregs=yes
65
                        srv_linux_regsets=yes
66
                        srv_linux_thread_db=yes
67
                        ;;
68
  i[34567]86-*-mingw*)  srv_regobj=reg-i386.o
69
                        srv_tgtobj="win32-low.o win32-i386-low.o"
70
                        srv_mingw=yes
71
                        ;;
72
  ia64-*-linux*)        srv_regobj=reg-ia64.o
73
                        srv_tgtobj="linux-low.o linux-ia64-low.o"
74
                        srv_linux_usrregs=yes
75
                        ;;
76
  m32r*-*-linux*)       srv_regobj=reg-m32r.o
77
                        srv_tgtobj="linux-low.o linux-m32r-low.o"
78
                        srv_linux_usrregs=yes
79
                        srv_linux_thread_db=yes
80
                        ;;
81
  m68*-*-linux*)        srv_regobj=reg-m68k.o
82
                        srv_tgtobj="linux-low.o linux-m68k-low.o"
83
                        srv_linux_usrregs=yes
84
                        srv_linux_regsets=yes
85
                        srv_linux_thread_db=yes
86
                        ;;
87
  m68*-*-uclinux*)      srv_regobj=reg-m68k.o
88
                        srv_tgtobj="linux-low.o linux-m68k-low.o"
89
                        srv_linux_usrregs=yes
90
                        srv_linux_regsets=yes
91
                        srv_linux_thread_db=yes
92
                        ;;
93
  mips*64*-*-linux*)    srv_regobj=mips64-linux.o
94
                        srv_xmltarget=mips64-linux.xml
95
                        srv_xmlfiles="mips64-cpu.xml mips64-cp0.xml mips64-fpu.xml"
96
                        srv_tgtobj="linux-low.o linux-mips-low.o"
97
                        srv_linux_regsets=yes
98
                        srv_linux_usrregs=yes
99
                        srv_linux_thread_db=yes
100
                        ;;
101
  mips*-*-linux*)       srv_regobj=mips-linux.o
102
                        srv_xmltarget=mips-linux.xml
103
                        srv_xmlfiles="mips-cpu.xml mips-cp0.xml mips-fpu.xml"
104
                        srv_tgtobj="linux-low.o linux-mips-low.o"
105
                        srv_linux_regsets=yes
106
                        srv_linux_usrregs=yes
107
                        srv_linux_thread_db=yes
108
                        ;;
109
  powerpc64-*-linux*)   srv_tgtobj="linux-low.o linux-ppc64-low.o"
110
                        srv_linux_usrregs=yes
111
                        srv_linux_regsets=yes
112
                        srv_linux_thread_db=yes
113
                        if test $gdb_cv_ppc_altivec = yes; then
114
                          srv_regobj=powerpc-64.o
115
                          srv_xmltarget=rs6000/powerpc-64.xml
116
                          srv_xmlfiles="rs6000/power-altivec.xml"
117
                          srv_xmlfiles="$srv_xmlfiles rs6000/power64-core.xml"
118
                          srv_xmlfiles="$srv_xmlfiles rs6000/power-fpu.xml"
119
                        else
120
                          srv_regobj=reg-ppc64.o
121
                        fi
122
                        ;;
123
  powerpc-*-linux*)     srv_tgtobj="linux-low.o linux-ppc-low.o"
124
                        srv_linux_usrregs=yes
125
                        srv_linux_regsets=yes
126
                        srv_linux_thread_db=yes
127
                        if test $gdb_cv_ppc_altivec = yes; then
128
                          srv_regobj=powerpc-32.o
129
                          srv_xmltarget=rs6000/powerpc-32.xml
130
                          srv_xmlfiles="rs6000/power-altivec.xml"
131
                          srv_xmlfiles="$srv_xmlfiles rs6000/power-core.xml"
132
                          srv_xmlfiles="$srv_xmlfiles rs6000/power-fpu.xml"
133
                        elif test $gdb_cv_ppc_spe = yes; then
134
                          srv_regobj=powerpc-e500.o
135
                          srv_xmltarget=rs6000/powerpc-e500.xml
136
                          srv_xmlfiles="rs6000/power-spe.xml"
137
                          srv_xmlfiles="$srv_xmlfiles rs6000/power-core.xml"
138
                        else
139
                          srv_regobj=reg-ppc.o
140
                        fi
141
                        ;;
142
  s390-*-linux*)        srv_regobj=reg-s390.o
143
                        srv_tgtobj="linux-low.o linux-s390-low.o"
144
                        srv_linux_usrregs=yes
145
                        srv_linux_regsets=yes
146
                        srv_linux_thread_db=yes
147
                        ;;
148
  s390x-*-linux*)       srv_regobj=reg-s390x.o
149
                        srv_tgtobj="linux-low.o linux-s390-low.o"
150
                        srv_linux_usrregs=yes
151
                        srv_linux_regsets=yes
152
                        srv_linux_thread_db=yes
153
                        ;;
154
  sh*-*-linux*)         srv_regobj=reg-sh.o
155
                        srv_tgtobj="linux-low.o linux-sh-low.o"
156
                        srv_linux_usrregs=yes
157
                        srv_linux_regsets=yes
158
                        srv_linux_thread_db=yes
159
                        ;;
160
  spu*-*-*)             srv_regobj=reg-spu.o
161
                        srv_tgtobj="spu-low.o"
162
                        ;;
163
  x86_64-*-linux*)      srv_regobj=reg-x86-64-linux.o
164
                        srv_tgtobj="linux-low.o linux-x86-64-low.o i387-fp.o"
165
                        srv_linux_regsets=yes
166
                        srv_linux_thread_db=yes
167
                        ;;
168
  xscale*-*-linux*)     srv_regobj=reg-arm.o
169
                        srv_tgtobj="linux-low.o linux-arm-low.o"
170
                        srv_linux_usrregs=yes
171
                        srv_linux_thread_db=yes
172
                        ;;
173
  xtensa*-*-linux*)     srv_regobj=reg-xtensa.o
174
                        srv_tgtobj="linux-low.o linux-xtensa-low.o"
175
                        srv_linux_regsets=yes
176
                        ;;
177
  *)                    echo "Error: target not supported by gdbserver."
178
                        exit 1
179
                        ;;
180
esac

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.