fix typos in ada-lang.c comment
[deliverable/binutils-gdb.git] / gdb / configure.nat
1 # ; -*- mode: sh ; -*-
2 # Copyright (C) 2013-2017 Free Software Foundation, Inc.
3 #
4 # This file is part of GDB.
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 # Variables defined here:
20 #
21 # NAT_FILE - The header file with definitions for this native target.
22 #
23 # NATDEPFILES - Source files required for native debugging on this
24 # native target.
25 #
26 # NAT_CDEPS - Dynamic symbols to be exported for libthread_db.
27 #
28 # LOADLIBES - Libraries against which GDB will be linked for this
29 # native target.
30 #
31 # MH_CFLAGS - Additional CFLAGS for this host.
32 #
33 # XM_CLIBS - Host-dependent libraries against which GDB will be linked
34 # for this native target.
35 #
36 # HAVE_NATIVE_GCORE_HOST - Whether gcore should be installed on this
37 # native target.
38 #
39 # nat_makefile_frag - Name of the (optional) Makefile fragment file
40 # required to build the native target. The
41 # fragment is incorporated into the Makefile that
42 # configure constructs from Makefile.in.
43 #
44 # Notes:
45 #
46 # - To avoid shell expansion of variables, declare them with single
47 # quotes.
48 #
49 # - nat_makefile_frag must contain the full path of the file.
50
51
52 # This first case is useful for filling default values for each
53 # gdb_host.
54 case ${gdb_host} in
55 *linux*)
56 NAT_FILE='config/nm-linux.h'
57 NATDEPFILES='inf-ptrace.o fork-child.o fork-inferior.o proc-service.o \
58 linux-thread-db.o linux-nat.o linux-osdata.o linux-fork.o \
59 linux-procfs.o linux-ptrace.o linux-waitpid.o \
60 linux-personality.o linux-namespaces.o'
61 NAT_CDEPS='$(srcdir)/proc-service.list'
62 LOADLIBES='-ldl $(RDYNAMIC)'
63 ;;
64 fbsd*)
65 NATDEPFILES='fork-child.o fork-inferior.o inf-ptrace.o fbsd-nat.o'
66 HAVE_NATIVE_GCORE_HOST=1
67 LOADLIBES='-lkvm'
68 ;;
69 nbsd*)
70 NATDEPFILES='fork-child.o fork-inferior.o inf-ptrace.o'
71 HAVE_NATIVE_GCORE_HOST=1
72 ;;
73 obsd*)
74 NATDEPFILES='fork-child.o fork-inferior.o inf-ptrace.o'
75 ;;
76 cygwin*)
77 NATDEPFILES='x86-nat.o x86-dregs.o windows-nat.o'
78 ;;
79 mingw*)
80 NATDEPFILES='x86-nat.o x86-dregs.o windows-nat.o'
81 ;;
82 aix)
83 NATDEPFILES='fork-inferior.o fork-child.o inf-ptrace.o'
84 ;;
85 darwin)
86 NATDEPFILES='fork-child.o fork-inferior.o darwin-nat.o \
87 darwin-nat-info.o'
88 ;;
89 sol2)
90 NATDEPFILES='fork-child.o fork-inferior.o \
91 procfs.o proc-api.o proc-events.o proc-flags.o proc-why.o \
92 sol-thread.o'
93 HAVE_NATIVE_GCORE_HOST=1
94 ;;
95 esac
96
97 # This is where we actually filter by host and host CPU.
98 case ${gdb_host} in
99 aix)
100 case ${gdb_host_cpu} in
101 powerpc)
102 # Host: IBM PowerPC running AIX aix-thread.o is not
103 # listed in NATDEPFILES as it is pulled in by
104 # configure.
105 NATDEPFILES="${NATDEPFILES} rs6000-nat.o"
106
107 # When compiled with cc, for debugging, this argument
108 # should be passed. We have no idea who our current
109 # compiler is though, so we skip it.
110 # MH_CFLAGS='-bnodelcsect'
111 ;;
112 esac
113 ;;
114 alpha-linux)
115 case ${gdb_host_cpu} in
116 alpha)
117 # Host: Little-endian Alpha running Linux
118 NATDEPFILES="${NATDEPFILES} alpha-linux-nat.o"
119 # doublest.c currently assumes some properties of FP arithmetic
120 # on the host which require this.
121 MH_CFLAGS='-mieee'
122 ;;
123 esac
124 ;;
125 cygwin)
126 case ${gdb_host_cpu} in
127 i386)
128 # Native config information for GDB on i386
129 # systems running Cygwin.
130 NATDEPFILES="${NATDEPFILES} i386-windows-nat.o"
131 ;;
132 esac
133 ;;
134 cygwin64)
135 case ${gdb_host_cpu} in
136 i386)
137 # Native config information for GDB on amd64
138 # systems running Cygwin.
139 NATDEPFILES="${NATDEPFILES} amd64-windows-nat.o"
140 ;;
141 esac
142 ;;
143 darwin)
144 case ${gdb_host_cpu} in
145 i386)
146 # Host: IA86 running Darwin
147 NATDEPFILES="${NATDEPFILES} i386-darwin-nat.o x86-nat.o \
148 x86-dregs.o amd64-nat.o"
149 ;;
150 esac
151 ;;
152 fbsd)
153 case ${gdb_host_cpu} in
154 aarch64)
155 # Host: FreeBSD/aarch64
156 NATDEPFILES="${NATDEPFILES} aarch64-fbsd-nat.o"
157 LOADLIBES=
158 ;;
159 arm)
160 # Host: FreeBSD/arm
161 NATDEPFILES="${NATDEPFILES} arm-fbsd-nat.o"
162 LOADLIBES=
163 ;;
164 i386)
165 # Host: FreeBSD/i386
166 NATDEPFILES="${NATDEPFILES} x86-nat.o x86-dregs.o \
167 x86-bsd-nat.o i386-bsd-nat.o i386-fbsd-nat.o bsd-kvm.o"
168 NAT_FILE='nm-fbsd.h'
169 ;;
170 mips)
171 # Host: FreeBSD/mips
172 NATDEPFILES="${NATDEPFILES} mips-fbsd-nat.o"
173 LOADLIBES=
174 ;;
175 powerpc)
176 # Native config information for GDB on PowerPC
177 # systems running FreeBSD.
178 NATDEPFILES="${NATDEPFILES} ppc-fbsd-nat.o bsd-kvm.o"
179 ;;
180 sparc)
181 # Host: FreeBSD/sparc64
182 NATDEPFILES="${NATDEPFILES} sparc-nat.o sparc64-nat.o \
183 sparc64-fbsd-nat.o bsd-kvm.o"
184 ;;
185 esac
186 ;;
187 fbsd64)
188 case ${gdb_host_cpu} in
189 i386)
190 # Host: FreeBSD/amd64
191 NATDEPFILES="${NATDEPFILES} amd64-nat.o amd64-bsd-nat.o \
192 amd64-fbsd-nat.o bsd-kvm.o x86-nat.o x86-dregs.o x86-bsd-nat.o"
193 ;;
194 esac
195 ;;
196 go32)
197 case ${gdb_host_cpu} in
198 i386)
199 # Host: Intel x86 running DJGPP
200 # We include several header files from config/djgpp
201 MH_CFLAGS='-I$(srcdir)/config/djgpp'
202 NATDEPFILES='go32-nat.o x86-nat.o x86-dregs.o'
203 XM_CLIBS='-ldbg'
204 ;;
205 esac
206 ;;
207 i386gnu)
208 case ${gdb_host_cpu} in
209 i386)
210 # Host: Intel 386 running the GNU Hurd
211 NATDEPFILES='i386-gnu-nat.o gnu-nat.o \
212 x86-nat.o x86-dregs.o fork-child.o \
213 notify_S.o process_reply_S.o msg_reply_S.o \
214 msg_U.o exc_request_U.o exc_request_S.o'
215 HAVE_NATIVE_GCORE_HOST=1
216
217 NAT_FILE='nm-i386gnu.h'
218 MH_CFLAGS='-D_GNU_SOURCE'
219
220 XM_CLIBS='-lshouldbeinlibc'
221
222 nat_makefile_frag="${srcdir}/config/${gdb_host_cpu}/i386gnu.mn"
223 ;;
224 esac
225 ;;
226 linux)
227 case ${gdb_host_cpu} in
228 aarch64)
229 # Host: AArch64 based machine running GNU/Linux
230 NATDEPFILES="${NATDEPFILES} aarch64-linux-nat.o \
231 aarch32-linux-nat.o aarch64-linux-hw-point.o aarch64-linux.o"
232 ;;
233 arm)
234 # Host: ARM based machine running GNU/Linux
235 NATDEPFILES="${NATDEPFILES} arm-linux-nat.o \
236 aarch32-linux-nat.o"
237 ;;
238 i386)
239 # Host: Intel 386 running GNU/Linux.
240 NATDEPFILES="${NATDEPFILES} x86-nat.o x86-dregs.o \
241 i386-linux-nat.o x86-linux-nat.o linux-btrace.o \
242 x86-linux.o x86-linux-dregs.o"
243 ;;
244 ia64)
245 # Host: Intel IA-64 running GNU/Linux
246 NATDEPFILES="${NATDEPFILES} ia64-linux-nat.o"
247 ;;
248 m32r)
249 # Host: M32R based machine running GNU/Linux
250 NATDEPFILES="${NATDEPFILES} m32r-linux-nat.o"
251 ;;
252 m68k)
253 # Host: Motorola m68k running GNU/Linux.
254 NATDEPFILES="${NATDEPFILES} m68k-linux-nat.o"
255 ;;
256 mips)
257 # Host: Linux/MIPS
258 NATDEPFILES="${NATDEPFILES} mips-linux-nat.o \
259 mips-linux-watch.o"
260 ;;
261 pa)
262 # Host: Hewlett-Packard PA-RISC machine, running Linux
263 NATDEPFILES="${NATDEPFILES} hppa-linux-nat.o"
264 ;;
265 powerpc)
266 # Host: PowerPC, running Linux
267 NATDEPFILES="${NATDEPFILES} ppc-linux-nat.o"
268 ;;
269 s390)
270 # Host: S390, running Linux
271 NATDEPFILES="${NATDEPFILES} s390-linux-nat.o"
272 ;;
273 sparc)
274 # Host: GNU/Linux SPARC
275 NATDEPFILES="${NATDEPFILES} sparc-nat.o sparc-linux-nat.o"
276 ;;
277 tilegx)
278 # Host: Tilera TILE-Gx running GNU/Linux.
279 NATDEPFILES="${NATDEPFILES} tilegx-linux-nat.o"
280 NAT_CDEPS=
281 ;;
282 xtensa)
283 # Host: Xtensa, running GNU/Linux.
284 NATDEPFILES="${NATDEPFILES} xtensa-linux-nat.o"
285 ;;
286 esac
287 ;;
288 linux64)
289 case ${gdb_host_cpu} in
290 i386)
291 # Host: GNU/Linux x86-64
292 NATDEPFILES="${NATDEPFILES} x86-nat.o x86-dregs.o \
293 amd64-nat.o amd64-linux-nat.o x86-linux-nat.o linux-btrace.o \
294 x86-linux.o x86-linux-dregs.o amd64-linux-siginfo.o"
295 ;;
296 sparc)
297 # Host: GNU/Linux UltraSPARC
298 NATDEPFILES="${NATDEPFILES} sparc-nat.o sparc64-nat.o \
299 sparc64-linux-nat.o"
300 ;;
301 esac
302 ;;
303 mingw)
304 case ${gdb_host_cpu} in
305 i386)
306 NATDEPFILES="${NATDEPFILES} i386-windows-nat.o"
307 ;;
308 esac
309 ;;
310 mingw64)
311 case ${gdb_host_cpu} in
312 i386)
313 NATDEPFILES="${NATDEPFILES} amd64-windows-nat.o"
314 ;;
315 esac
316 ;;
317 nbsd)
318 case ${gdb_host_cpu} in
319 alpha)
320 # Host: NetBSD/alpha
321 NATDEPFILES="${NATDEPFILES} alpha-bsd-nat.o bsd-kvm.o"
322 LOADLIBES='-lkvm'
323 ;;
324 mips)
325 # Host: NetBSD/mips
326 NATDEPFILES="${NATDEPFILES} mips-nbsd-nat.o"
327 ;;
328 pa)
329 # Host: NetBSD/hppa
330 NATDEPFILES="${NATDEPFILES} nbsd-nat.o hppa-nbsd-nat.o"
331 ;;
332 powerpc)
333 # Host: NetBSD/powerpc
334 NATDEPFILES="${NATDEPFILES} ppc-nbsd-nat.o bsd-kvm.o"
335 LOADLIBES='-lkvm'
336 ;;
337 sh)
338 # Host: NetBSD/sh
339 NATDEPFILES="${NATDEPFILES} sh-nbsd-nat.o"
340 ;;
341
342 esac
343 ;;
344 nbsd64)
345 case ${gdb_host_cpu} in
346 i386)
347 # Host: NetBSD/amd64
348 NATDEPFILES="${NATDEPFILES} nbsd-nat.o amd64-nat.o x86-nat.o \
349 x86-dregs.o x86-bsd-nat.o amd64-bsd-nat.o amd64-nbsd-nat.o"
350 ;;
351 sparc)
352 # Host: NetBSD/sparc64
353 NATDEPFILES="${NATDEPFILES} sparc64-nbsd-nat.o sparc-nat.o \
354 bsd-kvm.o"
355 LOADLIBES='-lkvm'
356 ;;
357
358 esac
359 ;;
360 nbsdelf)
361 case ${gdb_host_cpu} in
362 arm)
363 # Host: NetBSD/arm
364 NATDEPFILES="${NATDEPFILES} arm-nbsd-nat.o"
365 ;;
366 i386)
367 # Host: NetBSD/i386 ELF
368 NATDEPFILES="${NATDEPFILES} nbsd-nat.o x86-nat.o x86-dregs.o \
369 x86-bsd-nat.o i386-bsd-nat.o i386-nbsd-nat.o bsd-kvm.o"
370 LOADLIBES='-lkvm'
371 ;;
372 m68k)
373 # Host: NetBSD/m68k ELF
374 NATDEPFILES="${NATDEPFILES} m68k-bsd-nat.o bsd-kvm.o"
375 LOADLIBES='-lkvm'
376 ;;
377 sparc)
378 # Host: NetBSD/sparc ELF
379 NATDEPFILES="${NATDEPFILES} sparc-nat.o sparc-nbsd-nat.o \
380 bsd-kvm.o"
381 LOADLIBES='-lkvm'
382 ;;
383 vax)
384 # Host: NetBSD/vax ELF
385 NATDEPFILES="${NATDEPFILES} vax-bsd-nat.o bsd-kvm.o"
386 LOADLIBES='-lkvm'
387 ;;
388
389 esac
390 ;;
391 nto)
392 case ${gdb_host_cpu} in
393 i386)
394 # Host: Intel 386 running QNX.
395 NATDEPFILES='nto-procfs.o'
396 NAT_FILE='config/nm-nto.h'
397 ;;
398 esac
399 ;;
400 obsd)
401 case ${gdb_host_cpu} in
402 i386)
403 # Host: OpenBSD/i386 ELF
404 NATDEPFILES="${NATDEPFILES} obsd-nat.o x86-bsd-nat.o \
405 i386-bsd-nat.o i386-obsd-nat.o bsd-kvm.o"
406 LOADLIBES='-lkvm'
407 ;;
408 m68k)
409 # Host: OpenBSD/m68k
410 NATDEPFILES="${NATDEPFILES} m68k-bsd-nat.o bsd-kvm.o"
411 LOADLIBES='-lkvm'
412 ;;
413 m88k)
414 # Host: OpenBSD/m88k
415 NATDEPFILES="${NATDEPFILES} m88k-bsd-nat.o"
416 ;;
417 pa)
418 # Host: OpenBSD/hppa
419 NATDEPFILES="${NATDEPFILES} obsd-nat.o hppa-obsd-nat.o"
420 ;;
421 powerpc)
422 # Host: OpenBSD/powerpc
423 NATDEPFILES="${NATDEPFILES} obsd-nat.o ppc-obsd-nat.o bsd-kvm.o"
424 LOADLIBES='-lkvm'
425 ;;
426 vax)
427 # Host: OpenBSD/vax
428 NATDEPFILES="${NATDEPFILES} vax-bsd-nat.o bsd-kvm.o"
429 LOADLIBES='-lkvm'
430 ;;
431 esac
432 ;;
433 obsd64)
434 case ${gdb_host_cpu} in
435 i386)
436 # Host: OpenBSD/amd64
437 NATDEPFILES="${NATDEPFILES} obsd-nat.o amd64-nat.o \
438 x86-bsd-nat.o amd64-bsd-nat.o amd64-obsd-nat.o bsd-kvm.o"
439 LOADLIBES='-lkvm'
440 ;;
441 mips)
442 # Host: OpenBSD/mips64
443 NATDEPFILES="${NATDEPFILES} obsd-nat.o mips64-obsd-nat.o"
444 ;;
445 sparc)
446 # Host: OpenBSD/sparc64
447 NATDEPFILES="${NATDEPFILES} obsd-nat.o sparc64-obsd-nat.o \
448 sparc-nat.o bsd-kvm.o"
449 LOADLIBES='-lkvm'
450 ;;
451 esac
452 ;;
453 ppc64-linux)
454 case ${gdb_host_cpu} in
455 powerpc)
456 # Host: PowerPC64, running Linux
457 XM_CLIBS=
458 NATDEPFILES="${NATDEPFILES} ppc-linux-nat.o ppc-linux.o"
459 ;;
460 esac
461 ;;
462 sol2)
463 case ${gdb_host_cpu} in
464 i386)
465 # Host: Solaris x86_64
466 NATDEPFILES="${NATDEPFILES} \
467 amd64-nat.o i386-v4-nat.o i386-sol2-nat.o"
468 ;;
469 sparc)
470 # Host: Solaris SPARC & UltraSPARC
471 NAT_FILE='nm-sol2.h'
472 NATDEPFILES="${NATDEPFILES} sparc-sol2-nat.o"
473 ;;
474 esac
475 ;;
476 spu-linux)
477 case ${gdb_host_cpu} in
478 powerpc)
479 # Target: Cell BE (PowerPC64 + SPU)
480 # This implements a 'pseudo-native' GDB running on the
481 # PPU side of the Cell BE and debugging the SPU side.
482 NAT_FILE=
483 NAT_CDEPS=
484 LOADLIBES=
485 NATDEPFILES='spu-linux-nat.o fork-child.o inf-ptrace.o \
486 linux-procfs.o linux-ptrace.o linux-waitpid.o \
487 linux-personality.o linux-namespaces.o'
488 ;;
489 esac
490 ;;
491 esac
This page took 0.040627 seconds and 4 git commands to generate.