head	1.46;
access;
symbols
	RELENG_8_4:1.45.0.2
	RELENG_9_1_0_RELEASE:1.44.28.1.4.2
	RELENG_9_1:1.44.28.1.0.4
	RELENG_9_1_BP:1.44.28.1
	RELENG_8_3_0_RELEASE:1.44.22.1.8.1
	RELENG_8_3:1.44.22.1.0.8
	RELENG_8_3_BP:1.44.22.1
	RELENG_9_0_0_RELEASE:1.44.28.1.2.1
	RELENG_9_0:1.44.28.1.0.2
	RELENG_9_0_BP:1.44.28.1
	RELENG_9:1.44.0.28
	RELENG_9_BP:1.44
	RELENG_7_4_0_RELEASE:1.44.26.1
	RELENG_8_2_0_RELEASE:1.44.22.1.6.1
	RELENG_7_4:1.44.0.26
	RELENG_7_4_BP:1.44
	RELENG_8_2:1.44.22.1.0.6
	RELENG_8_2_BP:1.44.22.1
	RELENG_8_1_0_RELEASE:1.44.22.1.4.1
	RELENG_8_1:1.44.22.1.0.4
	RELENG_8_1_BP:1.44.22.1
	RELENG_7_3_0_RELEASE:1.44.24.1
	RELENG_7_3:1.44.0.24
	RELENG_7_3_BP:1.44
	RELENG_8_0_0_RELEASE:1.44.22.1.2.1
	RELENG_8_0:1.44.22.1.0.2
	RELENG_8_0_BP:1.44.22.1
	RELENG_8:1.44.0.22
	RELENG_8_BP:1.44
	RELENG_7_2_0_RELEASE:1.44.20.1
	RELENG_7_2:1.44.0.20
	RELENG_7_2_BP:1.44
	RELENG_7_1_0_RELEASE:1.44.18.1
	RELENG_6_4_0_RELEASE:1.44.16.1
	RELENG_7_1:1.44.0.18
	RELENG_7_1_BP:1.44
	RELENG_6_4:1.44.0.16
	RELENG_6_4_BP:1.44
	RELENG_7_0_0_RELEASE:1.44
	RELENG_6_3_0_RELEASE:1.44
	RELENG_7_0:1.44.0.14
	RELENG_7_0_BP:1.44
	RELENG_6_3:1.44.0.12
	RELENG_6_3_BP:1.44
	RELENG_7:1.44.0.10
	RELENG_7_BP:1.44
	RELENG_6_2_0_RELEASE:1.44
	RELENG_6_2:1.44.0.8
	RELENG_6_2_BP:1.44
	RELENG_5_5_0_RELEASE:1.42.2.1
	RELENG_5_5:1.42.2.1.0.4
	RELENG_5_5_BP:1.42.2.1
	RELENG_6_1_0_RELEASE:1.44
	RELENG_6_1:1.44.0.6
	RELENG_6_1_BP:1.44
	RELENG_6_0_0_RELEASE:1.44
	RELENG_6_0:1.44.0.4
	RELENG_6_0_BP:1.44
	RELENG_6:1.44.0.2
	RELENG_6_BP:1.44
	RELENG_5_4_0_RELEASE:1.42.2.1
	RELENG_5_4:1.42.2.1.0.2
	RELENG_5_4_BP:1.42.2.1
	RELENG_5_3_0_RELEASE:1.42
	RELENG_5_3:1.42.0.4
	RELENG_5_3_BP:1.42
	RELENG_5:1.42.0.2
	RELENG_5_BP:1.42
	RELENG_3_5_0_RELEASE:1.38.2.1
	RELENG_3_4_0_RELEASE:1.38.2.1
	RELENG_3_3_0_RELEASE:1.38.2.1
	RELENG_3_2_0_RELEASE:1.38.2.1
	RELENG_3_1_0_RELEASE:1.38
	RELENG_3:1.38.0.2
	RELENG_3_BP:1.38
	RELENG_2_2_8_RELEASE:1.13.2.7
	RELENG_3_0_0_RELEASE:1.38
	RELENG_2_2_7_RELEASE:1.13.2.7
	RELENG_2_2_6_RELEASE:1.13.2.7
	RELENG_2_2_5_RELEASE:1.13.2.6
	RELENG_2_2_2_RELEASE:1.13.2.6
	RELENG_2_2_1_RELEASE:1.13.2.1
	RELENG_2_2_0_RELEASE:1.13.2.1
	RELENG_2_1_7_RELEASE:1.11.4.2
	RELENG_2_1_6_1_RELEASE:1.11.4.2
	RELENG_2_1_6_RELEASE:1.11.4.2
	RELENG_2_2:1.13.0.2
	RELENG_2_2_BP:1.13
	RELENG_2_1_5_RELEASE:1.11.4.2
	RELENG_2_1_0_RELEASE:1.11
	RELENG_2_1_0:1.11.0.4
	RELENG_2_1_0_BP:1.11
	RELENG_2_0_5_RELEASE:1.11
	RELENG_2_0_5:1.11.0.2
	RELENG_2_0_5_BP:1.11
	RELENG_2_0_5_ALPHA:1.11
	RELEASE_2_0:1.7
	BETA_2_0:1.7
	ALPHA_2_0:1.7.0.2
	MOVED_NEWCVS:1.3
	FINAL_1_1_5:1.3
	ALPHA_1_1_5:1.3;
locks; strict;
comment	@# @;


1.46
date	2013.06.08.00.41.17;	author svnexp;	state Exp;
branches;
next	1.45;

1.45
date	2012.11.17.01.49.10;	author svnexp;	state Exp;
branches
	1.45.2.1;
next	1.44;

1.44
date	2005.02.14.12.10.13;	author obrien;	state Exp;
branches
	1.44.2.1
	1.44.10.1
	1.44.16.1
	1.44.18.1
	1.44.20.1
	1.44.22.1
	1.44.24.1
	1.44.26.1
	1.44.28.1;
next	1.43;

1.43
date	2004.11.30.05.12.36;	author marcel;	state Exp;
branches;
next	1.42;

1.42
date	2004.06.26.08.48.50;	author bde;	state Exp;
branches
	1.42.2.1;
next	1.41;

1.41
date	2004.06.25.06.48.54;	author marcel;	state Exp;
branches;
next	1.40;

1.40
date	99.05.02.19.51.34;	author dfr;	state dead;
branches;
next	1.39;

1.39
date	99.04.03.07.04.53;	author bde;	state Exp;
branches;
next	1.38;

1.38
date	98.10.15.14.15.09;	author bde;	state Exp;
branches
	1.38.2.1;
next	1.37;

1.37
date	98.09.14.22.49.01;	author jdp;	state Exp;
branches;
next	1.36;

1.36
date	98.08.30.02.46.35;	author jb;	state Exp;
branches;
next	1.35;

1.35
date	98.08.30.02.01.07;	author jb;	state Exp;
branches;
next	1.34;

1.34
date	98.05.04.17.56.22;	author bde;	state Exp;
branches;
next	1.33;

1.33
date	98.05.01.14.44.00;	author bde;	state Exp;
branches;
next	1.32;

1.32
date	98.04.30.08.03.49;	author dfr;	state Exp;
branches;
next	1.31;

1.31
date	98.03.19.15.21.19;	author bde;	state Exp;
branches;
next	1.30;

1.30
date	98.03.07.08.54.42;	author bde;	state Exp;
branches;
next	1.29;

1.29
date	97.10.05.09.39.10;	author jkh;	state Exp;
branches;
next	1.28;

1.28
date	97.05.02.11.22.51;	author gj;	state Exp;
branches;
next	1.27;

1.27
date	97.05.01.16.24.37;	author pst;	state Exp;
branches;
next	1.26;

1.26
date	97.05.01.13.40.57;	author peter;	state Exp;
branches;
next	1.25;

1.25
date	97.05.01.00.26.43;	author pst;	state Exp;
branches;
next	1.24;

1.24
date	97.05.01.00.18.50;	author pst;	state Exp;
branches;
next	1.23;

1.23
date	97.04.30.15.23.02;	author bde;	state Exp;
branches;
next	1.22;

1.22
date	97.04.27.21.36.48;	author gj;	state Exp;
branches;
next	1.21;

1.21
date	97.04.07.08.08.14;	author peter;	state Exp;
branches;
next	1.20;

1.20
date	97.03.29.10.33.13;	author peter;	state Exp;
branches;
next	1.19;

1.19
date	97.03.15.20.59.59;	author gj;	state Exp;
branches;
next	1.18;

1.18
date	97.03.12.22.34.07;	author gj;	state Exp;
branches;
next	1.17;

1.17
date	97.02.22.15.45.28;	author peter;	state Exp;
branches;
next	1.16;

1.16
date	97.01.17.06.32.35;	author jkh;	state Exp;
branches;
next	1.15;

1.15
date	97.01.15.22.35.22;	author gj;	state Exp;
branches;
next	1.14;

1.14
date	97.01.14.05.57.15;	author jkh;	state Exp;
branches;
next	1.13;

1.13
date	96.06.24.04.22.55;	author jkh;	state Exp;
branches
	1.13.2.1;
next	1.12;

1.12
date	96.05.07.23.15.24;	author wosch;	state Exp;
branches;
next	1.11;

1.11
date	95.04.07.05.13.25;	author nate;	state Exp;
branches
	1.11.4.1;
next	1.10;

1.10
date	95.01.06.21.26.35;	author ache;	state Exp;
branches;
next	1.9;

1.9
date	94.12.30.23.25.10;	author jkh;	state Exp;
branches;
next	1.8;

1.8
date	94.11.28.17.19.52;	author ats;	state Exp;
branches;
next	1.7;

1.7
date	94.09.20.05.17.50;	author bde;	state Exp;
branches;
next	1.6;

1.6
date	94.09.15.05.17.59;	author swallace;	state Exp;
branches;
next	1.5;

1.5
date	94.09.11.21.41.19;	author rgrimes;	state Exp;
branches;
next	1.4;

1.4
date	94.08.05.22.04.02;	author wollman;	state Exp;
branches;
next	1.3;

1.3
date	94.06.14.11.00.35;	author ache;	state Exp;
branches;
next	1.2;

1.2
date	94.06.11.16.20.42;	author paul;	state Exp;
branches;
next	1.1;

1.1
date	94.06.10.13.35.01;	author paul;	state Exp;
branches;
next	;

1.45.2.1
date	2012.11.17.01.49.10;	author svnexp;	state dead;
branches;
next	1.45.2.2;

1.45.2.2
date	2013.03.28.13.02.50;	author svnexp;	state Exp;
branches;
next	;

1.44.2.1
date	2012.11.17.07.39.19;	author svnexp;	state Exp;
branches;
next	;

1.44.10.1
date	2012.11.17.08.01.32;	author svnexp;	state Exp;
branches;
next	;

1.44.16.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.44.18.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.44.20.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.44.22.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.44.22.1.2.1
	1.44.22.1.4.1
	1.44.22.1.6.1
	1.44.22.1.8.1;
next	1.44.22.2;

1.44.22.2
date	2012.11.17.10.35.59;	author svnexp;	state Exp;
branches;
next	;

1.44.22.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.44.22.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.44.22.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.44.22.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.44.22.1.8.2;

1.44.22.1.8.2
date	2012.11.17.08.24.40;	author svnexp;	state Exp;
branches;
next	;

1.44.24.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.44.26.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.44.26.2;

1.44.26.2
date	2012.11.17.08.16.39;	author svnexp;	state Exp;
branches;
next	;

1.44.28.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.44.28.1.2.1
	1.44.28.1.4.1;
next	1.44.28.2;

1.44.28.2
date	2012.11.17.11.36.13;	author svnexp;	state Exp;
branches;
next	1.44.28.3;

1.44.28.3
date	2013.07.05.20.03.12;	author svnexp;	state Exp;
branches;
next	;

1.44.28.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.44.28.1.2.2;

1.44.28.1.2.2
date	2012.11.17.08.36.13;	author svnexp;	state Exp;
branches;
next	;

1.44.28.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.44.28.1.4.2;

1.44.28.1.4.2
date	2012.11.17.08.47.03;	author svnexp;	state Exp;
branches;
next	;

1.42.2.1
date	2005.03.01.20.27.45;	author obrien;	state Exp;
branches;
next	;

1.38.2.1
date	99.05.08.08.58.39;	author dfr;	state dead;
branches;
next	;

1.13.2.1
date	97.02.02.20.46.32;	author joerg;	state Exp;
branches;
next	1.13.2.2;

1.13.2.2
date	97.05.01.00.13.56;	author pst;	state Exp;
branches;
next	1.13.2.3;

1.13.2.3
date	97.05.01.00.27.48;	author pst;	state Exp;
branches;
next	1.13.2.4;

1.13.2.4
date	97.05.01.16.17.57;	author pst;	state Exp;
branches;
next	1.13.2.5;

1.13.2.5
date	97.05.01.16.34.46;	author pst;	state Exp;
branches;
next	1.13.2.6;

1.13.2.6
date	97.05.02.11.26.03;	author gj;	state Exp;
branches;
next	1.13.2.7;

1.13.2.7
date	97.10.26.22.47.44;	author jkh;	state Exp;
branches;
next	1.13.2.8;

1.13.2.8
date	99.09.05.11.06.29;	author peter;	state Exp;
branches;
next	;

1.11.4.1
date	96.05.29.22.33.47;	author jkh;	state Exp;
branches;
next	1.11.4.2;

1.11.4.2
date	96.06.05.02.39.55;	author jkh;	state Exp;
branches;
next	;


desc
@@


1.46
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/251512
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/gnu/usr.bin/gdb/gdb/Makefile 251512 2013-06-07 21:40:02Z emaste $

PROG=	gdb${GDB_SUFFIX}
SRCS=	gdb.c

BULIBS= ${OBJ_BU}/libbfd/libbfd.a ${OBJ_BU}/libopcodes/libopcodes.a \
	${OBJ_BU}/libiberty/libiberty.a
GDBLIBS= ${OBJ_GDB}/libgdb/libgdb.a

# libthread_db.so calls back into gdb for the proc services.  Make all the
# global symbols visible.
LDFLAGS+= -Wl,-E

DPADD=	${GDBLIBS} ${BULIBS} ${LIBM} ${LIBREADLINE} ${LIBTERMCAP} ${LIBGNUREGEX}
LDADD=	${GDBLIBS} ${BULIBS} -lm -lreadline -ltermcap -lgnuregex

.include <bsd.prog.mk>
CFLAGS+=	-DDEBUGDIR=\"${DEBUGDIR}\"
@


1.45
log
@Switching exporter and resync
@
text
@d1 1
a1 1
# $FreeBSD: head/gnu/usr.bin/gdb/gdb/Makefile 141911 2005-02-14 12:10:14Z obrien $
d18 1
@


1.45.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:02:50 +0000
@
text
@d1 17
@


1.45.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 17
# $FreeBSD: releng/8.4/gnu/usr.bin/gdb/gdb/Makefile 141911 2005-02-14 12:10:14Z obrien $

PROG=	gdb${GDB_SUFFIX}
SRCS=	gdb.c

BULIBS= ${OBJ_BU}/libbfd/libbfd.a ${OBJ_BU}/libopcodes/libopcodes.a \
	${OBJ_BU}/libiberty/libiberty.a
GDBLIBS= ${OBJ_GDB}/libgdb/libgdb.a

# libthread_db.so calls back into gdb for the proc services.  Make all the
# global symbols visible.
LDFLAGS+= -Wl,-E

DPADD=	${GDBLIBS} ${BULIBS} ${LIBM} ${LIBREADLINE} ${LIBTERMCAP} ${LIBGNUREGEX}
LDADD=	${GDBLIBS} ${BULIBS} -lm -lreadline -ltermcap -lgnuregex

.include <bsd.prog.mk>
@


1.44
log
@Use the system gnuregex library vs. building GNU regex bits into libiberty
and using them.

Reviewed by:	marcel,imp
Desired by:	ache
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.44.10.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/gnu/usr.bin/gdb/gdb/Makefile 141911 2005-02-14 12:10:14Z obrien $
@


1.44.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/gnu/usr.bin/gdb/gdb/Makefile 141911 2005-02-14 12:10:14Z obrien $
@


1.44.28.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.44.28.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/gnu/usr.bin/gdb/gdb/Makefile 141911 2005-02-14 12:10:14Z obrien $
@


1.44.28.3
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/252827
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/gnu/usr.bin/gdb/gdb/Makefile 252827 2013-07-05 19:35:51Z emaste $
a17 1
CFLAGS+=	-DDEBUGDIR=\"${DEBUGDIR}\"
@


1.44.28.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.44.28.1.4.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/gnu/usr.bin/gdb/gdb/Makefile 141911 2005-02-14 12:10:14Z obrien $
@


1.44.28.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.44.28.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/gnu/usr.bin/gdb/gdb/Makefile 141911 2005-02-14 12:10:14Z obrien $
@


1.44.26.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.44.26.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/gnu/usr.bin/gdb/gdb/Makefile 141911 2005-02-14 12:10:14Z obrien $
@


1.44.24.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.44.22.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.44.22.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/gnu/usr.bin/gdb/gdb/Makefile 141911 2005-02-14 12:10:14Z obrien $
@


1.44.22.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.44.22.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/gnu/usr.bin/gdb/gdb/Makefile 141911 2005-02-14 12:10:14Z obrien $
@


1.44.22.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.44.22.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.44.22.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.44.20.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.44.18.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.44.16.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.43
log
@Makefile (only) changes to allow building a cross debugger.
@
text
@d14 2
a15 2
DPADD=	${GDBLIBS} ${BULIBS} ${LIBM} ${LIBREADLINE} ${LIBTERMCAP}
LDADD=	${GDBLIBS} ${BULIBS} -lm -lreadline -ltermcap
@


1.42
log
@Fixed world breakage in the NOSHARED=yes case (missing library).

Fixed some style bugs.
@
text
@d3 1
a3 1
PROG=	gdb
@


1.42.2.1
log
@MFC: use the system gnuregex library vs. building GNU regex bits into libiberty.
@
text
@d14 2
a15 2
DPADD=	${GDBLIBS} ${BULIBS} ${LIBM} ${LIBREADLINE} ${LIBTERMCAP} ${LIBGNUREGEX}
LDADD=	${GDBLIBS} ${BULIBS} -lm -lreadline -ltermcap -lgnuregex
@


1.41
log
@Add bmake glue for gdb 6.1.1. Supports alpha, amd64, i386, ia64
and sparc64.

Note that the debugger doesn't support threading, nor kernel
debugging yet.
@
text
@d6 1
a6 1
BULIBS= ${OBJ_BU}/libbfd/libbfd.a ${OBJ_BU}/libopcodes/libopcodes.a	\
d10 1
a10 1
# libthread_db.so calls back into gdb for the proc services. Make all the
d14 2
a15 2
DPADD+= ${GDBLIBS} ${BULIBS} ${LIBREADLINE} ${LIBM}
LDADD+= ${GDBLIBS} ${BULIBS} -lreadline -lm
@


1.40
log
@Remove old bmake framework for gdb. It has moved to live next to binutils.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.39 1999/04/03 07:04:53 bde Exp $
d3 2
a4 1
PROG = gdb
d6 3
a8 10
GDBDIR=	${.CURDIR}/../../../../contrib/gdb
.if ${OBJFORMAT} == elf
BFDDIR= ${.CURDIR}/../../binutils/libbfd/${MACHINE_ARCH}
BINDIR=	/usr/libexec/elf
.else
BFDDIR= ${.CURDIR}/../bfd
BINDIR=	/usr/libexec/aout
.endif
.PATH:	${GDBDIR}/gdb
.PATH:	${GDBDIR}/opcodes
d10 3
a12 3
.if ${OBJFORMAT} == elf
CFLAGS+=	-DFREEBSD_ELF
.endif
d14 2
a15 110
XSRCS = annotate.c blockframe.c breakpoint.c buildsym.c c-lang.c \
	c-typeprint.c c-valprint.c ch-lang.c ch-typeprint.c \
	ch-valprint.c coffread.c command.c complaints.c copying.c \
	core-regset.c corelow.c cp-valprint.c \
	dcache.c dbxread.c demangle.c dwarfread.c \
	elfread.c environ.c eval.c exec.c expprint.c \
	findvar.c fork-child.c freebsd-nat.c gdbtypes.c \
	i386-tdep.c infcmd.c inflow.c infptrace.c \
	infrun.c inftarg.c language.c \
	m2-lang.c m2-typeprint.c m2-valprint.c main.c maint.c \
	mem-break.c minsyms.c objfiles.c parse.c \
	printcmd.c remote.c remote-utils.c solib.c source.c \
	stabsread.c stack.c symfile.c symmisc.c \
	symtab.c target.c thread.c top.c \
	typeprint.c utils.c valarith.c valops.c \
	valprint.c values.c version.c \
	serial.c ser-unix.c ser-tcp.c mdebugread.c \
	c-exp.y f-exp.y m2-exp.y i387-tdep.c \
	kvm-fbsd.c bcache.c \
	corefile.c ch-exp.c f-lang.c scm-exp.c scm-lang.c \
	scm-valprint.c f-typeprint.c f-valprint.c nlmread.c \
	callback.c
XSRCS+= i386-dis.c dis-buf.c disassemble.c
SRCS=	init.c ${XSRCS}

CFLAGS+= -I$(.CURDIR) -I${DESTDIR}/usr/include/readline -I${BFDDIR}
# use phkmalloc
CFLAGS+= -DNO_MMALLOC
# uncomment the next line if you want to debug gdb
#CFLAGS+= -g
YFLAGS=

CLEANFILES=	init.c init.c-tmp

.if ${OBJFORMAT} == elf

.if exists(${.OBJDIR}/../../binutils/libbfd)
LIBBFD=	${.OBJDIR}/../../binutils/libbfd/libbfd.a
.else
LIBBFD=	${.CURDIR}/../../binutils/libbfd/libbfd.a
.endif

.if exists(${.OBJDIR}/../../binutils/libiberty)
LIBIBERTY=	${.OBJDIR}/../../binutils/libiberty/libiberty.a
.else
LIBIBERTY=	${.CURDIR}/../../binutils/libiberty/libiberty.a
.endif

.else

.if exists(${.OBJDIR}/../bfd)
LIBBFD=	${.OBJDIR}/../bfd/libbfd.a
.else
LIBBFD=	${.CURDIR}/../bfd/libbfd.a
.endif

.if exists(${.OBJDIR}/../libiberty)
LIBIBERTY= ${.OBJDIR}/../libiberty/libiberty.a
.else
LIBIBERTY= ${.CURDIR}/../libiberty/libiberty.a
.endif

.endif # OBJFORMAT

DPADD=	${LIBBFD} ${LIBREADLINE} ${LIBGNUREGEX} ${LIBIBERTY} ${LIBTERMCAP}
LDADD=	${LIBBFD} -lreadline     -lgnuregex     ${LIBIBERTY} -ltermcap
DPADD+=	${LIBIBERTY}
LDADD+=	${LIBIBERTY}

# 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
# of a given name (remote-udi.o -> _initialize_remote_udi, etc.).
#
# Formatting conventions:  The name of the _initialize_* routines must start
# in column zero, and must not be inside #if.
#
# Note that the set of files with init functions might change, or the names
# of the functions might change, so this files needs to depend on all the
# object files that will be linked into gdb.

init.c: ${XSRCS}
	@@${ECHO} Making ${.TARGET}
	@@rm -f init.c-tmp
	@@echo '/* Do not modify this file.  */' >init.c-tmp
	@@echo '/* It is created automatically by the Makefile.  */'>>init.c-tmp
	@@echo 'void initialize_all_files () {' >>init.c-tmp
	@@for i in ${.ALLSRC} ; do \
	  filename=`echo $$i | sed \
	    -e '/^Onindy.c/d' \
	    -e '/^nindy.c/d' \
	    -e '/ttyflush.c/d' \
	    -e '/xdr_ld.c/d' \
	    -e '/xdr_ptrace.c/d' \
	    -e '/xdr_rdb.c/d' \
	    -e '/udr.c/d' \
	    -e '/udip2soc.c/d' \
	    -e '/udi2go32.c/d' \
	    -e '/version.c/d' \
	    -e '/^[a-z0-9A-Z_]*_[SU].c/d' \
	    -e '/[a-z0-9A-Z_]*-exp.tab.c/d'` ; \
	  case $$filename in \
	    "") ;; \
	    *) sed <$$filename >>init.c-tmp -n \
	-e '/^_initialize_[a-z_0-9A-Z]* *(/s/^\([a-z_0-9A-Z]*\).*/  {extern void \1 (); \1 ();}/p' ; ;; \
	  esac ; \
	done
	@@echo '}' >>init.c-tmp
	@@mv init.c-tmp ${.TARGET}

.PRECIOUS: init.c
@


1.39
log
@echo -> ${ECHO}.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.38 1998/10/15 14:15:09 bde Exp $
@


1.38
log
@Fixed breakage of gdbreplay's and gdbserver's BINDIR in previous commit.
They may belong in /usr/libexec/{aout,elf}, but objformat doesn't
support that.

Fixed bogus `?=' assignments for BINDIR.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.37 1998/09/14 22:49:01 jdp Exp $
d101 1
a101 1
	@@echo Making ${.TARGET}
@


1.38.2.1
log
@MFC: Import gdb-4.18

Approved by: core
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.38 1998/10/15 14:15:09 bde Exp $
@


1.37
log
@Fix GDB so that it can handle ELF core dumps.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.36 1998/08/30 02:46:35 jb Exp $
d8 1
d11 1
@


1.36
log
@Missed some BINFORMATs. Fingers! Can't live with 'em. Can't live without 'em.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.35 1998/08/30 02:01:07 jb Exp $
d21 1
a21 1
	corelow.c cp-valprint.c \
@


1.35
log
@BINFORMAT -> OBJFORMAT ready for E-day. I tossed a coin to decide this
one. We'll probably need to revisit gdb after E-day.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.34 1998/05/04 17:56:22 bde Exp $
d6 1
a6 1
.if ${BINFORMAT} == elf
d52 1
a52 1
.if ${BINFORMAT} == elf
d80 1
a80 1
.endif # BINFORMAT
@


1.34
log
@Simplified using new yacc rules.  This is cosmetic - the old rules
worked because .ORDER prevented problems from concurrent generation
of multiple parsers (and their headers), and there were no missing
dependencies because the generated headers were not actually used.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.33 1998/05/01 14:44:00 bde Exp $
d14 1
a14 1
.if ${BINFORMAT} == elf
@


1.33
log
@Fixed apparent bitrot (`=' changed to `?=') in the definition of BINDIR
in the previous commit.  Just don't define it here at all.  This works
now that the default is inherited properly.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.32 1998/04/30 08:03:49 dfr Exp $
d35 1
a35 1
	c-exp.c f-exp.c m2-exp.c i387-tdep.c \
d48 1
d50 1
a50 1
CLEANFILES+=	c-exp.c f-exp.c m2-exp.c init.c y.tab.h init.c-tmp
a85 2

.ORDER:	c-exp.c f-exp.c m2-exp.c
@


1.32
log
@Add support for ELF shared libraries.  Also use bfd from the binutils in that
case rather than gdb's own copy.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.31 1998/03/19 15:21:19 bde Exp $
a17 1
BINDIR?= /usr/bin
@


1.31
log
@Removed vestiges of use of beforedepend target.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.30 1998/03/07 08:54:42 bde Exp $
d6 5
d14 5
a18 1
BINDIR= /usr/bin
d44 1
a44 1
CFLAGS+= -I$(.CURDIR) -I${DESTDIR}/usr/include/readline -I$(.CURDIR)/../bfd
d52 16
d79 2
@


1.30
log
@Use `foo/bar.a' instead of `-Lfoo -lbar' for linking to static internal
libraries, so that `ld -f' in can create correct dependencies for
yet-to-be-built libraries.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.29 1997/10/05 09:39:10 jkh Exp $
a41 2
#beforedepend:	c-exp.c f-exp.c m2-exp.c init.c
.ORDER:	c-exp.c f-exp.c m2-exp.c
d59 2
@


1.29
log
@Changes to support full make parallelism (-j<n>) in the world
target.
Reviewed by:	<many different folks>
Submitted by:	Nickolay N. Dudorov" <nnd@@nnd.itfs.nsk.su>
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.28 1997/05/02 11:22:51 gj Exp $
d46 1
a46 2
LDADD+=   -L${.OBJDIR}/../bfd -lbfd
DPADD+=   ${.OBJDIR}/../bfd/libbfd.a
d48 1
a48 2
LDADD+=   -L${.CURDIR}/../bfd/ -lbfd
DPADD+=   ${.CURDIR}/../bfd/libbfd.a
a50 3
DPADD+= ${LIBREADLINE} ${LIBGNUREGEX}
LDADD+= -lreadline  -lgnuregex

d52 1
a52 2
LDADD+=   -L${.OBJDIR}/../libiberty -liberty
DPADD+=   ${.OBJDIR}/../libiberty/libiberty.a
d54 1
a54 2
LDADD+=   -L${.CURDIR}/../libiberty/ -liberty
DPADD+=   ${.CURDIR}/../libiberty/libiberty.a
d57 4
a60 10
DPADD+= ${LIBTERMCAP}
LDADD+= -ltermcap

.if exists(${.OBJDIR}/../libiberty)
LDADD+=   -L${.OBJDIR}/../libiberty -liberty
DPADD+=   ${.OBJDIR}/../libiberty/libiberty.a
.else
LDADD+=   -L${.CURDIR}/../libiberty/ -liberty
DPADD+=   ${.CURDIR}/../libiberty/libiberty.a
.endif
@


1.28
log
@delete kcorelow.c, it didn't produce any code and broke init.c
because 2 references to _initialize_kcorelow (the other one
from kvm-fbsd.c) resulted. This prevented gdb from working correectly.

delete kcorelow.c from XSRCS in the Makefile.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.27 1997/05/01 16:24:37 pst Exp $
d42 2
a43 1
beforedepend:	c-exp.c f-exp.c m2-exp.c init.c
@


1.27
log
@Clean up merge from 2.2 (without spamming peter's changes)
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.26 1997/05/01 13:40:57 peter Exp $
d18 1
a18 1
	infrun.c inftarg.c kcorelow.c language.c \
@


1.26
log
@Patch up init.c generation so that it works in -current..  It was trying
to use files that do not exist here.  Also, fix(?) ${.OBJDIR}/init.c hack.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.25 1997/05/01 00:26:43 pst Exp $
d41 1
a41 1
CLEANFILES+=	c-exp.c f-exp.c m2-exp.c init.c y.tab.h 
d86 1
a86 2
	@@echo Making init.c
	echo ${.ALLSRC}
d112 1
a112 3
	@@mv init.c-tmp init.c

CLEANFILES+=	init.c-tmp
@


1.25
log
@Fix up a spurious '@@' I added at the last second
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.24 1997/05/01 00:18:50 pst Exp $
d33 1
a33 2
SRCS=	${.OBJDIR}/init.c ${XSRCS}
CLEANFILES+= init.c
d41 2
a42 2
CLEANFILES+=	c-exp.c f-exp.c m2-exp.c y.tab.h
beforedepend:	c-exp.c f-exp.c m2-exp.c
d85 1
a85 1
${.OBJDIR}/init.c: ${XSRCS}
d87 1
d92 1
a92 1
	@@for i in ${XSRCS} ; do \
d108 1
a108 4
	    *) fn=${.CURDIR}/$$filename ; \
	       test -f $$fn || fn=${GDBDIR}/gdb/$$filename ; \
	       test -f $$fn || fn=${GDBDIR}/opcodes/$$filename ; \
	       sed <$$fn >>init.c-tmp -n \
d114 2
@


1.24
log
@Merge from 2.2: auto-gen init.c and add ser-tcp.c
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.23 1997/04/30 15:23:02 bde Exp $
a74 2
.include <bsd.prog.mk>

d114 1
a114 1
	@@done
d119 2
@


1.23
log
@Backed out previous change.  It just gave a more verbose Makefile by
repeating the default for MAN1.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.22 1997/04/27 21:36:48 gj Exp $
d10 1
a10 1
SRCS = annotate.c blockframe.c breakpoint.c buildsym.c c-lang.c \
d18 1
a18 1
	infrun.c inftarg.c init.c kcorelow.c language.c \
d25 2
a26 1
	valprint.c values.c version.c serial.c ser-unix.c mdebugread.c\
d32 3
a34 1
SRCS+= i386-dis.c dis-buf.c disassemble.c
d76 45
@


1.22
log
@change kvm-fbsd.c so that kernel debugging works again.

document the -k and -wcore options in the manpage.

change Makefile to use a local copy of the manpage.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.21 1997/04/07 08:08:14 peter Exp $
a31 2

MAN1= gdb.1
@


1.21
log
@Attempt to patch up gdb so that it has a chance of working with the new
UPAGES layout.. it was entirely too comfortable with reading and writing
the U area before.  I've changed it to use PT_GETREGS/PT_PUTREGS
ptrace ops instead of READ_U etc.  The code to read the registers from
core dumps is a bandaid at best.  It seems to have problems reading
core dumps from dynamic linked executables still, but at least static
dumps work.

I desperately need help from a gdb/bfd expert. :-)  HELP!!
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.20 1997/03/29 10:33:13 peter Exp $
d32 2
@


1.20
log
@generate c-exp.c, f-exp.c and m2-exp.c with yacc rather than using
the generated ones in the gdb dist.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.19 1997/03/15 20:59:59 gj Exp $
d12 1
a12 1
	ch-valprint.c coffread.c command.c complaints.c copying.c core-aout.c \
d16 1
a16 1
	findvar.c fork-child.c i386b-nat.c gdbtypes.c \
@


1.19
log
@delete the LINKS line (link gdb to kgdb) by popular demand.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.18 1997/03/12 22:34:07 gj Exp $
d26 1
a26 1
	c-exp.tab.c f-exp.tab.c m2-exp.tab.c i387-tdep.c \
d38 3
@


1.18
log
@add LINKS line to Makefile to automatically produce a link to kgdb

define START_PROGRESS in nm.h to check whether gdb was invoked as kgdb
and set the kernel_debugging flag in that case.

2.2 candidate ?
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.17 1997/02/22 15:45:28 peter Exp $
a67 2

LINKS= ${BINDIR}/${PROG} ${BINDIR}/k${PROG}
@


1.17
log
@Revert $FreeBSD$ to $Id$
@
text
@d1 1
a1 1
#	$Id$
d68 2
@


1.16
log
@Remove -lmalloc; it's no longer relevant.
Pointed-Out-By: jdp, dima and others.
@
text
@d1 1
a1 1
#	$FreeBSD$
@


1.15
log
@changes required in the gdb directory for making gdb
using the sources in /usr/src/contrib/gdb.

This is based on /usr/ports/devel/gdb.

2.2 candidate ?
@
text
@d59 1
a59 1
LDADD+= -ltermcap -lmalloc
@


1.14
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d4 5
a9 1
CLEANFILES+= y.tab.h c-exp.tab.c ch-exp.tab.c m2-exp.tab.c
d12 3
a14 3
	ch-valprint.c coffread.c command.c complaints.c copying.c core.c \
	coredep.c corelow.c cp-valprint.c \
	dcache.c dbxread.c demangle.c disassemble.c dis-buf.c dwarfread.c \
d16 2
a17 2
	findvar.c fork-child.c freebsd-nat.c gdbtypes.c i386-dis.c \
	i386-pinsn.c i386-tdep.c infcmd.c inflow.c infptrace.c \
d26 12
a37 1
	c-exp.tab.c ch-exp.tab.c m2-exp.tab.c compat_que.c
d39 10
a48 28
c-exp.tab.c: $(.CURDIR)/c-exp.y
	yacc -d -p c_ $(.CURDIR)/c-exp.y
	sed -e '/extern.*malloc/d'  -e '/extern.*realloc/d'  -e '/extern.*free/d' \
         -e '/include.*malloc.h/d'  -e 's/malloc/xmalloc/g'  \
         -e 's/realloc/xrealloc/g'  < y.tab.c > c-exp.new
	rm -f y.tab.c
	mv -f c-exp.new ./c-exp.tab.c

ch-exp.tab.c: $(.CURDIR)/ch-exp.y
	yacc -d -p ch_ $(.CURDIR)/ch-exp.y
	sed -e '/extern.*malloc/d'  -e '/extern.*realloc/d'  -e '/extern.*free/d' \
         -e '/include.*malloc.h/d'  -e 's/malloc/xmalloc/g'  \
         -e 's/realloc/xrealloc/g'  < y.tab.c > ch-exp.new
	rm -f y.tab.c
	mv -f ch-exp.new ./ch-exp.tab.c

m2-exp.tab.c: $(.CURDIR)/m2-exp.y
	yacc -d -p m2_ $(.CURDIR)/m2-exp.y
	sed -e '/extern.*malloc/d'  -e '/extern.*realloc/d'  -e '/extern.*free/d' \
         -e '/include.*malloc.h/d'  -e 's/malloc/xmalloc/g'  \
         -e 's/realloc/xrealloc/g'  < y.tab.c > m2-exp.new
	rm -f y.tab.c
	mv -f m2-exp.new ./m2-exp.tab.c


CFLAGS+= -I$(.CURDIR)/. -I${DESTDIR}/usr/include/readline -I$(.CURDIR)/../bfd
DPADD+= ${LIBREADLINE} ${LIBTERMCAP} ${LIBGNUREGEX}
LDADD+= -lreadline  -ltermcap -lgnuregex
d58 2
a59 7
.if exists(${.OBJDIR}/../bfd)
LDADD+=   -L${.OBJDIR}/../bfd -lbfd
DPADD+=   ${.OBJDIR}/../bfd/libbfd.a
.else
LDADD+=   -L${.CURDIR}/../bfd/ -lbfd
DPADD+=   ${.CURDIR}/../bfd/libbfd.a
.endif
d61 3
a63 3
.if exists(${.OBJDIR}/../mmalloc)
LDADD+=   -L${.OBJDIR}/../mmalloc -lmmalloc
DPADD+=   ${.OBJDIR}/../mmalloc/libmmalloc.a
d65 2
a66 2
LDADD+=   -L${.CURDIR}/../mmalloc/ -lmmalloc
DPADD+=   ${.CURDIR}/../mmalloc/libmmalloc.a
@


1.13
log
@Bring in my changes for removing the pestilent obj links (unless you
really want them) from /usr/src.  This is the final version of the
patches, incorporating the feedback I've received from -current.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.12 1996/05/07 23:15:24 wosch Exp $
@


1.13.2.1
log
@Mega-merge to bring over the new gdb (now from `contrib').

Note that the `doc' subdir is currently broken and disabled, but i
need to see all this on a true 2.2 machine before i can fix this, and
therefore need this commit first.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.13 1996/06/24 04:22:55 jkh Exp $
a3 5

GDBDIR=	${.CURDIR}/../../../../contrib/gdb
.PATH:	${GDBDIR}/gdb
.PATH:	${GDBDIR}/opcodes

d5 1
d8 3
a10 3
	ch-valprint.c coffread.c command.c complaints.c copying.c core-aout.c \
	corelow.c cp-valprint.c \
	dcache.c dbxread.c demangle.c dwarfread.c \
d12 2
a13 2
	findvar.c fork-child.c i386b-nat.c gdbtypes.c \
	i386-tdep.c infcmd.c inflow.c infptrace.c \
d22 1
a22 12
	c-exp.tab.c f-exp.tab.c m2-exp.tab.c i387-tdep.c \
	kvm-fbsd.c bcache.c \
	corefile.c ch-exp.c f-lang.c scm-exp.c scm-lang.c \
	scm-valprint.c f-typeprint.c f-valprint.c nlmread.c \
	callback.c
SRCS+= i386-dis.c dis-buf.c disassemble.c

CFLAGS+= -I$(.CURDIR) -I${DESTDIR}/usr/include/readline -I$(.CURDIR)/../bfd
# use phkmalloc
CFLAGS+= -DNO_MMALLOC
# uncomment the next line if you want to debug gdb
#CFLAGS+= -g
d24 28
a51 10
.if exists(${.OBJDIR}/../bfd)
LDADD+=   -L${.OBJDIR}/../bfd -lbfd
DPADD+=   ${.OBJDIR}/../bfd/libbfd.a
.else
LDADD+=   -L${.CURDIR}/../bfd/ -lbfd
DPADD+=   ${.CURDIR}/../bfd/libbfd.a
.endif

DPADD+= ${LIBREADLINE} ${LIBGNUREGEX}
LDADD+= -lreadline  -lgnuregex
d61 7
a67 2
DPADD+= ${LIBTERMCAP}
LDADD+= -ltermcap # -lmalloc
d69 3
a71 3
.if exists(${.OBJDIR}/../libiberty)
LDADD+=   -L${.OBJDIR}/../libiberty -liberty
DPADD+=   ${.OBJDIR}/../libiberty/libiberty.a
d73 2
a74 2
LDADD+=   -L${.CURDIR}/../libiberty/ -liberty
DPADD+=   ${.CURDIR}/../libiberty/libiberty.a
@


1.13.2.2
log
@Add in ser-tcp.c for debugging over tcp again (sigh).
Make init.c auto-generated.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.13.2.1 1997/02/02 20:46:32 joerg Exp $
d10 1
a10 1
XSRCS = annotate.c blockframe.c breakpoint.c buildsym.c c-lang.c \
d18 1
a18 1
	infrun.c inftarg.c kcorelow.c language.c \
d25 1
a25 2
	valprint.c values.c version.c \
	serial.c ser-unix.c ser-tcp.c mdebugread.c \
d31 1
a31 5
XSRCS+= i386-dis.c dis-buf.c disassemble.c

CLEANFILES+= init.c

SRCS+=	${.OBJDIR}/init.c ${XSRCS}
a69 45

# 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
# of a given name (remote-udi.o -> _initialize_remote_udi, etc.).
#
# Formatting conventions:  The name of the _initialize_* routines must start
# in column zero, and must not be inside #if.
#
# Note that the set of files with init functions might change, or the names
# of the functions might change, so this files needs to depend on all the
# object files that will be linked into gdb.

${.OBJDIR}/init.c: ${XSRCS}
	@@echo Making init.c
	rm -f init.c-tmp
	echo '/* Do not modify this file.  */' >init.c-tmp
	echo '/* It is created automatically by the Makefile.  */'>>init.c-tmp
	echo 'void initialize_all_files () {' >>init.c-tmp
	for i in ${XSRCS} ; do \
	  filename=`echo $$i | sed \
	    -e '/^Onindy.c/d' \
	    -e '/^nindy.c/d' \
	    -e '/ttyflush.c/d' \
	    -e '/xdr_ld.c/d' \
	    -e '/xdr_ptrace.c/d' \
	    -e '/xdr_rdb.c/d' \
	    -e '/udr.c/d' \
	    -e '/udip2soc.c/d' \
	    -e '/udi2go32.c/d' \
	    -e '/version.c/d' \
	    -e '/^[a-z0-9A-Z_]*_[SU].c/d' \
	    -e '/[a-z0-9A-Z_]*-exp.tab.c/d'` ; \
	  case $$filename in \
	    "") ;; \
	    *) fn=${.CURDIR}/$$filename ; \
	       test -f $$fn || fn=${GDBDIR}/gdb/$$filename ; \
	       test -f $$fn || fn=${GDBDIR}/opcodes/$$filename ; \
	       sed <$$fn >>init.c-tmp -n \
	-e '/^_initialize_[a-z_0-9A-Z]* *(/s/^\([a-z_0-9A-Z]*\).*/  {extern void \1 (); \1 ();}/p' ; ;; \
	  esac ; \
	done
	echo '}' >>init.c-tmp
	mv init.c-tmp init.c

.PRECIOUS: init.c
@


1.13.2.3
log
@Merge cleanup from -current
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.13.2.2 1997/05/01 00:13:56 pst Exp $
d74 2
d89 5
a93 5
	@@rm -f init.c-tmp
	@@echo '/* Do not modify this file.  */' >init.c-tmp
	@@echo '/* It is created automatically by the Makefile.  */'>>init.c-tmp
	@@echo 'void initialize_all_files () {' >>init.c-tmp
	@@for i in ${XSRCS} ; do \
d116 2
a117 2
	@@echo '}' >>init.c-tmp
	@@mv init.c-tmp init.c
a119 2

.include <bsd.prog.mk>
@


1.13.2.4
log
@Figured out why gdb wasn't finding init.c -- I feel like such a fool.
I forgot to do a make depend after moving the file.  You'll need to do
so too.

Makefile now uses standard rules for autogened files.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.13.2.3 1997/05/01 00:27:48 pst Exp $
a32 1
SRCS+=	init.c ${XSRCS}
d36 2
d85 2
a86 2
init.c: ${XSRCS}
	@@echo Making ${.TARGET}
d115 1
a115 1
	@@mv init.c-tmp ${.TARGET}
@


1.13.2.5
log
@Bring Peter's changes into 2.2's gdb
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.13.2.4 1997/05/01 16:17:57 pst Exp $
d27 1
a27 1
	c-exp.c f-exp.c m2-exp.c i387-tdep.c \
d33 3
a35 1
SRCS=	init.c ${XSRCS}
a42 3
CLEANFILES+=	c-exp.c f-exp.c m2-exp.c init.c y.tab.h init.c-tmp
beforedepend:	c-exp.c f-exp.c m2-exp.c init.c

d63 1
a63 1
LDADD+= -ltermcap
d90 1
a90 1
	@@for i in ${.ALLSRC} ; do \
d106 4
a109 1
	    *) sed <$$filename >>init.c-tmp -n \
@


1.13.2.6
log
@YAMFC

delete kcorelow.c since it didn't produce any code and broke init.c

remove kcorelow.c from XSRCS in the Makefile
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.13.2.5 1997/05/01 16:34:46 pst Exp $
d18 1
a18 1
	infrun.c inftarg.c language.c \
@


1.13.2.7
log
@MFC: parallelize
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.13.2.6 1997/05/02 11:26:03 gj Exp $
d42 1
a42 2
#beforedepend:	c-exp.c f-exp.c m2-exp.c init.c
.ORDER:	c-exp.c f-exp.c m2-exp.c
@


1.13.2.8
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.12
log
@``mv'' -> ``mv -f''
``rm'' -> ``rm -f''
so mv/rm may not ask for confirmation if you are not root
@
text
@d1 1
a1 1
#	$Id: $
d53 3
a55 3
.if exists(${.CURDIR}/../libiberty/obj)
LDADD+=   -L${.CURDIR}/../libiberty/obj -liberty
DPADD+=   ${.CURDIR}/../libiberty/obj/libiberty.a
d61 3
a63 3
.if exists(${.CURDIR}/../bfd/obj)
LDADD+=   -L${.CURDIR}/../bfd/obj -lbfd
DPADD+=   ${.CURDIR}/../bfd/obj/libbfd.a
d69 3
a71 3
.if exists(${.CURDIR}/../mmalloc/obj)
LDADD+=   -L${.CURDIR}/../mmalloc/obj -lmmalloc
DPADD+=   ${.CURDIR}/../mmalloc/obj/libmmalloc.a
@


1.11
log
@Because -lcompat defines the same symbols as -lgnuregex and the weakness
of the linker to enforce linking of modules in command line order it is
not possible to link gdb shared with -lcompat.

*HACK ALERT*
Removed -lcompat from LDADD and bring in the necessary functions out of
libcompat as a source module until the linker can be fixed.
@
text
@d1 2
d29 2
a30 2
	rm y.tab.c
	mv c-exp.new ./c-exp.tab.c
d37 2
a38 2
	rm y.tab.c
	mv ch-exp.new ./ch-exp.tab.c
d45 2
a46 2
	rm y.tab.c
	mv m2-exp.new ./m2-exp.tab.c
@


1.11.4.1
log
@Merge from HEAD, except:

	Clients that used gnumalloc still do, despite the merge.  We're not
	bringing phkmalloc over.

	Thread stuff left out.

	PCCARD support left out.
@
text
@a0 2
#	$Id$

d27 2
a28 2
	rm -f y.tab.c
	mv -f c-exp.new ./c-exp.tab.c
d35 2
a36 2
	rm -f y.tab.c
	mv -f ch-exp.new ./ch-exp.tab.c
d43 2
a44 2
	rm -f y.tab.c
	mv -f m2-exp.new ./m2-exp.tab.c
@


1.11.4.2
log
@This 3rd mega-commit should hopefully bring us back to where we were.
I can get it to `make world' succesfully, anyway!
@
text
@d1 2
d29 2
a30 2
	rm y.tab.c
	mv c-exp.new ./c-exp.tab.c
d37 2
a38 2
	rm y.tab.c
	mv ch-exp.new ./ch-exp.tab.c
d45 2
a46 2
	rm y.tab.c
	mv m2-exp.new ./m2-exp.tab.c
@


1.10
log
@Remove regex code, use -lgnuregex instead
@
text
@d20 1
a20 1
	c-exp.tab.c ch-exp.tab.c m2-exp.tab.c
a73 3

LDADD+=   -lcompat
DPADD+=   ${LIBCOMPAT}
@


1.9
log
@Hurrah!  Let the champagne flow, the olive oil barrel be opened and
the wild, slippery orgy commence!

Gary Jennejohn, too studly for his own good, has finally come through with
the new, improved gdb 4.13.  This gdb features:

o	kgdb support - if this works (and I urge folks to test it), we can
	finally purge the old and hateful version of kgdb from our source
	tree.

o	attach/detach support.  See comments in README.FreeBSD for more
	details.

o	Well, it's newer.  Our previous version was 4.11.

Comments and flames to gj, of course! :-)

Thanks, Gary.  Much appreciated.  The previous state of gdb/kgdb has been a
thorn in all of our sides for some time..
Submitted by:	gj
@
text
@d15 1
a15 1
	printcmd.c regex.c remote.c remote-utils.c solib.c source.c \
d48 2
a49 2
DPADD+= ${LIBREADLINE} ${LIBTERMCAP}
LDADD+= -lreadline  -ltermcap
@


1.8
log
@Add the automatically generated files: y.tab.h c-exp.tab.c ch-exp.tab.c and
m2-exp.tab.c to the CLEANFILES target.
@
text
@d4 17
a20 13
SRCS = main.c blockframe.c breakpoint.c findvar.c stack.c thread.c \
       source.c values.c eval.c valops.c valarith.c valprint.c printcmd.c \
       symtab.c symfile.c symmisc.c infcmd.c infrun.c command.c utils.c \
       expprint.c environ.c gdbtypes.c copying.c i386-tdep.c i386-pinsn.c \
       freebsd-solib.c ser-unix.c exec.c fork-child.c infptrace.c inftarg.c \
       corelow.c coredep.c freebsd-nat.c remote.c dcache.c remote-utils.c \
       mem-break.c target.c putenv.c parse.c language.c buildsym.c \
       objfiles.c minsyms.c maint.c demangle.c dbxread.c coffread.c \
       elfread.c dwarfread.c mipsread.c stabsread.c core.c c-lang.c \
       ch-lang.c m2-lang.c complaints.c typeprint.c c-typeprint.c \
       ch-typeprint.c m2-typeprint.c c-valprint.c cp-valprint.c ch-valprint.c \
       m2-valprint.c nlmread.c serial.c inflow.c regex.c init.c \
       c-exp.tab.c ch-exp.tab.c m2-exp.tab.c version.c i386-dis.c dis-buf.c
a44 1

@


1.7
log
@Add dependency for -lcompat.
@
text
@d3 1
@


1.6
log
@Added ${DESTDIR} in the line
CFLAGS+= -I$(.CURDIR)/. -I${DESTDIR}/usr/include/readline -I$(.CURDIR)/../bfd
@
text
@d71 3
a73 1
LDADD+=	-lcompat
@


1.5
log
@Change all references to LIBTERM and -ltermlib to LIBTERMCAP and -ltermcap
@
text
@d43 1
a43 1
CFLAGS+= -I$(.CURDIR)/. -I/usr/include/readline -I$(.CURDIR)/../bfd
@


1.4
log
@Need -lcompat to link under 2.0.
@
text
@d44 1
a44 1
DPADD+= $(LIBREADLINE) $(LIBTERM)
@


1.3
log
@Add LIBREADLINE and LIBTERM to DPADD
@
text
@d71 1
a71 1

@


1.2
log
@Moved -DTRAD_CORE from gdb/Makefile to bfd/Makefile
@
text
@d44 1
@


1.1
log
@GDB-4.12 from ports with support for shlibs but not the kernel.

This is a greatly pared down version of the full gdb-4.12, all the
config stuff has been removed and the supporting libraries have
been stripped to a minimum. This is a 1.1.5 only port, I'll do a
more complete port for 2.0 which will have all the config stuff
and will install the gnu support libraries as system libraries like
we do for readline.

There wasn't much point for 1.1.5 since only gdb would use them so I
went for saving space instead. For 2.0 I'll config all the
other gnu tools to use them as well.
@
text
@a43 1
CFLAGS+= -DTRAD_CORE
@
