binutils-gdb/gdb/configure.host

184 lines
5.4 KiB
Plaintext
Raw Normal View History

# Mapping of configurations into GDB host definitions. This is
# invoked from the autoconf generated configure script.
# This file sets the following shell variables:
# gdb_host_cpu generic name of host's CPU
# gdb_host name of GDB host definition to use
# gdb_host_float_format host's float floatformat, or 0
# gdb_host_double_format host's double floatformat, or 0
# gdb_host_long_double_format host's long double floatformat, or 0
# Map host cpu into the config cpu subdirectory name.
# The default is $host_cpu.
case "${host_cpu}" in
alpha*) gdb_host_cpu=alpha ;;
arm*) gdb_host_cpu=arm ;;
hppa*) gdb_host_cpu=pa ;;
i[34567]86*) gdb_host_cpu=i386 ;;
m68*) gdb_host_cpu=m68k ;;
m88*) gdb_host_cpu=m88k ;;
2001-07-10 22:41:54 +02:00
mips*) gdb_host_cpu=mips ;;
powerpc*) gdb_host_cpu=powerpc ;;
sparcv9 | sparc64) gdb_host_cpu=sparc ;;
2001-06-15 21:23:45 +02:00
s390*) gdb_host_cpu=s390 ;;
sh*) gdb_host_cpu=sh ;;
x86_64*) gdb_host_cpu=i386 ;;
xscale*) gdb_host_cpu=arm ;;
m32r*) gdb_host_cpu=m32r ;;
*) gdb_host_cpu=$host_cpu ;;
esac
# map host info into gdb names.
case "${host}" in
alpha*-*-osf1*) gdb_host=alpha-osf1 ;;
alpha*-*-osf2*) gdb_host=alpha-osf2 ;;
alpha*-*-osf[3456789]*) gdb_host=alpha-osf3 ;;
alpha*-*-linux*) gdb_host=alpha-linux ;;
alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
gdb_host=fbsd ;;
alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
gdb_host=nbsd ;;
alpha*-*-openbsd*) gdb_host=nbsd ;;
arm*-*-linux*) gdb_host=linux ;;
arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu)
gdb_host=nbsdelf ;;
* Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and nbsd-tdep.h to dependency list. * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*, i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*, ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use nbsdaout.mh and nbsdelf.mh consistently. * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*, ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use nbsdaout.mt and nbsdelf.mh consistently. * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets. * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move a.out shared library stuff from here... * config/nm-nbsdaout.h: ...to here. * config/tm-nbsd.h: Remove. * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove. * config/arm/nbsd.mh: Remove. * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add nbsd-tdep.o. * config/arm/nbsdaout.mh: New file. * config/arm/nbsdelf.mh: New file. * config/arm/nm-nbsdaout.h: New file. * config/i386/nbsd.mh: Remove. * config/i386/nbsd.mt: Remove. * config/i386/nbsdaout.mh: New file. * config/i386/nbsdaout.mt: New file. * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h. * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h. * config/i386/nm-nbsd.h (REGISTER_U_ADDR, i386_register_u_addr): Remove. * config/i386/nm-nbsdaout.h: New file. * config/i386/nm-nbsdelf.h: Remove. * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h. (USE_STRUCT_CONVENTION): Remove. * config/i386/tm-nbsdaout.h: New file. * config/i386/tm-nbsdelf.h: Remove. * config/m68k/nbsd.mh: Remove. * config/m68k/nbsd.mt: Remove. * config/m68k/nbsdaout.mh: New file. * config/m68k/nbsdaout.mt: New file. * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h. * config/m68k/nm-nbsdaout.h: New file. * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h. (IN_SOLIB_CALL_TRAMPOLINE): Define. * config/ns32k/nbsd.mh: Remove. * config/ns32k/nbsd.mt: Remove. * config/ns32k/nbsdaout.mh: New file. * config/ns32k/nbsdaout.mt: New file. * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. * config/ns32k/nm-nbsdaout.h: New file. * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h. (IN_SOLIB_CALL_TRAMPOLINE): Define. * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h. (SVR4_SHARED_LIBS): Remove. * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h. * config/sparc/nbsd.mh: Remove. * config/sparc/nbsd.mt: Remove. * config/sparc/nbsdaout.mh: New file. * config/sparc/nbsdaout.mt: New file. * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h. * config/sparc/nbsdelf.mt: New file. * config/sparc/nm-nbsdaout.h: New file. * config/sparc/nm-nbsdelf.h: Remove. * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h. * config/sparc/tm-nbsdaout.h: New file.
2002-05-22 05:59:55 +02:00
arm*-*-netbsd*) gdb_host=nbsdaout ;;
arm*-*-openbsd*) gdb_host=nbsdelf ;;
hppa*-*-hpux* | hppa*-*-hiux*)
gdb_host=hpux ;;
hppa*-*-linux*) gdb_host=linux ;;
hppa*-*-openbsd*) gdb_host=obsd ;;
i[34567]86-ncr-*) gdb_host=ncr3000 ;;
i[34567]86-*-dgux*) gdb_host=i386v4 ;;
i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
gdb_host=fbsd ;;
i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu)
gdb_host=nbsdelf ;;
i[34567]86-*-netbsd*) gdb_host=nbsdaout ;;
i[34567]86-*-go32*) gdb_host=go32 ;;
i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
i[34567]86-*-linux*) gdb_host=linux ;;
i[34567]86-*-lynxos*) gdb_host=i386lynx ;;
i[34567]86-*-gnu*) gdb_host=i386gnu ;;
i[3456]86-*-nto*) gdb_host=nto ;;
i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3])
gdb_host=obsdaout ;;
i[34567]86-*-openbsd*) gdb_host=obsd ;;
i[34567]86-*-sco3.2v5*) gdb_host=i386sco5 ;;
i[34567]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
i[34567]86-*-sco*) gdb_host=i386sco ;;
i[34567]86-*-solaris2.1[0-9]*) gdb_host=sol2-64 ;;
i[34567]86-*-solaris*) gdb_host=i386sol2 ;;
i[34567]86-*-sysv4.2*) gdb_host=i386v42mp ;;
i[34567]86-*-sysv4*) gdb_host=i386v4 ;;
i[34567]86-*-sysv5*) gdb_host=i386v42mp ;;
i[34567]86-*-unixware2*) gdb_host=i386v42mp ;;
i[34567]86-*-unixware*) gdb_host=i386v4 ;;
i[34567]86-*-sysv*) gdb_host=i386v ;;
i[34567]86-*-isc*) gdb_host=i386v ;;
i[34567]86-*-cygwin*) gdb_host=cygwin ;;
2000-03-21 06:26:31 +01:00
ia64-*-linux*) gdb_host=linux ;;
m68*-*-linux*) gdb_host=linux ;;
m68*-*-netbsdelf* | m68*-*-knetbsd*-gnu)
gdb_host=nbsdelf ;;
* Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and nbsd-tdep.h to dependency list. * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*, i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*, ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use nbsdaout.mh and nbsdelf.mh consistently. * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*, ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use nbsdaout.mt and nbsdelf.mh consistently. * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets. * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move a.out shared library stuff from here... * config/nm-nbsdaout.h: ...to here. * config/tm-nbsd.h: Remove. * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove. * config/arm/nbsd.mh: Remove. * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add nbsd-tdep.o. * config/arm/nbsdaout.mh: New file. * config/arm/nbsdelf.mh: New file. * config/arm/nm-nbsdaout.h: New file. * config/i386/nbsd.mh: Remove. * config/i386/nbsd.mt: Remove. * config/i386/nbsdaout.mh: New file. * config/i386/nbsdaout.mt: New file. * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h. * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h. * config/i386/nm-nbsd.h (REGISTER_U_ADDR, i386_register_u_addr): Remove. * config/i386/nm-nbsdaout.h: New file. * config/i386/nm-nbsdelf.h: Remove. * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h. (USE_STRUCT_CONVENTION): Remove. * config/i386/tm-nbsdaout.h: New file. * config/i386/tm-nbsdelf.h: Remove. * config/m68k/nbsd.mh: Remove. * config/m68k/nbsd.mt: Remove. * config/m68k/nbsdaout.mh: New file. * config/m68k/nbsdaout.mt: New file. * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h. * config/m68k/nm-nbsdaout.h: New file. * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h. (IN_SOLIB_CALL_TRAMPOLINE): Define. * config/ns32k/nbsd.mh: Remove. * config/ns32k/nbsd.mt: Remove. * config/ns32k/nbsdaout.mh: New file. * config/ns32k/nbsdaout.mt: New file. * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. * config/ns32k/nm-nbsdaout.h: New file. * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h. (IN_SOLIB_CALL_TRAMPOLINE): Define. * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h. (SVR4_SHARED_LIBS): Remove. * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h. * config/sparc/nbsd.mh: Remove. * config/sparc/nbsd.mt: Remove. * config/sparc/nbsdaout.mh: New file. * config/sparc/nbsdaout.mt: New file. * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h. * config/sparc/nbsdelf.mt: New file. * config/sparc/nm-nbsdaout.h: New file. * config/sparc/nm-nbsdelf.h: Remove. * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h. * config/sparc/tm-nbsdaout.h: New file.
2002-05-22 05:59:55 +02:00
m68*-*-netbsd*) gdb_host=nbsdaout ;;
m68*-*-openbsd*) gdb_host=obsd ;;
2004-04-04 Andrew Cagney <cagney@redhat.com> * config/mips/xm-riscos.h: Delete. * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete. * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete. * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete. * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete. * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete. * config/mips/decstation.mh, config/mips/littlemips.mh: Delete. * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete. * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete. * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete. * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete. * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete. * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete. * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete. * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete. * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete. * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete. * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete. * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete. * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete. * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete. * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete. * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete. * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete. * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete. * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete. * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete. * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*, m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*, m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*. * configure.host: Remove m680[01]0-sun-sunos3*, m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*, m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*, m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*, mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*, mips-*-riscos*. * NEWS: Mention removed systems.
2004-04-05 05:52:43 +02:00
m88*-*-openbsd*) gdb_host=obsd ;;
mips-sgi-irix5*) gdb_host=irix5 ;;
mips-sgi-irix6*) gdb_host=irix6 ;;
2001-07-10 22:41:54 +02:00
mips*-*-linux*) gdb_host=linux ;;
mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
gdb_host=nbsd ;;
mips64*-*-openbsd*) gdb_host=obsd64 ;;
powerpc-*-aix*) gdb_host=aix ;;
powerpc-*-linux*) gdb_host=linux ;;
powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
gdb_host=nbsd ;;
powerpc-*-openbsd*) gdb_host=obsd ;;
powerpc64-*-linux*) gdb_host=ppc64-linux ;;
rs6000-*-lynxos*) gdb_host=rs6000lynx ;;
rs6000-*-aix4*) gdb_host=aix4 ;;
rs6000-*-*) gdb_host=rs6000 ;;
2001-06-15 21:23:45 +02:00
s390*-*-*) gdb_host=s390 ;;
sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
gdb_host=nbsd ;;
sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
gdb_host=fbsd ;;
sparc-*-linux*) gdb_host=linux ;;
* Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c, sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c, sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c. (sparc_nat_h): New variable. (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables. (tm-sun4os4.h): Remove dependency. (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies. (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o, sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o, sparc-tdep.o): Update dependencies. (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o, sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o, sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New dependencies. * configure.host: Remove existing sparc-*-lynxos*, sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*, ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*, sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*, sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2* triplets. * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*, sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*, sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*, sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*, sparc64-*-solaris2* and sparc64-*-* triplets. * sparc64-tdep.c: Update copyright year. Include "inferior.h", "symtab.h" and "objfiles.h". (BIAS): Remove define. (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22) (X_DISP19): Remove macros. (sparc_fetch_instruction): Remove function. (struct gdbarch_tdep): Remove definition. (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE. (sparc_breakpoint_from_pc): Remove function. (struct sparc64_frame_cache): Remove definition. (sparc64_alloc_frame_cache, sparc64_analyze_prologue, sparc64_unwind_pc): Remove functions. (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of `struct sparc64_frame_cache. Call sparc_analyze_prologue instead of sparc64_analyze_prologue. Mark constant as ULL instead of UL. (sparc64_frame_cache): Change return type to `struct sparc_frame_cache *'. Simply call sparc_frame_cache. (sparc64_frame_this_id, sparc64_frame_prev_register, sparc64_frame_base_address): Use `struct sparc_frame_cache' instead of `struct sparc64_frame_cache. (sparc_unwind_dummy_id, sparc_extract_struct_value_address, sparc_analyze_control_transfer, sparc_software_single_step, sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow, _initialize_sparc64_tdep): Remove functions. (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros. (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New macros. (sparc64_supply_gregset, sparc64_collect_gregset, sparc64_supply_fpregset, sparc64_collect_fpregset): New functions. (sparc64_init_abi): New function. * sparc64-tdep.h: Update copyright year. Fix typo in multiple inclusion guard. Include "sparc-tdep.h". (BIAS): Define. (r_tstate_offset, r_fprs_offset): New defines. (enum sparc_regnum): Remove defenition. (enum sparc64_regnum): Reformat. (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes. (sparc64_init_abi, sparc64_supply_gregset, sparc64_collect_gregset, sparc64_supply_fpregset, sparc64_collect_fpregset): New prototypes. (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset): Add extern declarations. (sparc64_sol2_init_abi): New prototype. (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg) (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove prototypes. * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include "sparnbsd-nat.h". (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove functions. (_initialize_sparc64fbsd_nat): Remove initialization of sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg, sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p, sparcbsd_fpreg_supplies_p. Initialize sparc_gregset. * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h", "frame-unwind.h", "trad-frame.h" and "gdb_assert.h". (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset) (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset) (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset) (sparc64fbsd_r_y_offset): Remove variables. (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg): Make static and const. (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg) (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove functions. (sparc64fbsd_gregset): New variable. (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset and sparc64_supply_fpregset. (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache) (sparc64fbsd_sigtramp_frame_this_id) (sparc64fbsd_sigtramp_frame_prev_register): New functions. (sparc64fbsd_sigtramp_frame_unwind): New variable. (sparc64fbsd_sigtramp_frame_sniffer): New function. (sparc64fbsd_init_abi): Set pc_in_sigtramp, append sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi. * sparcnbsd-tdep.c: Update copyright year. Include "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h", "trad-frame.h" and "gdb_assert.h", don't include "target.h", "value.h" and "sparcnbsd-tdep.h". (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC) (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT) (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC) (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove defines. (sparcnbsd_gregset): New variable. (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64) (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64) (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64) (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions. (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New variables. (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache) (sparc32nbsd_sigcontext_frame_this_id) (sparc32nbsd_sigcontext_frame_prev_register): New functions. (sparc32nbsd_sigcontext_frame_unwind): New variable. (sparc32nbsd_sigtramp_frame_sniffer): New function. (sparcnbsd_get_longjmp_target_32, sparcnbsd_get_longjmp_target_64): Remove functions. (sparcnbsd_aout_in_solib_call_trampoline): Rewrite. (sparcnbsd_init_abi_common, sparcnbsd_init_aout, sparcnbsd_init_elf): Remove. (sparcnbsd_init_abi, sparcnbsd_aout_init_abi) (sparcnbsd_elf_init_abi): New functions. (_initialize_sparcnbsd_tdep): New prototype. (_initialize_sparnbsd_tdep): Update. * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and corelow.o. Add sparc64-nat.o and sparc-nat.o. * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o. * config/sparc/linux.mh: Update comment. (XM_FILE, HOST_IPC): Remove variables. (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove sparc-linux-nat.o. * config/sparc/linux.mt: Update comment. (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o. * config/sparc/nbsd.mt: Reformat. * config/sparc/nbsd64.mh: Update comment. (NATDEPFILES): Add sparc-nat.o. * config/sparc/nbsd64.mt: Update comment. (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o. (TM_FILE): Set to tm-nbsd.h. * config/sparc/nbsdelf.mh: Update comment. (NATDEPFILES): Add sparc-nat.o. (XM_FILE): Delete. * config/sparc/nbsdaout.mh: Update comment. (NATDEPFILES): Add sparc-nat.o (XM_FILE): Delete. * config/sparc/nm-linux.h: Update copyright year. Don't include "config/nm-svr4.h" and "solib.h". Add protection against multiple inclusion. (KERNEL_U_SIZE): Remove define. (kernel_u_size): Remove prototype. (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define. * config/sparc/nm-nbsd.h: Update copyright. Don't include "regcache.h". (CHILD_PREPARE_TO_STORE): Remove define. * config/sparc/nm-nbsdaout.h: Tweak some comments. * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c, sparcnbsd-nat.c: Rewrite files. * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files. * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h, sparcnbsd-tdep.h: Remove files. * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt, config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt, config/sparc/sparc-em.mt, config/sparc/sparclynx.mh, config/sparc/sparclynx.mt, config/sparc/sun4os4.mh, config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh, config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h, config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h, config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h, config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt, config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files. * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c, sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c, sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files. * config/sparc/linux64.mh, config/sparc/linux64.mt, config/sparc/nm-sol2.h, config/sparc/sol2-64.mt, config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt, config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
2004-01-03 11:08:45 +01:00
sparc64-*-linux*) gdb_host=linux64 ;;
sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu)
gdb_host=nbsdelf ;;
* Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and nbsd-tdep.h to dependency list. * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*, i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*, ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use nbsdaout.mh and nbsdelf.mh consistently. * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*, ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use nbsdaout.mt and nbsdelf.mh consistently. * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets. * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move a.out shared library stuff from here... * config/nm-nbsdaout.h: ...to here. * config/tm-nbsd.h: Remove. * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove. * config/arm/nbsd.mh: Remove. * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add nbsd-tdep.o. * config/arm/nbsdaout.mh: New file. * config/arm/nbsdelf.mh: New file. * config/arm/nm-nbsdaout.h: New file. * config/i386/nbsd.mh: Remove. * config/i386/nbsd.mt: Remove. * config/i386/nbsdaout.mh: New file. * config/i386/nbsdaout.mt: New file. * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h. * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h. * config/i386/nm-nbsd.h (REGISTER_U_ADDR, i386_register_u_addr): Remove. * config/i386/nm-nbsdaout.h: New file. * config/i386/nm-nbsdelf.h: Remove. * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h. (USE_STRUCT_CONVENTION): Remove. * config/i386/tm-nbsdaout.h: New file. * config/i386/tm-nbsdelf.h: Remove. * config/m68k/nbsd.mh: Remove. * config/m68k/nbsd.mt: Remove. * config/m68k/nbsdaout.mh: New file. * config/m68k/nbsdaout.mt: New file. * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h. * config/m68k/nm-nbsdaout.h: New file. * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h. (IN_SOLIB_CALL_TRAMPOLINE): Define. * config/ns32k/nbsd.mh: Remove. * config/ns32k/nbsd.mt: Remove. * config/ns32k/nbsdaout.mh: New file. * config/ns32k/nbsdaout.mt: New file. * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. * config/ns32k/nm-nbsdaout.h: New file. * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h. (IN_SOLIB_CALL_TRAMPOLINE): Define. * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h. (SVR4_SHARED_LIBS): Remove. * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h. * config/sparc/nbsd.mh: Remove. * config/sparc/nbsd.mt: Remove. * config/sparc/nbsdaout.mh: New file. * config/sparc/nbsdaout.mt: New file. * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h. * config/sparc/nbsdelf.mt: New file. * config/sparc/nm-nbsdaout.h: New file. * config/sparc/nm-nbsdelf.h: Remove. * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h. * config/sparc/tm-nbsdaout.h: New file.
2002-05-22 05:59:55 +02:00
sparc-*-netbsdaout*) gdb_host=nbsdaout ;;
sparc-*-netbsd*) gdb_host=nbsdaout ;;
sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
gdb_host=nbsd64 ;;
sparc-*-openbsd*) gdb_host=nbsdelf ;;
sparc64-*-openbsd*) gdb_host=nbsd64 ;;
* Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c, sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c, sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c. (sparc_nat_h): New variable. (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables. (tm-sun4os4.h): Remove dependency. (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies. (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o, sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o, sparc-tdep.o): Update dependencies. (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o, sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o, sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New dependencies. * configure.host: Remove existing sparc-*-lynxos*, sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*, ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*, sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*, sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2* triplets. * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*, sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*, sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*, sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*, sparc64-*-solaris2* and sparc64-*-* triplets. * sparc64-tdep.c: Update copyright year. Include "inferior.h", "symtab.h" and "objfiles.h". (BIAS): Remove define. (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22) (X_DISP19): Remove macros. (sparc_fetch_instruction): Remove function. (struct gdbarch_tdep): Remove definition. (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE. (sparc_breakpoint_from_pc): Remove function. (struct sparc64_frame_cache): Remove definition. (sparc64_alloc_frame_cache, sparc64_analyze_prologue, sparc64_unwind_pc): Remove functions. (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of `struct sparc64_frame_cache. Call sparc_analyze_prologue instead of sparc64_analyze_prologue. Mark constant as ULL instead of UL. (sparc64_frame_cache): Change return type to `struct sparc_frame_cache *'. Simply call sparc_frame_cache. (sparc64_frame_this_id, sparc64_frame_prev_register, sparc64_frame_base_address): Use `struct sparc_frame_cache' instead of `struct sparc64_frame_cache. (sparc_unwind_dummy_id, sparc_extract_struct_value_address, sparc_analyze_control_transfer, sparc_software_single_step, sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow, _initialize_sparc64_tdep): Remove functions. (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros. (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New macros. (sparc64_supply_gregset, sparc64_collect_gregset, sparc64_supply_fpregset, sparc64_collect_fpregset): New functions. (sparc64_init_abi): New function. * sparc64-tdep.h: Update copyright year. Fix typo in multiple inclusion guard. Include "sparc-tdep.h". (BIAS): Define. (r_tstate_offset, r_fprs_offset): New defines. (enum sparc_regnum): Remove defenition. (enum sparc64_regnum): Reformat. (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes. (sparc64_init_abi, sparc64_supply_gregset, sparc64_collect_gregset, sparc64_supply_fpregset, sparc64_collect_fpregset): New prototypes. (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset): Add extern declarations. (sparc64_sol2_init_abi): New prototype. (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg) (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove prototypes. * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include "sparnbsd-nat.h". (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove functions. (_initialize_sparc64fbsd_nat): Remove initialization of sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg, sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p, sparcbsd_fpreg_supplies_p. Initialize sparc_gregset. * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h", "frame-unwind.h", "trad-frame.h" and "gdb_assert.h". (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset) (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset) (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset) (sparc64fbsd_r_y_offset): Remove variables. (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg): Make static and const. (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg) (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove functions. (sparc64fbsd_gregset): New variable. (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset and sparc64_supply_fpregset. (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache) (sparc64fbsd_sigtramp_frame_this_id) (sparc64fbsd_sigtramp_frame_prev_register): New functions. (sparc64fbsd_sigtramp_frame_unwind): New variable. (sparc64fbsd_sigtramp_frame_sniffer): New function. (sparc64fbsd_init_abi): Set pc_in_sigtramp, append sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi. * sparcnbsd-tdep.c: Update copyright year. Include "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h", "trad-frame.h" and "gdb_assert.h", don't include "target.h", "value.h" and "sparcnbsd-tdep.h". (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC) (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT) (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC) (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove defines. (sparcnbsd_gregset): New variable. (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64) (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64) (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64) (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions. (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New variables. (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache) (sparc32nbsd_sigcontext_frame_this_id) (sparc32nbsd_sigcontext_frame_prev_register): New functions. (sparc32nbsd_sigcontext_frame_unwind): New variable. (sparc32nbsd_sigtramp_frame_sniffer): New function. (sparcnbsd_get_longjmp_target_32, sparcnbsd_get_longjmp_target_64): Remove functions. (sparcnbsd_aout_in_solib_call_trampoline): Rewrite. (sparcnbsd_init_abi_common, sparcnbsd_init_aout, sparcnbsd_init_elf): Remove. (sparcnbsd_init_abi, sparcnbsd_aout_init_abi) (sparcnbsd_elf_init_abi): New functions. (_initialize_sparcnbsd_tdep): New prototype. (_initialize_sparnbsd_tdep): Update. * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and corelow.o. Add sparc64-nat.o and sparc-nat.o. * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o. * config/sparc/linux.mh: Update comment. (XM_FILE, HOST_IPC): Remove variables. (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove sparc-linux-nat.o. * config/sparc/linux.mt: Update comment. (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o. * config/sparc/nbsd.mt: Reformat. * config/sparc/nbsd64.mh: Update comment. (NATDEPFILES): Add sparc-nat.o. * config/sparc/nbsd64.mt: Update comment. (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o. (TM_FILE): Set to tm-nbsd.h. * config/sparc/nbsdelf.mh: Update comment. (NATDEPFILES): Add sparc-nat.o. (XM_FILE): Delete. * config/sparc/nbsdaout.mh: Update comment. (NATDEPFILES): Add sparc-nat.o (XM_FILE): Delete. * config/sparc/nm-linux.h: Update copyright year. Don't include "config/nm-svr4.h" and "solib.h". Add protection against multiple inclusion. (KERNEL_U_SIZE): Remove define. (kernel_u_size): Remove prototype. (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define. * config/sparc/nm-nbsd.h: Update copyright. Don't include "regcache.h". (CHILD_PREPARE_TO_STORE): Remove define. * config/sparc/nm-nbsdaout.h: Tweak some comments. * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c, sparcnbsd-nat.c: Rewrite files. * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files. * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h, sparcnbsd-tdep.h: Remove files. * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt, config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt, config/sparc/sparc-em.mt, config/sparc/sparclynx.mh, config/sparc/sparclynx.mt, config/sparc/sun4os4.mh, config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh, config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h, config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h, config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h, config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt, config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files. * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c, sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c, sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files. * config/sparc/linux64.mh, config/sparc/linux64.mt, config/sparc/nm-sol2.h, config/sparc/sol2-64.mt, config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt, config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
2004-01-03 11:08:45 +01:00
sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
gdb_host=sol2
;;
vax-*-bsd*) gdb_host=vax ;;
vax-*-netbsdelf* | vax-*-knetbsd*-gnu)
gdb_host=nbsdelf ;;
vax-*-netbsd*) gdb_host=nbsdaout ;;
vax-*-openbsd*) gdb_host=obsd ;;
vax-*-ultrix*) gdb_host=vax ;;
* amd64-tdep.h: Renamed from x86-64-tdep.h. * amd64-tdep.c: Renamed from x86-64-tdep.c. Include "amd64-tdep.h" instead of "x86-64-tdep.h". * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h". * amd64-linux-tdep.h: Renamed from x86-64-linux.h. * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h" and "x86-64-tdep.c". * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h" and "x86-64-tdep.c". * amd64bsd-nat.c: Update copyright year. Include "amd64-tdep.h" instead of "x86-64-tdep.h". * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h". * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h". * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h". * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h". * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h". * amd64obsd-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h". * configure.host: (x86_64-*-linux*): Set gdb_target to linux64. * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64. * Makefile.in (amd64_linux_tdep_h): Renamed from x86_64_linux_tdep_h. (amd64_tdep_h): Renamed from x86_64_tdep_h. (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o) (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o) (amd64obsd-tdep.o): Update dependencies. (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New dependencies. (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove dependencies. (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c, amd64-linux-nat.c amd64-linux-tdep.c. * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h. * config/i386/linux64.mt: Renamed from x86-64linux.mt. (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with amd64-tdep.o and amd64-linux-tdep.o. (TM_FILE): Set to tm-linux64.h. * config/i386/linux64.mh: Renamed from x86-64linux.mh. (NAT_FILE): Set to nm-linux64.h. (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o. * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with amd64-tdep.o. * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with amd64-tdep.o. * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with amd64-tdep.o.
2004-02-25 21:45:31 +01:00
x86_64-*-linux*) gdb_host=linux64 ;;
x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
gdb_host=fbsd64 ;;
x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
gdb_host=nbsd64 ;;
x86_64-*-openbsd*) gdb_host=obsd64 ;;
m32r*-*-linux*) gdb_host=linux ;;
esac
# Map the host/cpu onto the floatformat correspondong to C's "float",
# "double" and "long double" types.
case "${host}" in
i[34567]86-*-*)
gdb_host_float_format="&floatformat_ieee_single_little"
gdb_host_double_format="&floatformat_ieee_double_little"
gdb_host_long_double_format="&floatformat_i387_ext"
;;
hppa*-*-linux*)
gdb_host_float_format="&floatformat_ieee_single_big"
gdb_host_double_format="&floatformat_ieee_double_big"
gdb_host_long_double_format="&floatformat_ieee_double_big"
;;
m68*-*-*)
gdb_host_float_format="&floatformat_ieee_single_big"
gdb_host_double_format="&floatformat_ieee_double_big"
gdb_host_long_double_format="&floatformat_m68881_ext"
;;
*)
gdb_host_float_format=0
gdb_host_double_format=0
gdb_host_long_double_format=0
;;
esac