From owner-p4-releng Wed Mar 27 2:50:42 2002 Delivered-To: p4-releng@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7174337B416; Wed, 27 Mar 2002 02:49:14 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BAC5037B419 for ; Wed, 27 Mar 2002 02:49:12 -0800 (PST) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2RAnCP75234 for perforce@freebsd.org; Wed, 27 Mar 2002 02:49:12 -0800 (PST) (envelope-from murray@freebsd.org) Date: Wed, 27 Mar 2002 02:49:12 -0800 (PST) Message-Id: <200203271049.g2RAnCP75234@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to murray@freebsd.org using -f From: Murray Stokely Subject: PERFORCE change 8491 for review To: Perforce Change Reviews Sender: owner-p4-releng@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=8491 Change 8491 by murray@murray_builder on 2002/03/27 02:49:09 MFC: binutils part II. Affected files ... ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/Makefile.inc0#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/addr2line/Makefile#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/ar/Makefile#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/as/Makefile.inc0#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/as/alpha-freebsd/config.h#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/as/i386-freebsd/config.h#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/as/ia64-freebsd/config.h#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/as/powerpc-freebsd/config.h#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/as/sparc64-freebsd/config.h#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/gdb/Makefile#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/gdb/Makefile.alpha#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/gdb/Makefile.i386#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/gdb/i386/tm.h#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/ld/config.h#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/libbfd/alpha/bfd.h#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/libbfd/config.h.fbsd#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/libbfd/i386/bfd.h#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/libbfd/ia64/bfd.h#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/libbfd/powerpc/bfd.h#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/libbfd/sparc64/bfd.h#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/libbinutils/config.h#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/libopcodes/config.h#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/nm/Makefile#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/objcopy/Makefile#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/objdump/Makefile#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/ranlib/Makefile#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/readelf/Makefile#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/size/Makefile#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/strings/Makefile#2 integrate ... //depot/releng/5_dp1/src/gnu/usr.bin/binutils/strip/Makefile#2 integrate Differences ... ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/Makefile.inc0#2 (text+ko) ==== @@ -1,11 +1,11 @@ -# $FreeBSD: src/gnu/usr.bin/binutils/Makefile.inc0,v 1.25 2002/03/14 02:24:23 obrien Exp $ +# $FreeBSD: src/gnu/usr.bin/binutils/Makefile.inc0,v 1.26 2002/03/20 23:05:08 obrien Exp $ # # This is included explicitly at the top of each sub-Makefile. We can't # use the normal "Makefile.inc" mechanism, because we need some of these # definitions before the sub-Makefile is processed. -VERSION= "2.12.0 pre-release snap [FreeBSD] 20020221" -VERSION_DATE= 20020221 +VERSION= "2.12.0 [FreeBSD] 2002-03-20" +VERSION_DATE= 20020320 TARGET_ARCH?= ${MACHINE_ARCH} BINUTIL_ARCH= ${TARGET_ARCH} ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/addr2line/Makefile#2 (text+ko) ==== @@ -1,8 +1,8 @@ -# $FreeBSD: src/gnu/usr.bin/binutils/addr2line/Makefile,v 1.6 2002/03/13 05:14:28 obrien Exp $ +# $FreeBSD: src/gnu/usr.bin/binutils/addr2line/Makefile,v 1.7 2002/03/20 23:05:09 obrien Exp $ .include "../Makefile.inc0" -.PATH: ${SRCDIR}/binutils +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc PROG= addr2line SRCS= addr2line.c ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/ar/Makefile#2 (text+ko) ==== @@ -1,8 +1,8 @@ -# $FreeBSD: src/gnu/usr.bin/binutils/ar/Makefile,v 1.8 2001/10/14 01:31:36 obrien Exp $ +# $FreeBSD: src/gnu/usr.bin/binutils/ar/Makefile,v 1.9 2002/03/20 23:05:09 obrien Exp $ .include "../Makefile.inc0" -.PATH: ${SRCDIR}/binutils +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc PROG= ar SRCS= ar.c not-ranlib.c ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/as/Makefile.inc0#2 (text+ko) ==== @@ -1,4 +1,4 @@ -# $FreeBSD: src/gnu/usr.bin/binutils/as/Makefile.inc0,v 1.17 2002/03/14 02:24:23 obrien Exp $ +# $FreeBSD: src/gnu/usr.bin/binutils/as/Makefile.inc0,v 1.18 2002/03/20 23:05:09 obrien Exp $ .include "${.CURDIR}/../../Makefile.inc0" @@ -13,6 +13,8 @@ input-scrub.c listing.c literal.c macro.c messages.c \ output-file.c read.c sb.c stabs.c \ subsegs.c symbols.c write.c depend.c ehopt.c +# DEO: why not used? +#SRCS+= itbl-ops.c .if (${TARGET_ARCH} == "alpha") WARNS= 0 .else ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/as/alpha-freebsd/config.h#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $FreeBSD: src/gnu/usr.bin/binutils/as/alpha-freebsd/config.h,v 1.4 2001/06/01 05:30:27 obrien Exp $ */ +/* $FreeBSD: src/gnu/usr.bin/binutils/as/alpha-freebsd/config.h,v 1.5 2002/03/20 23:05:09 obrien Exp $ */ /* config.h. Generated automatically by configure. */ /* config.in. Generated automatically from configure.in by autoheader. */ @@ -28,6 +28,9 @@ /* Define to `long' if doesn't define. */ /* #undef off_t */ +/* Define if you need to in order for stat and other things to work. */ +/* #undef _POSIX_SOURCE */ + /* Define to `unsigned' if doesn't define. */ /* #undef size_t */ @@ -146,7 +149,7 @@ #define PACKAGE "gas" /* Version number of package */ -/* #define VERSION "2.11" */ +/* #define VERSION "2.12" */ /* Define if defaulting to ELF on SCO 5. */ /* #undef SCO_ELF */ @@ -154,15 +157,15 @@ /* Using strict COFF? */ /* #undef STRICTCOFF */ -/* Use ELF stabs for MIPS, not ECOFF stabs */ -/* #undef MIPS_STABS_ELF */ - /* Define if default target is PowerPC Solaris. */ /* #undef TARGET_SOLARIS_COMMENT */ /* Define as 1 if big endian. */ /* #undef TARGET_BYTES_BIG_ENDIAN */ +/* Use ELF stabs for MIPS, not ECOFF stabs */ +/* #undef MIPS_STABS_ELF */ + /* Default architecture. */ /* #undef DEFAULT_ARCH */ @@ -212,7 +215,7 @@ /* #undef USE_EMULATIONS */ /* Supported emulations. */ -#define EMULATIONS +#define EMULATIONS /* Default emulation. */ #define DEFAULT_EMULATION "" @@ -224,16 +227,16 @@ #define BFD_ASSEMBLER 1 /* Target alias. */ -#define TARGET_ALIAS "alpha-unknown-freebsd5.0" +#define TARGET_ALIAS "alpha-obrien-freebsd5.0" /* Canonical target. */ -#define TARGET_CANONICAL "alpha-unknown-freebsd5.0" +#define TARGET_CANONICAL "alpha-obrien-freebsd5.0" /* Target CPU. */ #define TARGET_CPU "alpha" /* Target vendor. */ -#define TARGET_VENDOR "unknown" +#define TARGET_VENDOR "obrien" /* Target OS. */ #define TARGET_OS "freebsd5.0" ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/as/i386-freebsd/config.h#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $FreeBSD: src/gnu/usr.bin/binutils/as/i386-freebsd/config.h,v 1.4 2001/05/28 09:19:42 obrien Exp $ */ +/* $FreeBSD: src/gnu/usr.bin/binutils/as/i386-freebsd/config.h,v 1.5 2002/03/20 23:05:09 obrien Exp $ */ /* config.h. Generated automatically by configure. */ /* config.in. Generated automatically from configure.in by autoheader. */ @@ -28,6 +28,9 @@ /* Define to `long' if doesn't define. */ /* #undef off_t */ +/* Define if you need to in order for stat and other things to work. */ +/* #undef _POSIX_SOURCE */ + /* Define to `unsigned' if doesn't define. */ /* #undef size_t */ @@ -146,7 +149,7 @@ #define PACKAGE "gas" /* Version number of package */ -/* #define VERSION "2.11" */ +/* #define VERSION "2.12" */ /* Define if defaulting to ELF on SCO 5. */ /* #undef SCO_ELF */ @@ -154,15 +157,15 @@ /* Using strict COFF? */ /* #undef STRICTCOFF */ -/* Use ELF stabs for MIPS, not ECOFF stabs */ -/* #undef MIPS_STABS_ELF */ - /* Define if default target is PowerPC Solaris. */ /* #undef TARGET_SOLARIS_COMMENT */ /* Define as 1 if big endian. */ /* #undef TARGET_BYTES_BIG_ENDIAN */ +/* Use ELF stabs for MIPS, not ECOFF stabs */ +/* #undef MIPS_STABS_ELF */ + /* Default architecture. */ /* #define DEFAULT_ARCH "i386" */ @@ -224,16 +227,16 @@ #define BFD_ASSEMBLER 1 /* Target alias. */ -#define TARGET_ALIAS "i386-unknown-freebsd5.0" +#define TARGET_ALIAS "i386-obrien-freebsd5.0" /* Canonical target. */ -#define TARGET_CANONICAL "i386-unknown-freebsd5.0" +#define TARGET_CANONICAL "i386-obrien-freebsd5.0" /* Target CPU. */ #define TARGET_CPU "i386" /* Target vendor. */ -#define TARGET_VENDOR "unknown" +#define TARGET_VENDOR "obrien" /* Target OS. */ #define TARGET_OS "freebsd5.0" ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/as/ia64-freebsd/config.h#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $FreeBSD: src/gnu/usr.bin/binutils/as/ia64-freebsd/config.h,v 1.1 2001/10/15 02:12:09 obrien Exp $ */ +/* $FreeBSD: src/gnu/usr.bin/binutils/as/ia64-freebsd/config.h,v 1.2 2002/03/20 23:05:09 obrien Exp $ */ /* config.h. Generated automatically by configure. */ /* config.in. Generated automatically from configure.in by autoheader. */ @@ -149,7 +149,7 @@ #define PACKAGE "gas" /* Version number of package */ -/* #define VERSION "2.11.2" */ +/* #define VERSION "2.12" */ /* Define if defaulting to ELF on SCO 5. */ /* #undef SCO_ELF */ @@ -157,20 +157,14 @@ /* Using strict COFF? */ /* #undef STRICTCOFF */ -/* Use ELF stabs for MIPS, not ECOFF stabs */ -/* #undef MIPS_STABS_ELF */ - -/* Use ELF stabs for MIPS, not ECOFF stabs */ -/* #undef MIPS_STABS_ELF */ - /* Define if default target is PowerPC Solaris. */ /* #undef TARGET_SOLARIS_COMMENT */ /* Define as 1 if big endian. */ /* #undef TARGET_BYTES_BIG_ENDIAN */ -/* Default architecture. */ -/* #undef DEFAULT_ARCH */ +/* Use ELF stabs for MIPS, not ECOFF stabs */ +/* #undef MIPS_STABS_ELF */ /* Default architecture. */ /* #undef DEFAULT_ARCH */ @@ -221,7 +215,7 @@ /* #undef USE_EMULATIONS */ /* Supported emulations. */ -#define EMULATIONS +#define EMULATIONS /* Default emulation. */ #define DEFAULT_EMULATION "" @@ -233,16 +227,16 @@ #define BFD_ASSEMBLER 1 /* Target alias. */ -#define TARGET_ALIAS "ia64-unknown-freebsd5" +#define TARGET_ALIAS "ia64-obrien-freebsd5.0" /* Canonical target. */ -#define TARGET_CANONICAL "ia64-unknown-freebsd5" +#define TARGET_CANONICAL "ia64-obrien-freebsd5.0" /* Target CPU. */ #define TARGET_CPU "ia64" /* Target vendor. */ -#define TARGET_VENDOR "unknown" +#define TARGET_VENDOR "obrien" /* Target OS. */ #define TARGET_OS "freebsd5.0" @@ -254,13 +248,13 @@ #define HAVE_LC_MESSAGES 1 /* Define to 1 if NLS is requested */ -/* #undef ENABLE_NLS */ +/* #define ENABLE_NLS 1 */ /* Define as 1 if you have gettext and don't want to use GNU gettext. */ /* #undef HAVE_GETTEXT */ /* Compiling cross-assembler? */ -/* #define CROSS_COMPILE 1 */ +/* #undef CROSS_COMPILE */ /* assert broken? */ /* #undef BROKEN_ASSERT */ ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/as/powerpc-freebsd/config.h#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $FreeBSD: src/gnu/usr.bin/binutils/as/powerpc-freebsd/config.h,v 1.3 2001/02/21 11:43:31 obrien Exp $ */ +/* $FreeBSD: src/gnu/usr.bin/binutils/as/powerpc-freebsd/config.h,v 1.4 2002/03/20 23:05:10 obrien Exp $ */ /* config.h. Generated automatically by configure. */ /* config.in. Generated automatically from configure.in by autoheader. */ @@ -149,13 +149,13 @@ #define PACKAGE "gas" /* Version number of package */ -/* #define VERSION "000427" */ +/* #define VERSION "2.12" */ /* Define if defaulting to ELF on SCO 5. */ /* #undef SCO_ELF */ -/* Use ELF stabs for MIPS, not ECOFF stabs */ -/* #undef MIPS_STABS_ELF */ +/* Using strict COFF? */ +/* #undef STRICTCOFF */ /* Define if default target is PowerPC Solaris. */ /* #undef TARGET_SOLARIS_COMMENT */ @@ -163,6 +163,9 @@ /* Define as 1 if big endian. */ /* #undef TARGET_BYTES_BIG_ENDIAN */ +/* Use ELF stabs for MIPS, not ECOFF stabs */ +/* #undef MIPS_STABS_ELF */ + /* Default architecture. */ /* #undef DEFAULT_ARCH */ @@ -212,7 +215,7 @@ /* #undef USE_EMULATIONS */ /* Supported emulations. */ -#define EMULATIONS +#define EMULATIONS /* Default emulation. */ #define DEFAULT_EMULATION "" @@ -224,16 +227,16 @@ #define BFD_ASSEMBLER 1 /* Target alias. */ -#define TARGET_ALIAS "powerpc-unknown-freebsd5.0" +#define TARGET_ALIAS "powerpc-obrien-freebsd5.0" /* Canonical target. */ -#define TARGET_CANONICAL "powerpc-unknown-freebsd5.0" +#define TARGET_CANONICAL "powerpc-obrien-freebsd5.0" /* Target CPU. */ #define TARGET_CPU "powerpc" /* Target vendor. */ -#define TARGET_VENDOR "unknown" +#define TARGET_VENDOR "obrien" /* Target OS. */ #define TARGET_OS "freebsd5.0" ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/as/sparc64-freebsd/config.h#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $FreeBSD: src/gnu/usr.bin/binutils/as/sparc64-freebsd/config.h,v 1.3 2001/12/06 03:10:42 obrien Exp $ */ +/* $FreeBSD: src/gnu/usr.bin/binutils/as/sparc64-freebsd/config.h,v 1.4 2002/03/20 23:05:10 obrien Exp $ */ /* config.h. Generated automatically by configure. */ /* config.in. Generated automatically from configure.in by autoheader. */ @@ -149,7 +149,7 @@ #define PACKAGE "gas" /* Version number of package */ -/* #define VERSION "2.11" */ +/* #define VERSION "2.12" */ /* Define if defaulting to ELF on SCO 5. */ /* #undef SCO_ELF */ @@ -157,17 +157,16 @@ /* Using strict COFF? */ /* #undef STRICTCOFF */ -/* Use ELF stabs for MIPS, not ECOFF stabs */ -/* #undef MIPS_STABS_ELF */ - /* Define if default target is PowerPC Solaris. */ /* #undef TARGET_SOLARIS_COMMENT */ /* Define as 1 if big endian. */ /* #undef TARGET_BYTES_BIG_ENDIAN */ +/* Use ELF stabs for MIPS, not ECOFF stabs */ +/* #undef MIPS_STABS_ELF */ + /* Default architecture. */ -/* #undef DEFAULT_ARCH */ #define DEFAULT_ARCH "v9-64" /* Using cgen code? */ @@ -216,7 +215,7 @@ /* #undef USE_EMULATIONS */ /* Supported emulations. */ -#define EMULATIONS +#define EMULATIONS /* Default emulation. */ #define DEFAULT_EMULATION "" @@ -228,7 +227,7 @@ #define BFD_ASSEMBLER 1 /* Target alias. */ -#define TARGET_ALIAS "sparc54-obrien-freebsd5.0" +#define TARGET_ALIAS "sparc64-obrien-freebsd5.0" /* Canonical target. */ #define TARGET_CANONICAL "sparc64-obrien-freebsd5.0" ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/gdb/Makefile#2 (text+ko) ==== @@ -1,4 +1,4 @@ -# $FreeBSD: src/gnu/usr.bin/binutils/gdb/Makefile,v 1.51 2002/03/13 05:14:29 obrien Exp $ +# $FreeBSD: src/gnu/usr.bin/binutils/gdb/Makefile,v 1.54 2002/03/23 17:15:48 obrien Exp $ .include "../Makefile.inc0" @@ -16,7 +16,7 @@ corefile.c corelow.c cp-valprint.c dcache.c dbxread.c \ demangle.c dwarfread.c dwarf2read.c elfread.c environ.c eval.c \ exec.c expprint.c f-exp.y f-lang.c f-typeprint.c f-valprint.c \ - findvar.c fork-child.c freebsd-uthread.c gdbarch.c gdbtypes.c \ + findvar%UAfix.c fork-child.c freebsd-uthread.c gdbarch.c gdbtypes.c \ infcmd.c inflow.c infptrace.c infrun.c inftarg.c language.c \ jv-exp.y jv-lang.c jv-valprint.c jv-typeprint.c nlmread.c \ m2-lang.c m2-exp.y m2-typeprint.c m2-valprint.c main.c maint.c \ @@ -60,13 +60,10 @@ CFLAGS+= -DFREEBSD_ELF CFLAGS+= -I$(.CURDIR) -I${DESTDIR}/usr/include/readline -# use phkmalloc -CFLAGS+= -DNO_MMALLOC -# uncomment the next line if you want to debug gdb -#CFLAGS+= -g YFLAGS= CLEANFILES= init.c init.c-tmp wait.h +CLEANFILES+= findvar%UAfix.c # We do this by grepping through sources. If that turns out to be too slow, # maybe we could just require every .o file to have an initialization routine ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/gdb/Makefile.alpha#2 (text+ko) ==== @@ -1,8 +1,13 @@ # -# $FreeBSD: src/gnu/usr.bin/binutils/gdb/Makefile.alpha,v 1.3 1999/08/27 23:34:49 peter Exp $ +# $FreeBSD: src/gnu/usr.bin/binutils/gdb/Makefile.alpha,v 1.4 2002/03/16 19:33:22 obrien Exp $ # XSRCS+= freebsd-nat.c alpha-tdep.c kvm-fbsd.c LDADD+= -lkvm +findvar%UAfix.c: findvar.c + sed -e \ + 's,char registers[REGISTER_BYTES + /* SLOP */ 256];,char registers[REGISTER_BYTES + /* SLOP */ 256] __attribute__ ((aligned (8)));,g' \ + ${.ALLSRC} >${.TARGET} + .PATH: ${.CURDIR}/alpha ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/gdb/Makefile.i386#2 (text+ko) ==== @@ -1,7 +1,8 @@ -# -# $FreeBSD: src/gnu/usr.bin/binutils/gdb/Makefile.i386,v 1.2 1999/08/27 23:34:49 peter Exp $ -# +# $FreeBSD: src/gnu/usr.bin/binutils/gdb/Makefile.i386,v 1.3 2002/03/16 19:33:22 obrien Exp $ XSRCS+= freebsd-nat.c i386-tdep.c i387-tdep.c kvm-fbsd.c +findvar%UAfix.c: findvar.c + ln -sf ${.ALLSRC} ${.TARGET} + .PATH: ${.CURDIR}/i386 ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $FreeBSD: src/gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c,v 1.29 2001/10/10 17:48:42 bde Exp $ */ +/* $FreeBSD: src/gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c,v 1.30 2002/03/27 04:55:43 obrien Exp $ */ /* Native-dependent code for BSD Unix running on i386's, for GDB. Copyright 1988, 1989, 1991, 1992, 1994, 1996 Free Software Foundation, Inc. @@ -663,3 +663,48 @@ } #endif /* PT_GETDBREGS */ + +CORE_ADDR +fbsd_sigtramp_saved_pc (frame) + struct frame_info *frame; +{ + CORE_ADDR sigcontext_addr; + CORE_ADDR sigcode_addr; + char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT]; + int ptrbytes = TARGET_PTR_BIT / TARGET_CHAR_BIT; + int sigcontext_offs = (2 * TARGET_INT_BIT) / TARGET_CHAR_BIT; + int sigcode_offs = (-1 * TARGET_INT_BIT) / TARGET_CHAR_BIT; + + /* Get sigcontext address, it is the third parameter on the stack. */ + if (frame->next) + sigcontext_addr = read_memory_integer (FRAME_ARGS_ADDRESS (frame->next) + + FRAME_ARGS_SKIP + + sigcontext_offs, + ptrbytes); + else + sigcontext_addr = read_memory_integer (read_register (SP_REGNUM) + + sigcontext_offs, + ptrbytes); + +#ifdef OSIGCODE_MAGIC_OFFSET + if (frame->next) + sigcode_addr = read_memory_integer (FRAME_ARGS_ADDRESS (frame->next) + + FRAME_ARGS_SKIP + + sigcode_offs, + ptrbytes); + else + sigcode_addr = read_memory_integer (read_register (SP_REGNUM) + + sigcode_offs, + ptrbytes); + target_read_memory (sigcode_addr + OSIGCODE_MAGIC_OFFSET, + buf, ptrbytes); + if (extract_unsigned_integer(buf, ptrbytes) == 0x01d516) { + target_read_memory (sigcontext_addr + OSIGCONTEXT_PC_OFFSET, + buf, ptrbytes); + } else +#endif + /* Don't cause a memory_error when accessing sigcontext in case the stack + layout has changed or the stack is corrupt. */ + target_read_memory (sigcontext_addr + NSIGCONTEXT_PC_OFFSET, buf, ptrbytes); + return extract_unsigned_integer (buf, ptrbytes); +} ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/gdb/i386/tm.h#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $FreeBSD: src/gnu/usr.bin/binutils/gdb/i386/tm.h,v 1.13 2000/04/29 09:03:49 dfr Exp $ */ +/* $FreeBSD: src/gnu/usr.bin/binutils/gdb/i386/tm.h,v 1.14 2002/03/27 04:55:43 obrien Exp $ */ /* Target macro definitions for i386 running FreeBSD Copyright (C) 1997 Free Software Foundation, Inc. @@ -43,18 +43,22 @@ #define FRAME_SAVED_PC(FRAME) \ (kernel_debugging ? fbsd_kern_frame_saved_pc(FRAME) : \ (((FRAME)->signal_handler_caller \ - ? sigtramp_saved_pc (FRAME) \ + ? fbsd_sigtramp_saved_pc (FRAME) \ : read_memory_integer ((FRAME)->frame + 4, 4)) \ )) -/* On FreeBSD, sigtramp has size 0x18 and is immediately below the +/* On FreeBSD, sigtramp has size 0x48 and is immediately below the ps_strings struct which has size 0x10 and is at the top of the user stack. */ #undef SIGTRAMP_START #undef SIGTRAMP_END -#define SIGTRAMP_START(pc) 0xbfbfdfd8 -#define SIGTRAMP_END(pc) 0xbfbfdff0 +#define SIGTRAMP_START(pc) 0xbfbfffa8 +#define SIGTRAMP_END(pc) 0xbfbffff0 +#undef SIGCONTEXT_PC_OFFSET +#define OSIGCONTEXT_PC_OFFSET 20 +#define NSIGCONTEXT_PC_OFFSET 76 +#define OSIGCODE_MAGIC_OFFSET 20 struct objfile; void freebsd_uthread_new_objfile PARAMS ((struct objfile *objfile)); ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/ld/config.h#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $FreeBSD: src/gnu/usr.bin/binutils/ld/config.h,v 1.3 2000/05/22 08:09:40 obrien Exp $ */ +/* $FreeBSD: src/gnu/usr.bin/binutils/ld/config.h,v 1.4 2002/03/20 23:05:10 obrien Exp $ */ /* config.h. Generated automatically by configure. */ /* config.in. Generated automatically from configure.in by autoheader. */ @@ -28,9 +28,6 @@ /* Define to `long' if doesn't define. */ /* #undef off_t */ -/* Define if you need to in order for stat and other things to work. */ -/* #undef _POSIX_SOURCE */ - /* Define to `unsigned' if doesn't define. */ /* #undef size_t */ @@ -140,7 +137,7 @@ #define PACKAGE "ld" /* Version number of package */ -/* #define VERSION "2.9.5" */ +/* #define VERSION "2.12" */ /* Define if you have the stpcpy function */ /* #undef HAVE_STPCPY */ ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/libbfd/alpha/bfd.h#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $FreeBSD: src/gnu/usr.bin/binutils/libbfd/alpha/bfd.h,v 1.9 2002/02/22 18:46:43 obrien Exp $ */ +/* $FreeBSD: src/gnu/usr.bin/binutils/libbfd/alpha/bfd.h,v 1.10 2002/03/20 23:05:10 obrien Exp $ */ /* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically generated from "bfd-in.h", "init.c", "opncls.c", "libbfd.c", @@ -52,9 +52,9 @@ #endif #endif -/* #define BFD_VERSION 211930000 */ -/* #define BFD_VERSION_DATE 20020209 */ -/* #define BFD_VERSION_STRING "2.11.93 20020209" */ +/* #define BFD_VERSION 212000000 */ +/* #define BFD_VERSION_DATE 20020309 */ +/* #define BFD_VERSION_STRING "2.12" */ /* The word size used by BFD on the host. This may be 64 with a 32 bit target if the host is 64 bit, or if other 64 bit targets have ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/libbfd/config.h.fbsd#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $FreeBSD: src/gnu/usr.bin/binutils/libbfd/config.h.fbsd,v 1.1 2001/10/14 01:24:06 obrien Exp $ */ +/* $FreeBSD: src/gnu/usr.bin/binutils/libbfd/config.h.fbsd,v 1.2 2002/03/20 23:05:10 obrien Exp $ */ /* config.h. Generated automatically by configure. */ /* config.in. Generated automatically from configure.in by autoheader. */ @@ -28,6 +28,9 @@ /* Define to `long' if doesn't define. */ /* #undef off_t */ +/* Define if you need to in order for stat and other things to work. */ +/* #undef _POSIX_SOURCE */ + /* Define to `unsigned' if doesn't define. */ /* #undef size_t */ @@ -176,7 +179,7 @@ #define PACKAGE "bfd" /* Version number of package */ -/* #define VERSION "2.11" */ +/* #define VERSION "2.12" */ /* Define if you have the stpcpy function */ /* #undef HAVE_STPCPY */ ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/libbfd/i386/bfd.h#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $FreeBSD: src/gnu/usr.bin/binutils/libbfd/i386/bfd.h,v 1.12 2002/02/22 05:35:18 obrien Exp $ */ +/* $FreeBSD: src/gnu/usr.bin/binutils/libbfd/i386/bfd.h,v 1.13 2002/03/20 23:05:14 obrien Exp $ */ /* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically generated from "bfd-in.h", "init.c", "opncls.c", "libbfd.c", @@ -52,9 +52,9 @@ #endif #endif -/* #define BFD_VERSION 211930000 */ -/* #define BFD_VERSION_DATE 20020209 */ -/* #define BFD_VERSION_STRING "2.11.93 20020209" */ +/* #define BFD_VERSION 212000000 */ +/* #define BFD_VERSION_DATE 20020309 */ +/* #define BFD_VERSION_STRING "2.12" */ /* The word size used by BFD on the host. This may be 64 with a 32 bit target if the host is 64 bit, or if other 64 bit targets have ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/libbfd/ia64/bfd.h#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $FreeBSD: src/gnu/usr.bin/binutils/libbfd/ia64/bfd.h,v 1.2 2002/01/28 19:12:51 obrien Exp $ */ +/* $FreeBSD: src/gnu/usr.bin/binutils/libbfd/ia64/bfd.h,v 1.3 2002/03/20 23:05:15 obrien Exp $ */ /* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically generated from "bfd-in.h", " ", "init.c", " ", "opncls.c", @@ -53,9 +53,9 @@ #endif #endif -/* #define BFD_VERSION 211930000 */ -/* #define BFD_VERSION_DATE 20020127 */ -/* #define BFD_VERSION_STRING "2.11.93 20020127" */ +/* #define BFD_VERSION 212000000 */ +/* #define BFD_VERSION_DATE 20020309 */ +/* #define BFD_VERSION_STRING "2.12" */ /* The word size used by BFD on the host. This may be 64 with a 32 bit target if the host is 64 bit, or if other 64 bit targets have ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/libbfd/powerpc/bfd.h#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $FreeBSD: src/gnu/usr.bin/binutils/libbfd/powerpc/bfd.h,v 1.2 2002/01/28 19:07:31 obrien Exp $ */ +/* $FreeBSD: src/gnu/usr.bin/binutils/libbfd/powerpc/bfd.h,v 1.3 2002/03/20 23:05:16 obrien Exp $ */ /* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically generated from "bfd-in.h", " ", "init.c", " ", "opncls.c", @@ -53,9 +53,9 @@ #endif #endif -/* #define BFD_VERSION 211930000 */ -/* #define BFD_VERSION_DATE 20020127 */ -/* #define BFD_VERSION_STRING "2.11.93 20020127" */ +/* #define BFD_VERSION 212000000 */ +/* #define BFD_VERSION_DATE 20020309 */ +/* #define BFD_VERSION_STRING "2.12" */ /* The word size used by BFD on the host. This may be 64 with a 32 bit target if the host is 64 bit, or if other 64 bit targets have ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/libbfd/sparc64/bfd.h#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $FreeBSD: src/gnu/usr.bin/binutils/libbfd/sparc64/bfd.h,v 1.7 2002/03/15 07:45:18 obrien Exp $ */ +/* $FreeBSD: src/gnu/usr.bin/binutils/libbfd/sparc64/bfd.h,v 1.8 2002/03/20 23:05:16 obrien Exp $ */ /* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically generated from "bfd-in.h", "init.c", "opncls.c", "libbfd.c", @@ -49,9 +49,9 @@ #endif #endif -/* #define BFD_VERSION 211930000 */ -/* #define BFD_VERSION_DATE 20020209 */ -/* #define BFD_VERSION_STRING "2.11.93 20020209" */ +/* #define BFD_VERSION 212000000 */ +/* #define BFD_VERSION_DATE 20020309 */ +/* #define BFD_VERSION_STRING "2.12" */ /* The word size used by BFD on the host. This may be 64 with a 32 bit target if the host is 64 bit, or if other 64 bit targets have ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/libbinutils/config.h#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $FreeBSD: src/gnu/usr.bin/binutils/libbinutils/config.h,v 1.7 2002/01/27 13:05:56 obrien Exp $ */ +/* $FreeBSD: src/gnu/usr.bin/binutils/libbinutils/config.h,v 1.8 2002/03/20 23:05:17 obrien Exp $ */ /* config.h. Generated automatically by configure. */ /* config.in. Generated automatically from configure.in by autoheader. */ @@ -149,7 +149,7 @@ #define PACKAGE "binutils" /* Version number of package */ -/* #define VERSION "2.11.93" */ +/* #define VERSION "2.12" */ /* Define if you have the stpcpy function */ /* #undef HAVE_STPCPY */ ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/libopcodes/config.h#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $FreeBSD: src/gnu/usr.bin/binutils/libopcodes/config.h,v 1.4 2002/01/27 13:10:59 obrien Exp $ */ +/* $FreeBSD: src/gnu/usr.bin/binutils/libopcodes/config.h,v 1.5 2002/03/20 23:05:17 obrien Exp $ */ /* config.h. Generated automatically by configure. */ /* config.in. Generated automatically from configure.in by autoheader. */ @@ -119,7 +119,7 @@ #define PACKAGE "opcodes" /* Version number of package */ -/* #define VERSION "2.11.93" */ +/* #define VERSION "2.12" */ /* Define if you have the stpcpy function */ /* #undef HAVE_STPCPY */ ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/nm/Makefile#2 (text+ko) ==== @@ -1,8 +1,8 @@ -# $FreeBSD: src/gnu/usr.bin/binutils/nm/Makefile,v 1.7 2002/03/13 05:14:30 obrien Exp $ +# $FreeBSD: src/gnu/usr.bin/binutils/nm/Makefile,v 1.8 2002/03/20 23:05:17 obrien Exp $ .include "../Makefile.inc0" -.PATH: ${SRCDIR}/binutils +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc PROG= nm SRCS= nm.c ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/objcopy/Makefile#2 (text+ko) ==== @@ -1,8 +1,8 @@ -# $FreeBSD: src/gnu/usr.bin/binutils/objcopy/Makefile,v 1.7 2002/03/13 05:14:30 obrien Exp $ +# $FreeBSD: src/gnu/usr.bin/binutils/objcopy/Makefile,v 1.8 2002/03/20 23:05:18 obrien Exp $ .include "../Makefile.inc0" -.PATH: ${SRCDIR}/binutils +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc PROG= objcopy SRCS= objcopy.c not-strip.c ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/objdump/Makefile#2 (text+ko) ==== @@ -1,8 +1,8 @@ -# $FreeBSD: src/gnu/usr.bin/binutils/objdump/Makefile,v 1.9 2002/03/13 05:14:30 obrien Exp $ +# $FreeBSD: src/gnu/usr.bin/binutils/objdump/Makefile,v 1.10 2002/03/20 23:05:18 obrien Exp $ .include "../Makefile.inc0" -.PATH: ${SRCDIR}/binutils +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc PROG= objdump SRCS= objdump.c prdbg.c ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/ranlib/Makefile#2 (text+ko) ==== @@ -1,8 +1,8 @@ -# $FreeBSD: src/gnu/usr.bin/binutils/ranlib/Makefile,v 1.8 2001/10/14 01:31:37 obrien Exp $ +# $FreeBSD: src/gnu/usr.bin/binutils/ranlib/Makefile,v 1.9 2002/03/20 23:05:18 obrien Exp $ .include "../Makefile.inc0" -.PATH: ${SRCDIR}/binutils +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc PROG= ranlib SRCS= ar.o is-ranlib.o ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/readelf/Makefile#2 (text+ko) ==== @@ -1,8 +1,8 @@ -# $FreeBSD: src/gnu/usr.bin/binutils/readelf/Makefile,v 1.4 2002/03/13 05:14:30 obrien Exp $ +# $FreeBSD: src/gnu/usr.bin/binutils/readelf/Makefile,v 1.5 2002/03/20 23:05:19 obrien Exp $ .include "../Makefile.inc0" -.PATH: ${SRCDIR}/binutils +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc # No a.out vs. ELF version so don't install in /usr/libexec/elf BINDIR=/usr/bin ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/size/Makefile#2 (text+ko) ==== @@ -1,8 +1,8 @@ -# $FreeBSD: src/gnu/usr.bin/binutils/size/Makefile,v 1.7 2002/03/13 05:14:31 obrien Exp $ +# $FreeBSD: src/gnu/usr.bin/binutils/size/Makefile,v 1.8 2002/03/20 23:05:19 obrien Exp $ .include "../Makefile.inc0" -.PATH: ${SRCDIR}/binutils +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc PROG= size SRCS= size.c ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/strings/Makefile#2 (text+ko) ==== @@ -1,8 +1,8 @@ -# $FreeBSD: src/gnu/usr.bin/binutils/strings/Makefile,v 1.7 2002/03/13 05:14:31 obrien Exp $ +# $FreeBSD: src/gnu/usr.bin/binutils/strings/Makefile,v 1.8 2002/03/20 23:05:19 obrien Exp $ .include "../Makefile.inc0" -.PATH: ${SRCDIR}/binutils +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc PROG= strings SRCS= strings.c ==== //depot/releng/5_dp1/src/gnu/usr.bin/binutils/strip/Makefile#2 (text+ko) ==== @@ -1,8 +1,8 @@ -# $FreeBSD: src/gnu/usr.bin/binutils/strip/Makefile,v 1.9 2002/03/13 05:14:31 obrien Exp $ +# $FreeBSD: src/gnu/usr.bin/binutils/strip/Makefile,v 1.10 2002/03/20 23:05:19 obrien Exp $ .include "../Makefile.inc0" -.PATH: ${SRCDIR}/binutils +.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc PROG= strip SRCS= objcopy.c is-strip.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-releng" in the body of the message