1994-06-17 00:02:24 +02:00
|
|
|
# This file is a shell script fragment that supplies the information
|
|
|
|
# necessary to tailor a template configure script into the configure
|
1994-09-10 00:44:13 +02:00
|
|
|
# script approriate for this directory. For more information, check
|
1994-06-17 00:02:24 +02:00
|
|
|
# any existing configure script.
|
|
|
|
|
1991-05-19 02:16:46 +02:00
|
|
|
srcname="GDB"
|
|
|
|
srctrigger=main.c
|
1991-12-07 09:03:27 +01:00
|
|
|
|
1994-06-17 00:02:24 +02:00
|
|
|
configdirs="doc testsuite"
|
|
|
|
|
1991-04-16 01:46:50 +02:00
|
|
|
# per-host:
|
|
|
|
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 02:01:49 +01:00
|
|
|
# Map host cpu into the config cpu subdirectory name.
|
|
|
|
# The default is $host_cpu.
|
|
|
|
|
|
|
|
case "${host_cpu}" in
|
|
|
|
|
|
|
|
c[12]) gdb_host_cpu=convex ;;
|
|
|
|
hppa*) gdb_host_cpu=pa ;;
|
1994-08-24 19:12:57 +02:00
|
|
|
i[345]86) gdb_host_cpu=i386 ;;
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 02:01:49 +01:00
|
|
|
m68*) gdb_host_cpu=m68k ;;
|
1994-06-17 00:02:24 +02:00
|
|
|
m88*) gdb_host_cpu=m88k ;;
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 02:01:49 +01:00
|
|
|
np1) gdb_host_cpu=gould ;;
|
|
|
|
pyramid) gdb_host_cpu=pyr ;;
|
|
|
|
*) gdb_host_cpu=$host_cpu ;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
1991-08-22 09:07:58 +02:00
|
|
|
# map host info into gdb names.
|
|
|
|
|
1992-08-27 06:15:42 +02:00
|
|
|
case "${host}" in
|
1991-08-22 09:07:58 +02:00
|
|
|
|
1992-08-27 06:15:42 +02:00
|
|
|
a29k-*-*) gdb_host=ultra3 ;;
|
|
|
|
|
1993-06-18 00:16:07 +02:00
|
|
|
alpha-*-osf*) gdb_host=alpha-osf1 ;;
|
|
|
|
|
1992-08-27 06:15:42 +02:00
|
|
|
arm-*-*) gdb_host=arm ;;
|
|
|
|
|
|
|
|
c[12]-*-*) gdb_host=convex ;;
|
|
|
|
|
1993-10-05 18:51:13 +01:00
|
|
|
hppa*-*-bsd*) gdb_host=hppabsd ;;
|
|
|
|
hppa*-*-hiux*) gdb_host=hppahpux ;;
|
1994-06-17 00:02:24 +02:00
|
|
|
hppa*-*-hpux*) gdb_host=hppahpux ;;
|
1994-02-24 17:10:15 +01:00
|
|
|
hppa*-*-osf*) gdb_host=hppabsd ;;
|
1992-08-27 06:15:42 +02:00
|
|
|
|
1994-08-24 19:12:57 +02:00
|
|
|
i[345]86-ncr-*) gdb_host=ncr3000 ;;
|
|
|
|
i[345]86-sequent-bsd*) gdb_host=symmetry ;; # dynix
|
|
|
|
i[345]86-sequent-sysv4*) gdb_host=ptx4 ;;
|
|
|
|
i[345]86-sequent-sysv*) gdb_host=ptx ;;
|
|
|
|
i[345]86-*-aix*) gdb_host=i386aix ;;
|
|
|
|
i[345]86-*-bsd*) gdb_host=i386bsd ;;
|
1994-11-29 22:47:48 +01:00
|
|
|
i[345]86-*-freebsd*) gdb_host=fbsd ;;
|
1994-09-03 02:45:30 +02:00
|
|
|
i[345]86-*-netbsd*) gdb_host=nbsd ;;
|
1994-08-24 19:12:57 +02:00
|
|
|
i[345]86-*-go32*) gdb_host=go32 ;;
|
|
|
|
i[345]86-*-linux*) gdb_host=linux ;;
|
|
|
|
i[345]86-*-lynxos*) gdb_host=i386lynx ;;
|
|
|
|
i[345]86-*-mach3*) gdb_host=i386m3 ;;
|
|
|
|
i[345]86-*-mach*) gdb_host=i386mach ;;
|
|
|
|
i[345]86-*-osf1mk*) gdb_host=osf1mk ;;
|
|
|
|
i[345]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
|
|
|
|
i[345]86-*-sco*) gdb_host=i386sco ;;
|
|
|
|
i[345]86-*-solaris*) gdb_host=i386sol2 ;;
|
|
|
|
i[345]86-*-sunos*) gdb_host=sun386 ;;
|
|
|
|
i[345]86-*-sysv3.2*) gdb_host=i386v32 ;;
|
|
|
|
i[345]86-*-sysv32*) gdb_host=i386v32 ;;
|
|
|
|
i[345]86-*-sysv4*) gdb_host=i386v4 ;;
|
|
|
|
i[345]86-*-unixware) gdb_host=i386v4 ;;
|
|
|
|
i[345]86-*-sysv*) gdb_host=i386v ;;
|
|
|
|
i[345]86-*-isc*) gdb_host=i386v32 ;;
|
|
|
|
i[345]86-*-os9k) gdb_host=i386os9k ;;
|
1992-08-27 06:15:42 +02:00
|
|
|
|
1992-10-13 09:28:45 +01:00
|
|
|
m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;;
|
|
|
|
m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;;
|
1992-08-28 06:58:27 +02:00
|
|
|
m68030-sony-*) gdb_host=news1000 ;;
|
1992-08-27 06:15:42 +02:00
|
|
|
|
1992-10-13 09:28:45 +01:00
|
|
|
m68*-altos-*) gdb_host=altos ;;
|
|
|
|
m68*-apollo*-sysv*) gdb_host=apollo68v ;;
|
|
|
|
m68*-apollo*-bsd*) gdb_host=apollo68b ;;
|
|
|
|
m68*-att-*) gdb_host=3b1 ;;
|
1993-07-12 01:29:31 +02:00
|
|
|
m68*-bull*-sysv*) gdb_host=dpx2 ;;
|
1993-05-10 02:15:12 +02:00
|
|
|
m68*-hp-bsd*) gdb_host=hp300bsd ;;
|
|
|
|
m68*-hp-hpux*) gdb_host=hp300hpux ;;
|
1992-10-13 09:28:45 +01:00
|
|
|
m68*-isi-*) gdb_host=isi ;;
|
1993-10-30 01:16:25 +01:00
|
|
|
m68*-*-lynxos*) gdb_host=m68klynx ;;
|
1994-07-17 23:08:42 +02:00
|
|
|
m68*-*-sysv4*) gdb_host=m68kv4 ;;
|
1993-07-02 21:18:14 +02:00
|
|
|
m68*-motorola-*) gdb_host=delta68 ;;
|
1992-10-13 09:28:45 +01:00
|
|
|
m68*-sony-*) gdb_host=news ;;
|
|
|
|
m68*-sun-sunos3*) gdb_host=sun3os3 ;;
|
|
|
|
m68*-sun-sunos4*) gdb_host=sun3os4 ;;
|
|
|
|
m68*-sun-*) gdb_host=sun3os4 ;;
|
1992-08-27 06:15:42 +02:00
|
|
|
|
1994-07-17 23:08:42 +02:00
|
|
|
m88*-harris-cxux*) gdb_host=cxux ;;
|
1993-08-23 23:14:31 +02:00
|
|
|
m88*-motorola-sysv4*) gdb_host=delta88v4 ;;
|
|
|
|
m88*-motorola-sysv*) gdb_host=delta88 ;;
|
1994-06-17 00:02:24 +02:00
|
|
|
m88*-*-mach3*) gdb_host=mach3 ;;
|
1993-08-23 23:14:31 +02:00
|
|
|
m88*-*-*) gdb_host=m88k ;;
|
1992-08-27 06:15:42 +02:00
|
|
|
|
1994-06-17 00:02:24 +02:00
|
|
|
mips-dec-mach3*) gdb_host=mach3 ;;
|
1992-08-27 06:15:42 +02:00
|
|
|
mips-dec-*) gdb_host=decstation ;;
|
|
|
|
mips-little-*) gdb_host=littlemips ;;
|
1993-10-22 14:49:08 +01:00
|
|
|
mips-sgi-irix3*) gdb_host=irix3 ;;
|
1993-03-06 02:19:48 +01:00
|
|
|
mips-sgi-irix4*) gdb_host=irix4 ;;
|
1993-12-06 18:31:05 +01:00
|
|
|
mips-sgi-irix5*) gdb_host=irix5 ;;
|
1993-06-18 23:39:27 +02:00
|
|
|
mips-sony-*) gdb_host=news-mips ;;
|
1994-06-17 00:02:24 +02:00
|
|
|
mips-*-mach3*) gdb_host=mach3 ;;
|
* infrun.c (IN_SOLIB_TRAMPOLINE): Correct comment, trampolines
are in the .plt section.
* minsyms.c (lookup_solib_trampoline_symbol_by_pc,
find_solib_trampoline_target): New functions for handling
stepping into -g compiled shared libraries.
* symtab.h (lookup_solib_trampoline_symbol_by_pc,
find_solib_trampoline_target): Add prototypes.
* config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
Define to handle stepping into -g compiled shared libraries.
* config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE): Define to handle
stepping into -g compiled shared libraries.
* configure.in: Add mips-*-sysv4* support.
* config/mips/mipsv4.mh, config/mips/mipsv4.mt,
config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
New files for MIPS SVR4 support.
* Makefile.in: Update for new mipsv4 files.
* alpha-tdep.c (heuristic_proc_desc, find_proc_desc): Use
read_next_frame_reg to obtain the frame relative stack pointer.
* mips-tdep.c (heuristic_proc_desc): Use read_next_frame_reg to
obtain the frame relative stack pointer.
* mdebugread.c (parse_partial_symbols, psymtab_to_symtab1):
Handle stStatic and stStaticProc symbols in stabs-in-ecoff output
by entering them into the minimal symbol table.
* printcmd.c (print_scalar_formatted): Do not try to unpack to
a long for float formats.
* solib.c: Include "elf/mips.h" only if DT_MIPS_RLD_MAP does not
get defined in <link.h>.
* solib.c (solib_add): Add shared library sections to the section
table of the target before adding the symbols.
* partial-stab.h: Relocate static and global functions.
* dbxread.c (read_dbx_symtab): Remove unused variable
end_of_text_address. Relocate text_addr when passing it
to end_psymtab.
For Alpha OSF/1 targets, enable gdb to set breakpoints in shared
library functions before the executable is run. Retrieve dynamic
symbols from stripped executables.
* mipsread.c (read_alphacoff_dynamic_symtab): New function.
* mipsread.c (mipscoff_symfile_read): Use it. Issue warning message
if no debugging symbols were found.
* alpha-tdep.c (alpha_skip_prologue): Silently return the unaltered
pc if memory at the pc is not accessible and GDB_TARGET_HAS_SHARED_LIBS
is defined.
* config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define,
OSF/1 has shared libraries.
1994-04-08 02:35:15 +02:00
|
|
|
mips-*-sysv4*) gdb_host=mipsv4 ;;
|
1993-06-19 00:20:26 +02:00
|
|
|
mips-*-sysv*) gdb_host=riscos ;;
|
1993-07-02 23:27:13 +02:00
|
|
|
mips-*-riscos*) gdb_host=riscos ;;
|
1992-08-27 06:15:42 +02:00
|
|
|
|
|
|
|
none-*-*) gdb_host=none ;;
|
1992-08-28 06:58:27 +02:00
|
|
|
|
1992-08-27 06:15:42 +02:00
|
|
|
np1-*-*) gdb_host=np1 ;;
|
|
|
|
|
1994-06-17 00:02:24 +02:00
|
|
|
ns32k-*-mach3*) gdb_host=mach3 ;;
|
* solib.c: *BSD systems need <a.out.h> to be included before
<link.h>.
* i386b-nat.c: Add i386_float_info(), etc.
* config/i386/nm-nbsd.h: #define FLOAT_INFO.
* config/nm-nbsd.h: New file, for generic NetBSD native support.
* config/i386/nm-nbsd.h: Use it.
* config/sparc/nm-nbsd.h: Use it.
* config/ns32k/nm-nbsd.h: Use it.
* configure.in (i386-*-netbsd): Use config/i386/nbsd.m[ht].
(ns32k-*-netbsd): Use config/ns32k/nbsd.m[ht].
* config/i386/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}:
New files, support for NetBSD/i386.
* config/ns32k/{nbsd.mh,nbsd.mh,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}:
New files, support for NetBSD/ns32k.
1994-09-24 00:30:31 +02:00
|
|
|
ns32k-*-netbsd*) gdb_host=nbsd ;;
|
1992-08-27 06:15:42 +02:00
|
|
|
ns32k-umax-*) gdb_host=umax ;;
|
1993-10-22 14:49:08 +01:00
|
|
|
ns32k-utek-sysv*) gdb_host=merlin ;;
|
1992-08-27 06:15:42 +02:00
|
|
|
|
|
|
|
pn-*-*) gdb_host=pn ;;
|
|
|
|
|
|
|
|
pyramid-*-*) gdb_host=pyramid ;;
|
|
|
|
|
|
|
|
romp-*-*) gdb_host=rtbsd ;;
|
|
|
|
|
1994-02-12 02:08:29 +01:00
|
|
|
rs6000-*-lynxos*) gdb_host=rs6000lynx ;;
|
1992-08-27 06:15:42 +02:00
|
|
|
rs6000-*-*) gdb_host=rs6000 ;;
|
|
|
|
|
1993-10-30 01:16:25 +01:00
|
|
|
sparc-*-lynxos*) gdb_host=sparclynx ;;
|
1994-09-01 20:17:25 +02:00
|
|
|
sparc-*-netbsd*) gdb_host=nbsd ;;
|
1992-08-28 06:58:27 +02:00
|
|
|
sparc-*-solaris2*) gdb_host=sun4sol2 ;;
|
* configure.in (*-*-sunos*): Use trailing * to match all
sub-variants of SunOS, e.g. sunos4* to match sunos4.1.1.
(sparc-*-sunos3): Remove host & target. Sunos3 never shipped
in production on Sun-4.
({a29k,i[34]86,i960}-*-elf): Add targets, equivalent to coff.
(m68k-*-{aout,coff,elf}): Add targets, w/new config and tm files.
(sparc-*-{aout,coff,elf}): Add targets, w/new config and tm files.
* tm-68k-un.h, tm-68k-noun.h, tm-spc-un.h, tm-spc-noun.h: New
target definitions for embedded with and without underlines on
identifiers. FIXME -- this ought to be known by BFD instead.
* tm-sparc.h, tm-sun2.h, tm-sun3.h: Delete NAMES_HAVE_UNDERSCORE:
not a parameter of the CPU, but of the development environment.
* tm-es1800.h, tm-sunos.h, tm-vx68.h: Add NAMES_HAVE_UNDERSCORE.
1992-09-02 10:03:42 +02:00
|
|
|
sparc-*-sunos4*) gdb_host=sun4os4 ;;
|
* ser-termios.c, ser-go32.c: Remove DEFUN crap, clean up.
* serial.h (EXFUN): Remove all uses, convert to PARAMS.
* config/sun4os4.mh: Include ser-termios.o. FIXME, all .mh files
should include a ser-XXX.o module.
* dbxread.c (elfstab_build_psymtabs): Remove DEFUN crap.
* defs.h, i960-pinsn.c, remote-hms.c: Replace CONST with simple const.
* configure.in: Map unrecognized sun 68k's, sun sparcs, into
known suns in configure.in, rather than mapping them to unique
config files that happen to duplicate other config files.
* config/sun3.{mh,mt}: Remove (use identical sun3os4.*).
* config/sun4.{mh,mt}: Remove (use identical sun4os4.*).
1992-09-02 10:51:17 +02:00
|
|
|
sparc-*-*) gdb_host=sun4os4 ;;
|
1992-08-27 06:15:42 +02:00
|
|
|
|
|
|
|
tahoe-*-*) gdb_host=tahoe ;;
|
|
|
|
|
|
|
|
vax-*-bsd*) gdb_host=vaxbsd ;;
|
1993-03-03 07:04:26 +01:00
|
|
|
vax-*-ultrix2*) gdb_host=vaxult2 ;;
|
1992-08-27 06:15:42 +02:00
|
|
|
vax-*-ultrix*) gdb_host=vaxult ;;
|
* configure.in, dbxread.c, hppa-coredep.c, hppa-pinsn.c,
hppabsd-core.c, hppabsd-tdep.c, hppabsd-xdep.c, hppahpux-tdep.c,
hppahpux-xdep.c, munch, partial-stab.h, tm-hppabsd.h,
tm-hppahpux.h, xm-hppabsd.h, xm-hppahpux.h: HPPA merge.
1992-06-20 00:43:49 +02:00
|
|
|
|
1991-08-22 09:07:58 +02:00
|
|
|
esac
|
|
|
|
|
1991-11-08 03:20:29 +01:00
|
|
|
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 02:01:49 +01:00
|
|
|
if [ ! -f ${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh ]; then
|
1991-08-22 09:07:58 +02:00
|
|
|
echo '***' "Gdb does not support host ${host}" 1>&2
|
1991-05-19 02:16:46 +02:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
1991-07-04 17:59:47 +02:00
|
|
|
# We really shouldn't depend on there being a space after XM_FILE= ...
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 02:01:49 +01:00
|
|
|
hostfile=`awk '$1 == "XM_FILE=" { print $2 }' <${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh`
|
1991-05-19 02:16:46 +02:00
|
|
|
|
1991-04-16 01:46:50 +02:00
|
|
|
# per-target:
|
1991-05-19 02:16:46 +02:00
|
|
|
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 02:01:49 +01:00
|
|
|
# Map target cpu into the config cpu subdirectory name.
|
|
|
|
# The default is $target_cpu.
|
|
|
|
|
|
|
|
case "${target_cpu}" in
|
|
|
|
|
Changes to support alpha OSF/1 in native mode.
* alpha-nat.c, alpha-tdep.c, config/alpha/alpha-osf1.mt,
config/alpha/nm-alpha.h, config/alpha/tm-alpha.h, osfsolib.c:
New files.
* Makefile.in: Add new files and dependencies.
* configure.in: Add alpha target.
* config/alpha/alpha-osf1.mh (NATDEPFILES): Add osfsolib.o
* config/alpha/alpha-osf1.mh (MH_CFLAGS): Remove, we can handle
shared libraries now.
* config/alpha/xm-alpha.h: Cleanup, get MAKEVA_* defines right.
* defs.h (CORE_ADDR): Make its type overridable via CORE_ADDR_TYPE,
provide `unsigned int' default.
* breakpoint.c (breakpoint_auto_delete): Delete only if we really
stopped for the breakpoint.
* stabsread.c, stabsread.h (define_symbol): Change valu parameter
to a CORE_ADDR.
* stabsread.c (read_range_type): Handle the case where the lower
bound overflows and the upper doesn't and the range is legal.
* infrun.c (resume): Do not step a breakpoint instruction if
CANNOT_STEP_BREAKPOINT is defined.
* inferior.h (CALL_DUMMY_LOCATION): New variant AT_ENTRY_POINT.
Now that we have the bp_call_dummy breakpoint the call dummy code
is no longer needed. PUSH_DUMMY_FRAME, PUSH_ARGUMENTS and
FIX_CALL_DUMMY can be used to set up everything for the dummy.
The breakpoint for the dummy is set at the entry point and thats it.
* blockframe.c (inside_entry_file, inside_entry_func): Do not stop
backtraces if pc is in the call dummy at the entry point.
* infcmd.c (run_stack_dummy): Handle AT_ENTRY_POINT case. Use
the expected breakpoint pc when setting up the frame for
set_momentary_breakpoint.
* symfile.c (entry_point_address): New function for AT_ENTRY_POINT
support.
* valops.c (call_function_by_hand): Handle AT_ENTRY_POINT case.
1993-10-05 20:44:57 +01:00
|
|
|
alpha) gdb_target_cpu=alpha ;;
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 02:01:49 +01:00
|
|
|
c[12]) gdb_target_cpu=convex ;;
|
|
|
|
hppa*) gdb_target_cpu=pa ;;
|
1994-08-24 19:12:57 +02:00
|
|
|
i[345]86) gdb_target_cpu=i386 ;;
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 02:01:49 +01:00
|
|
|
m68*) gdb_target_cpu=m68k ;;
|
1994-06-17 00:02:24 +02:00
|
|
|
m88*) gdb_target_cpu=m88k ;;
|
1993-12-06 19:34:07 +01:00
|
|
|
mips*) gdb_target_cpu=mips ;;
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 02:01:49 +01:00
|
|
|
np1) gdb_target_cpu=gould ;;
|
|
|
|
pn) gdb_target_cpu=gould ;;
|
|
|
|
pyramid) gdb_target_cpu=pyr ;;
|
1994-05-06 22:39:25 +02:00
|
|
|
sparclite*) gdb_target_cpu=sparc
|
1994-06-17 00:02:24 +02:00
|
|
|
configdirs="${configdirs} sparclite" ;;
|
1993-04-06 19:40:55 +02:00
|
|
|
sparc*) gdb_target_cpu=sparc ;;
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 02:01:49 +01:00
|
|
|
*) gdb_target_cpu=$target_cpu ;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
# map target info into gdb names.
|
|
|
|
|
1992-08-28 06:58:27 +02:00
|
|
|
case "${target}" in
|
|
|
|
|
1993-10-22 14:49:08 +01:00
|
|
|
a29k-*-aout*) gdb_target=a29k ;;
|
|
|
|
a29k-*-coff*) gdb_target=a29k ;;
|
|
|
|
a29k-*-elf*) gdb_target=a29k ;;
|
|
|
|
a29k-*-ebmon*) gdb_target=a29k ;;
|
|
|
|
a29k-*-kern*) gdb_target=a29k-kern ;;
|
|
|
|
a29k-*-none*) gdb_target=a29k ;;
|
|
|
|
a29k-*-sym1*) gdb_target=ultra3 ;;
|
|
|
|
a29k-*-udi*) gdb_target=a29k-udi ;;
|
1992-08-28 06:58:27 +02:00
|
|
|
|
Changes to support alpha OSF/1 in native mode.
* alpha-nat.c, alpha-tdep.c, config/alpha/alpha-osf1.mt,
config/alpha/nm-alpha.h, config/alpha/tm-alpha.h, osfsolib.c:
New files.
* Makefile.in: Add new files and dependencies.
* configure.in: Add alpha target.
* config/alpha/alpha-osf1.mh (NATDEPFILES): Add osfsolib.o
* config/alpha/alpha-osf1.mh (MH_CFLAGS): Remove, we can handle
shared libraries now.
* config/alpha/xm-alpha.h: Cleanup, get MAKEVA_* defines right.
* defs.h (CORE_ADDR): Make its type overridable via CORE_ADDR_TYPE,
provide `unsigned int' default.
* breakpoint.c (breakpoint_auto_delete): Delete only if we really
stopped for the breakpoint.
* stabsread.c, stabsread.h (define_symbol): Change valu parameter
to a CORE_ADDR.
* stabsread.c (read_range_type): Handle the case where the lower
bound overflows and the upper doesn't and the range is legal.
* infrun.c (resume): Do not step a breakpoint instruction if
CANNOT_STEP_BREAKPOINT is defined.
* inferior.h (CALL_DUMMY_LOCATION): New variant AT_ENTRY_POINT.
Now that we have the bp_call_dummy breakpoint the call dummy code
is no longer needed. PUSH_DUMMY_FRAME, PUSH_ARGUMENTS and
FIX_CALL_DUMMY can be used to set up everything for the dummy.
The breakpoint for the dummy is set at the entry point and thats it.
* blockframe.c (inside_entry_file, inside_entry_func): Do not stop
backtraces if pc is in the call dummy at the entry point.
* infcmd.c (run_stack_dummy): Handle AT_ENTRY_POINT case. Use
the expected breakpoint pc when setting up the frame for
set_momentary_breakpoint.
* symfile.c (entry_point_address): New function for AT_ENTRY_POINT
support.
* valops.c (call_function_by_hand): Handle AT_ENTRY_POINT case.
1993-10-05 20:44:57 +01:00
|
|
|
alpha-*-osf*) gdb_target=alpha-osf1 ;;
|
1994-06-02 18:58:48 +02:00
|
|
|
alpha-*-netware*) gdb_target=alpha-nw
|
1994-06-17 00:02:24 +02:00
|
|
|
configdirs="${configdirs} nlm" ;;
|
|
|
|
|
1992-08-28 06:58:27 +02:00
|
|
|
arm-*-*) gdb_target=arm ;;
|
|
|
|
|
|
|
|
c1-*-*) gdb_target=convex ;;
|
|
|
|
c2-*-*) gdb_target=convex ;;
|
|
|
|
|
|
|
|
h8300-*-*) gdb_target=h8300hms ;;
|
1993-03-20 00:05:34 +01:00
|
|
|
h8500-*-*) gdb_target=h8500hms ;;
|
1992-08-28 06:58:27 +02:00
|
|
|
|
1993-04-27 03:17:32 +02:00
|
|
|
sh-*-*) gdb_target=sh ;;
|
|
|
|
|
1994-11-25 01:01:26 +01:00
|
|
|
# start-sanitize-r16
|
|
|
|
r16-*-*) gdb_target=r16 ;;
|
|
|
|
# end-sanitize-r16
|
|
|
|
|
1993-05-10 02:15:12 +02:00
|
|
|
hppa*-*-bsd*) gdb_target=hppabsd ;;
|
1994-09-10 00:44:13 +02:00
|
|
|
hppa*-*-pro*) gdb_target=hppapro ;;
|
1993-05-10 02:15:12 +02:00
|
|
|
hppa*-*-hpux*) gdb_target=hppahpux ;;
|
1993-11-04 15:52:53 +01:00
|
|
|
hppa*-*-hiux*) gdb_target=hppahpux ;;
|
1994-02-24 17:10:15 +01:00
|
|
|
hppa*-*-osf*) gdb_target=hppaosf ;;
|
1992-08-28 06:58:27 +02:00
|
|
|
|
1994-08-24 19:12:57 +02:00
|
|
|
i[345]86-sequent-bsd*) gdb_target=symmetry ;;
|
|
|
|
i[345]86-sequent-sysv4*) gdb_target=ptx4 ;;
|
|
|
|
i[345]86-sequent-sysv*) gdb_target=ptx ;;
|
|
|
|
i[345]86-ncr-*) gdb_target=ncr3000 ;;
|
|
|
|
i[345]86-*-aout*) gdb_target=i386aout ;;
|
|
|
|
i[345]86-*-coff*) gdb_target=i386v ;;
|
|
|
|
i[345]86-*-elf*) gdb_target=i386v ;;
|
|
|
|
i[345]86-*-aix*) gdb_target=i386aix ;;
|
|
|
|
i[345]86-*-bsd*) gdb_target=i386bsd ;;
|
1994-11-29 22:47:48 +01:00
|
|
|
i[345]86-*-freebsd*) gdb_target=fbsd ;;
|
1994-09-03 02:45:30 +02:00
|
|
|
i[345]86-*-netbsd*) gdb_target=nbsd ;;
|
1994-08-24 19:12:57 +02:00
|
|
|
i[345]86-*-os9k) gdb_target=i386os9k ;;
|
|
|
|
i[345]86-*-go32*) gdb_target=i386aout ;;
|
|
|
|
i[345]86-*-lynxos*) gdb_target=i386lynx
|
1994-06-17 00:02:24 +02:00
|
|
|
configdirs="${configdirs} gdbserver" ;;
|
1994-08-24 19:12:57 +02:00
|
|
|
i[345]86-*-solaris*) gdb_target=i386sol2 ;;
|
|
|
|
i[345]86-*-sunos*) gdb_target=sun386 ;;
|
|
|
|
i[345]86-*-sysv4*) gdb_target=i386v4 ;;
|
|
|
|
i[345]86-*-sco*) gdb_target=i386v ;;
|
|
|
|
i[345]86-*-sysv*) gdb_target=i386v ;;
|
|
|
|
i[345]86-*-linux*) gdb_target=linux ;;
|
|
|
|
i[345]86-*-isc*) gdb_target=i386v ;;
|
|
|
|
i[345]86-*-mach3*) gdb_target=i386m3 ;;
|
|
|
|
i[345]86-*-mach*) gdb_target=i386mach ;;
|
|
|
|
i[345]86-*-netware*) gdb_target=i386nw
|
1994-08-24 18:43:18 +02:00
|
|
|
configdirs="${configdirs} nlm" ;;
|
1994-08-24 19:12:57 +02:00
|
|
|
i[345]86-*-osf1mk*) gdb_target=i386mk ;;
|
1992-08-28 06:58:27 +02:00
|
|
|
|
1993-10-22 14:49:08 +01:00
|
|
|
i960-*-bout*) gdb_target=vxworks960 ;;
|
|
|
|
i960-*-coff*) gdb_target=nindy960 ;;
|
|
|
|
i960-*-elf*) gdb_target=nindy960 ;;
|
* configure.in (*-*-sunos*): Use trailing * to match all
sub-variants of SunOS, e.g. sunos4* to match sunos4.1.1.
(sparc-*-sunos3): Remove host & target. Sunos3 never shipped
in production on Sun-4.
({a29k,i[34]86,i960}-*-elf): Add targets, equivalent to coff.
(m68k-*-{aout,coff,elf}): Add targets, w/new config and tm files.
(sparc-*-{aout,coff,elf}): Add targets, w/new config and tm files.
* tm-68k-un.h, tm-68k-noun.h, tm-spc-un.h, tm-spc-noun.h: New
target definitions for embedded with and without underlines on
identifiers. FIXME -- this ought to be known by BFD instead.
* tm-sparc.h, tm-sun2.h, tm-sun3.h: Delete NAMES_HAVE_UNDERSCORE:
not a parameter of the CPU, but of the development environment.
* tm-es1800.h, tm-sunos.h, tm-vx68.h: Add NAMES_HAVE_UNDERSCORE.
1992-09-02 10:03:42 +02:00
|
|
|
|
1993-10-22 14:49:08 +01:00
|
|
|
i960-*-nindy*) gdb_target=nindy960 ;;
|
|
|
|
i960-*-vxworks*) gdb_target=vxworks960 ;;
|
1992-08-28 06:58:27 +02:00
|
|
|
|
* configure.in (*-*-sunos*): Use trailing * to match all
sub-variants of SunOS, e.g. sunos4* to match sunos4.1.1.
(sparc-*-sunos3): Remove host & target. Sunos3 never shipped
in production on Sun-4.
({a29k,i[34]86,i960}-*-elf): Add targets, equivalent to coff.
(m68k-*-{aout,coff,elf}): Add targets, w/new config and tm files.
(sparc-*-{aout,coff,elf}): Add targets, w/new config and tm files.
* tm-68k-un.h, tm-68k-noun.h, tm-spc-un.h, tm-spc-noun.h: New
target definitions for embedded with and without underlines on
identifiers. FIXME -- this ought to be known by BFD instead.
* tm-sparc.h, tm-sun2.h, tm-sun3.h: Delete NAMES_HAVE_UNDERSCORE:
not a parameter of the CPU, but of the development environment.
* tm-es1800.h, tm-sunos.h, tm-vx68.h: Add NAMES_HAVE_UNDERSCORE.
1992-09-02 10:03:42 +02:00
|
|
|
m68000-*-sunos3*) gdb_target=sun2os3 ;;
|
|
|
|
m68000-*-sunos4*) gdb_target=sun2os4 ;;
|
1992-08-28 06:58:27 +02:00
|
|
|
|
1993-10-22 17:03:08 +01:00
|
|
|
m68*-apollo*-bsd*) gdb_target=apollo68b ;;
|
1994-06-17 00:02:24 +02:00
|
|
|
m68*-bull-sysv*) gdb_target=dpx2 ;;
|
|
|
|
m68*-hp-bsd*) gdb_target=hp300bsd ;;
|
|
|
|
m68*-hp-hpux*) gdb_target=hp300hpux ;;
|
1994-07-17 23:08:42 +02:00
|
|
|
m68*-altos-*) gdb_target=altos ;;
|
|
|
|
m68*-att-*) gdb_target=3b1 ;;
|
|
|
|
m68*-cisco*-*) gdb_target=cisco ;;
|
|
|
|
m68*-ericsson-*) gdb_target=es1800 ;;
|
1992-10-13 09:28:45 +01:00
|
|
|
m68*-isi-*) gdb_target=isi ;;
|
1993-07-02 21:18:14 +02:00
|
|
|
m68*-motorola-*) gdb_target=delta68 ;;
|
1992-10-13 09:28:45 +01:00
|
|
|
m68*-netx-*) gdb_target=vxworks68 ;;
|
|
|
|
m68*-sony-*) gdb_target=news ;;
|
|
|
|
m68*-tandem-*) gdb_target=st2000 ;;
|
1993-06-02 02:15:39 +02:00
|
|
|
m68*-rom68k-*) gdb_target=monitor ;;
|
|
|
|
m68*-*bug-*) gdb_target=monitor ;;
|
|
|
|
m68*-monitor-*) gdb_target=monitor ;;
|
1994-01-28 19:58:54 +01:00
|
|
|
m68*-*-aout*) gdb_target=monitor ;;
|
|
|
|
m68*-*-coff*) gdb_target=monitor ;;
|
|
|
|
m68*-*-elf*) gdb_target=monitor ;;
|
1993-10-30 01:16:25 +01:00
|
|
|
m68*-*-lynxos*) gdb_target=m68klynx
|
1994-06-17 00:02:24 +02:00
|
|
|
configdirs="${configdirs} gdbserver" ;;
|
1993-10-22 14:49:08 +01:00
|
|
|
m68*-*-os68k*) gdb_target=os68k ;;
|
1992-10-13 09:28:45 +01:00
|
|
|
m68*-*-sunos3*) gdb_target=sun3os3 ;;
|
|
|
|
m68*-*-sunos4*) gdb_target=sun3os4 ;;
|
1994-07-17 23:08:42 +02:00
|
|
|
m68*-*-sysv4*) gdb_target=m68kv4 ;;
|
1992-10-13 09:28:45 +01:00
|
|
|
m68*-*-vxworks*) gdb_target=vxworks68 ;;
|
1994-12-24 02:12:47 +01:00
|
|
|
m68*-*-est*) gdb_target=est ;;
|
1992-08-28 06:58:27 +02:00
|
|
|
|
1994-07-17 23:08:42 +02:00
|
|
|
m88*-harris-cxux*) gdb_target=cxux ;;
|
1993-09-02 08:20:20 +02:00
|
|
|
m88*-motorola-sysv4*) gdb_target=delta88v4 ;;
|
1994-06-17 00:02:24 +02:00
|
|
|
m88*-*-mach3*) gdb_target=mach3 ;;
|
1993-08-23 23:14:31 +02:00
|
|
|
m88*-motorola-*) gdb_target=delta88 ;;
|
|
|
|
m88*-*-*) gdb_target=m88k ;;
|
1992-08-28 06:58:27 +02:00
|
|
|
|
1994-02-18 02:38:08 +01:00
|
|
|
mips64*-big-*) gdb_target=bigmips64 ;;
|
1993-12-06 19:34:07 +01:00
|
|
|
mips*-big-*) gdb_target=bigmips ;;
|
1994-06-17 00:02:24 +02:00
|
|
|
mips*-dec-mach3*) gdb_target=mach3 ;;
|
1993-12-06 19:34:07 +01:00
|
|
|
mips*-dec-*) gdb_target=decstation ;;
|
1994-02-18 02:38:08 +01:00
|
|
|
mips64*el-*-ecoff*) gdb_target=idtl64 ;;
|
|
|
|
mips64*-idt-ecoff*) gdb_target=idt64 ;;
|
|
|
|
mips64*el-*-elf*) gdb_target=idtl64 ;;
|
|
|
|
mips64*-*-elf*) gdb_target=idt64 ;;
|
1993-12-06 19:34:07 +01:00
|
|
|
mips*el-*-ecoff*) gdb_target=idtl ;;
|
1994-12-30 02:39:24 +01:00
|
|
|
mips*-*-ecoff*) gdb_target=idt ;;
|
1993-12-06 19:34:07 +01:00
|
|
|
mips*el-*-elf*) gdb_target=idtl ;;
|
|
|
|
mips*-*-elf*) gdb_target=idt ;;
|
|
|
|
mips*-little-*) gdb_target=littlemips ;;
|
|
|
|
mips*-sgi-irix5*) gdb_target=irix5 ;;
|
|
|
|
mips*-sgi-*) gdb_target=irix3 ;;
|
|
|
|
mips*-sony-*) gdb_target=bigmips ;;
|
1994-06-17 00:02:24 +02:00
|
|
|
mips*-*-mach3*) gdb_target=mach3 ;;
|
* infrun.c (IN_SOLIB_TRAMPOLINE): Correct comment, trampolines
are in the .plt section.
* minsyms.c (lookup_solib_trampoline_symbol_by_pc,
find_solib_trampoline_target): New functions for handling
stepping into -g compiled shared libraries.
* symtab.h (lookup_solib_trampoline_symbol_by_pc,
find_solib_trampoline_target): Add prototypes.
* config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
Define to handle stepping into -g compiled shared libraries.
* config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE): Define to handle
stepping into -g compiled shared libraries.
* configure.in: Add mips-*-sysv4* support.
* config/mips/mipsv4.mh, config/mips/mipsv4.mt,
config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
New files for MIPS SVR4 support.
* Makefile.in: Update for new mipsv4 files.
* alpha-tdep.c (heuristic_proc_desc, find_proc_desc): Use
read_next_frame_reg to obtain the frame relative stack pointer.
* mips-tdep.c (heuristic_proc_desc): Use read_next_frame_reg to
obtain the frame relative stack pointer.
* mdebugread.c (parse_partial_symbols, psymtab_to_symtab1):
Handle stStatic and stStaticProc symbols in stabs-in-ecoff output
by entering them into the minimal symbol table.
* printcmd.c (print_scalar_formatted): Do not try to unpack to
a long for float formats.
* solib.c: Include "elf/mips.h" only if DT_MIPS_RLD_MAP does not
get defined in <link.h>.
* solib.c (solib_add): Add shared library sections to the section
table of the target before adding the symbols.
* partial-stab.h: Relocate static and global functions.
* dbxread.c (read_dbx_symtab): Remove unused variable
end_of_text_address. Relocate text_addr when passing it
to end_psymtab.
For Alpha OSF/1 targets, enable gdb to set breakpoints in shared
library functions before the executable is run. Retrieve dynamic
symbols from stripped executables.
* mipsread.c (read_alphacoff_dynamic_symtab): New function.
* mipsread.c (mipscoff_symfile_read): Use it. Issue warning message
if no debugging symbols were found.
* alpha-tdep.c (alpha_skip_prologue): Silently return the unaltered
pc if memory at the pc is not accessible and GDB_TARGET_HAS_SHARED_LIBS
is defined.
* config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define,
OSF/1 has shared libraries.
1994-04-08 02:35:15 +02:00
|
|
|
mips*-*-sysv4*) gdb_target=mipsv4 ;;
|
1993-12-06 19:34:07 +01:00
|
|
|
mips*-*-sysv*) gdb_target=bigmips ;;
|
|
|
|
mips*-*-riscos*) gdb_target=bigmips ;;
|
1992-08-28 06:58:27 +02:00
|
|
|
|
|
|
|
none-*-*) gdb_target=none ;;
|
|
|
|
|
|
|
|
np1-*-*) gdb_target=np1 ;;
|
|
|
|
|
1994-06-17 00:02:24 +02:00
|
|
|
ns32k-*-mach3*) gdb_target=mach3 ;;
|
* solib.c: *BSD systems need <a.out.h> to be included before
<link.h>.
* i386b-nat.c: Add i386_float_info(), etc.
* config/i386/nm-nbsd.h: #define FLOAT_INFO.
* config/nm-nbsd.h: New file, for generic NetBSD native support.
* config/i386/nm-nbsd.h: Use it.
* config/sparc/nm-nbsd.h: Use it.
* config/ns32k/nm-nbsd.h: Use it.
* configure.in (i386-*-netbsd): Use config/i386/nbsd.m[ht].
(ns32k-*-netbsd): Use config/ns32k/nbsd.m[ht].
* config/i386/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}:
New files, support for NetBSD/i386.
* config/ns32k/{nbsd.mh,nbsd.mh,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}:
New files, support for NetBSD/ns32k.
1994-09-24 00:30:31 +02:00
|
|
|
ns32k-*-netbsd*) gdb_target=nbsd ;;
|
1993-10-22 14:49:08 +01:00
|
|
|
ns32k-utek-sysv*) gdb_target=merlin ;;
|
1992-08-28 06:58:27 +02:00
|
|
|
ns32k-utek-*) gdb_target=umax ;;
|
|
|
|
|
|
|
|
pn-*-*) gdb_target=pn ;;
|
1994-08-18 08:32:55 +02:00
|
|
|
powerpc-*-netware*) gdb_target=ppc-nw
|
|
|
|
configdirs="${configdirs} nlm" ;;
|
1992-08-28 06:58:27 +02:00
|
|
|
|
|
|
|
pyramid-*-*) gdb_target=pyramid ;;
|
|
|
|
|
1994-02-12 02:08:29 +01:00
|
|
|
rs6000-*-lynxos*) gdb_target=rs6000lynx ;;
|
1992-08-28 06:58:27 +02:00
|
|
|
rs6000-*-*) gdb_target=rs6000 ;;
|
|
|
|
|
1993-10-22 14:49:08 +01:00
|
|
|
sparc-*-aout*) gdb_target=sparc-em ;;
|
|
|
|
sparc-*-coff*) gdb_target=sparc-em ;;
|
|
|
|
sparc-*-elf*) gdb_target=sparc-em ;;
|
1993-10-30 01:16:25 +01:00
|
|
|
sparc-*-lynxos*) gdb_target=sparclynx
|
1994-06-17 00:02:24 +02:00
|
|
|
configdirs="${configdirs} gdbserver" ;;
|
1994-09-01 20:17:25 +02:00
|
|
|
sparc-*-netbsd*) gdb_target=nbsd ;;
|
1992-08-28 06:58:27 +02:00
|
|
|
sparc-*-solaris2*) gdb_target=sun4sol2 ;;
|
* configure.in (*-*-sunos*): Use trailing * to match all
sub-variants of SunOS, e.g. sunos4* to match sunos4.1.1.
(sparc-*-sunos3): Remove host & target. Sunos3 never shipped
in production on Sun-4.
({a29k,i[34]86,i960}-*-elf): Add targets, equivalent to coff.
(m68k-*-{aout,coff,elf}): Add targets, w/new config and tm files.
(sparc-*-{aout,coff,elf}): Add targets, w/new config and tm files.
* tm-68k-un.h, tm-68k-noun.h, tm-spc-un.h, tm-spc-noun.h: New
target definitions for embedded with and without underlines on
identifiers. FIXME -- this ought to be known by BFD instead.
* tm-sparc.h, tm-sun2.h, tm-sun3.h: Delete NAMES_HAVE_UNDERSCORE:
not a parameter of the CPU, but of the development environment.
* tm-es1800.h, tm-sunos.h, tm-vx68.h: Add NAMES_HAVE_UNDERSCORE.
1992-09-02 10:03:42 +02:00
|
|
|
sparc-*-sunos4*) gdb_target=sun4os4 ;;
|
1993-06-09 01:05:20 +02:00
|
|
|
sparc-*-vxworks*) gdb_target=vxsparc ;;
|
* ser-termios.c, ser-go32.c: Remove DEFUN crap, clean up.
* serial.h (EXFUN): Remove all uses, convert to PARAMS.
* config/sun4os4.mh: Include ser-termios.o. FIXME, all .mh files
should include a ser-XXX.o module.
* dbxread.c (elfstab_build_psymtabs): Remove DEFUN crap.
* defs.h, i960-pinsn.c, remote-hms.c: Replace CONST with simple const.
* configure.in: Map unrecognized sun 68k's, sun sparcs, into
known suns in configure.in, rather than mapping them to unique
config files that happen to duplicate other config files.
* config/sun3.{mh,mt}: Remove (use identical sun3os4.*).
* config/sun4.{mh,mt}: Remove (use identical sun4os4.*).
1992-09-02 10:51:17 +02:00
|
|
|
sparc-*-*) gdb_target=sun4os4 ;;
|
1993-04-06 19:40:55 +02:00
|
|
|
sparclite*-*-*) gdb_target=sparclite ;;
|
1994-06-17 00:02:24 +02:00
|
|
|
sparc64-*-*) gdb_target=sp64 ;;
|
1992-08-28 06:58:27 +02:00
|
|
|
|
|
|
|
tahoe-*-*) gdb_target=tahoe ;;
|
1994-06-17 00:02:24 +02:00
|
|
|
|
1992-08-28 06:58:27 +02:00
|
|
|
vax-*-*) gdb_target=vax ;;
|
1991-08-22 09:07:58 +02:00
|
|
|
|
1993-10-22 14:49:08 +01:00
|
|
|
z8k-*-sim*) gdb_target=z8ksim ;;
|
|
|
|
z8k-*-coff*) gdb_target=z8ksim ;;
|
1994-06-17 00:02:24 +02:00
|
|
|
|
1991-08-22 09:07:58 +02:00
|
|
|
esac
|
|
|
|
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 02:01:49 +01:00
|
|
|
if [ ! -f ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt ]; then
|
1991-08-22 09:07:58 +02:00
|
|
|
echo '***' "Gdb does not support target ${target}" 1>&2
|
1991-05-19 02:16:46 +02:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "${removing}" ] ; then
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 02:01:49 +01:00
|
|
|
cat ${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | awk '$1 == "#msg" {
|
1991-05-19 02:16:46 +02:00
|
|
|
print substr($0,6)}'
|
|
|
|
fi
|
|
|
|
|
1991-07-04 17:59:47 +02:00
|
|
|
# We really shouldn't depend on there being a space after TM_FILE= ...
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 02:01:49 +01:00
|
|
|
targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt`
|
1991-05-19 02:16:46 +02:00
|
|
|
|
1993-10-13 02:08:40 +01:00
|
|
|
|
|
|
|
# these really aren't orthogonal true/false values of the same condition,
|
|
|
|
# but shells are slow enough that I like to reuse the test conditions
|
|
|
|
# whenever possible
|
|
|
|
#
|
1992-09-19 13:09:01 +02:00
|
|
|
if [ "${target}" = "${host}" ] ; then
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 02:01:49 +01:00
|
|
|
nativefile=`awk '$1 == "NAT_FILE=" { print $2 }' <${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh`
|
1993-10-13 02:08:40 +01:00
|
|
|
else
|
|
|
|
# GDBserver is only useful in a "native" enviroment
|
|
|
|
configdirs=`echo $configdirs | sed 's/gdbserver//'`
|
1992-09-19 13:09:01 +02:00
|
|
|
fi
|
|
|
|
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 02:01:49 +01:00
|
|
|
host_makefile_frag=config/${gdb_host_cpu}/${gdb_host}.mh
|
|
|
|
target_makefile_frag=config/${gdb_target_cpu}/${gdb_target}.mt
|
1991-05-19 02:16:46 +02:00
|
|
|
|
1992-09-19 13:09:01 +02:00
|
|
|
# If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
|
1994-09-05 01:16:22 +02:00
|
|
|
# (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
|
1992-09-19 13:09:01 +02:00
|
|
|
# corresponding links. But we have to remove the xm.h files and tm.h
|
|
|
|
# files anyway, e.g. when switching from "configure host" to
|
|
|
|
# "configure none".
|
|
|
|
|
1991-07-04 17:59:47 +02:00
|
|
|
files=
|
|
|
|
links=
|
1991-07-31 02:34:07 +02:00
|
|
|
rm -f xm.h
|
1991-07-04 17:59:47 +02:00
|
|
|
if [ "${hostfile}" != "" ]; then
|
1994-09-03 02:45:30 +02:00
|
|
|
files="${files} config/${gdb_host_cpu}/${hostfile}"
|
1991-07-04 17:59:47 +02:00
|
|
|
links="${links} xm.h"
|
|
|
|
fi
|
1991-07-31 02:34:07 +02:00
|
|
|
rm -f tm.h
|
1991-07-04 17:59:47 +02:00
|
|
|
if [ "${targetfile}" != "" ]; then
|
1994-09-03 02:45:30 +02:00
|
|
|
files="${files} config/${gdb_target_cpu}/${targetfile}"
|
1991-07-04 17:59:47 +02:00
|
|
|
links="${links} tm.h"
|
|
|
|
fi
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 02:01:49 +01:00
|
|
|
rm -f nm.h
|
1992-09-19 13:09:01 +02:00
|
|
|
if [ "${nativefile}" != "" ]; then
|
1994-09-03 02:45:30 +02:00
|
|
|
files="${files} config/${gdb_host_cpu}/${nativefile}"
|
1992-09-30 23:39:02 +01:00
|
|
|
links="${links} nm.h"
|
1992-09-30 03:03:24 +01:00
|
|
|
else
|
1994-09-05 01:16:22 +02:00
|
|
|
# A cross-only configuration.
|
|
|
|
files="${files} config/nm-empty.h"
|
1992-09-30 23:39:02 +01:00
|
|
|
links="${links} nm.h"
|
1992-09-19 13:09:01 +02:00
|
|
|
fi
|
1991-07-04 17:59:47 +02:00
|
|
|
|
1994-07-29 00:07:02 +02:00
|
|
|
# Make it possible to use the GUI without doing a full install
|
1994-09-03 04:13:47 +02:00
|
|
|
if [ "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ] ; then
|
1994-07-29 00:07:02 +02:00
|
|
|
files="${files} gdbtk.tcl"
|
|
|
|
links="${links} gdbtk.tcl"
|
|
|
|
fi
|
|
|
|
|
1991-07-04 17:59:47 +02:00
|
|
|
# post-target:
|
1991-05-19 02:16:46 +02:00
|
|
|
|
1991-07-04 17:59:47 +02:00
|
|
|
case ${srcdir} in
|
|
|
|
.)
|
|
|
|
;;
|
|
|
|
*)
|
1993-07-02 23:27:13 +02:00
|
|
|
grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
|
1991-07-04 17:59:47 +02:00
|
|
|
echo "source ${srcdir}/.gdbinit" >> .gdbinit
|
|
|
|
esac
|
|
|
|
|
1992-09-21 22:01:00 +02:00
|
|
|
if [ "${nativefile}" = "" ] ; then
|
1992-09-21 21:47:39 +02:00
|
|
|
sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
|
1992-09-19 13:09:01 +02:00
|
|
|
< Makefile > Makefile.tem
|
|
|
|
mv -f Makefile.tem Makefile
|
|
|
|
fi
|
* Makefile.in (TAGS): Use variables directly, rather than using
find, to locate TM_FILE, XM_FILE, and NAT_FILE. This is faster
and means that these filenames no longer need be unique across all
the config/* directories.
* configure.in: Put the config/*/ into TM_FILE, etc.
* m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk
and trapv exceptions.
* target.h (struct section_table), objfiles.h (struct obj_section):
Change name of field sec_ptr to the_bfd_section. More mnemonic
and avoids the (sort of, for the ptx compiler) name clash with
the name of the typedef.
* exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c,
solib.c, irix5-nat.c, objfiles.c, remote.c: Change users.
* utils.c: Include readline.h.
* Makefile.in (utils.o): Add dependency.
* remote.c (getpkt): Add support for run-length encoding.
1994-03-19 19:49:50 +01:00
|
|
|
|
1994-07-29 00:07:02 +02:00
|
|
|
if [ "${enable_gdbtk}" = "yes" ] ; then
|
|
|
|
sed -e '/# End of host and/i\
|
|
|
|
\
|
1994-11-14 17:59:16 +01:00
|
|
|
ENABLE_GDBTK = 1\
|
1994-07-29 00:07:02 +02:00
|
|
|
ENABLE_DEPFILES = gdbtk.o\
|
1994-11-02 01:50:12 +01:00
|
|
|
ENABLE_CLIBS = $(TCL) $(TK) -lX11 -lm
|
1994-07-29 00:07:02 +02:00
|
|
|
' < Makefile > Makefile.tem
|
|
|
|
mv -f Makefile.tem Makefile
|
|
|
|
fi
|
|
|
|
|
* Makefile.in (TAGS): Use variables directly, rather than using
find, to locate TM_FILE, XM_FILE, and NAT_FILE. This is faster
and means that these filenames no longer need be unique across all
the config/* directories.
* configure.in: Put the config/*/ into TM_FILE, etc.
* m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk
and trapv exceptions.
* target.h (struct section_table), objfiles.h (struct obj_section):
Change name of field sec_ptr to the_bfd_section. More mnemonic
and avoids the (sort of, for the ptx compiler) name clash with
the name of the typedef.
* exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c,
solib.c, irix5-nat.c, objfiles.c, remote.c: Change users.
* utils.c: Include readline.h.
* Makefile.in (utils.o): Add dependency.
* remote.c (getpkt): Add support for run-length encoding.
1994-03-19 19:49:50 +01:00
|
|
|
sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
|
|
|
|
/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
|
|
|
|
/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
|
|
|
|
mv -f Makefile.tmp Makefile
|