head	1.85;
access;
symbols
	RELENG_8_4:1.85.0.2
	RELENG_8_3_0_RELEASE:1.82.22.1.8.1
	RELENG_8_3:1.82.22.1.0.8
	RELENG_8_3_BP:1.82.22.1
	RELENG_7_4_0_RELEASE:1.82.26.1
	RELENG_8_2_0_RELEASE:1.82.22.1.6.1
	RELENG_7_4:1.82.0.26
	RELENG_7_4_BP:1.82
	RELENG_8_2:1.82.22.1.0.6
	RELENG_8_2_BP:1.82.22.1
	RELENG_8_1_0_RELEASE:1.82.22.1.4.1
	RELENG_8_1:1.82.22.1.0.4
	RELENG_8_1_BP:1.82.22.1
	RELENG_7_3_0_RELEASE:1.82.24.1
	RELENG_7_3:1.82.0.24
	RELENG_7_3_BP:1.82
	RELENG_8_0_0_RELEASE:1.82.22.1.2.1
	RELENG_8_0:1.82.22.1.0.2
	RELENG_8_0_BP:1.82.22.1
	RELENG_8:1.82.0.22
	RELENG_8_BP:1.82
	RELENG_7_2_0_RELEASE:1.82.20.1
	RELENG_7_2:1.82.0.20
	RELENG_7_2_BP:1.82
	RELENG_7_1_0_RELEASE:1.82.18.1
	RELENG_6_4_0_RELEASE:1.82.16.1
	RELENG_7_1:1.82.0.18
	RELENG_7_1_BP:1.82
	RELENG_6_4:1.82.0.16
	RELENG_6_4_BP:1.82
	RELENG_7_0_0_RELEASE:1.82
	RELENG_6_3_0_RELEASE:1.82
	RELENG_7_0:1.82.0.14
	RELENG_7_0_BP:1.82
	RELENG_6_3:1.82.0.12
	RELENG_6_3_BP:1.82
	RELENG_7:1.82.0.10
	RELENG_7_BP:1.82
	RELENG_6_2_0_RELEASE:1.82
	RELENG_6_2:1.82.0.8
	RELENG_6_2_BP:1.82
	RELENG_5_5_0_RELEASE:1.81.2.1
	RELENG_5_5:1.81.2.1.0.6
	RELENG_5_5_BP:1.81.2.1
	RELENG_6_1_0_RELEASE:1.82
	RELENG_6_1:1.82.0.6
	RELENG_6_1_BP:1.82
	RELENG_6_0_0_RELEASE:1.82
	RELENG_6_0:1.82.0.4
	RELENG_6_0_BP:1.82
	RELENG_6:1.82.0.2
	RELENG_6_BP:1.82
	RELENG_5_4_0_RELEASE:1.81.2.1
	RELENG_5_4:1.81.2.1.0.4
	RELENG_5_4_BP:1.81.2.1
	RELENG_4_11_0_RELEASE:1.43.2.4
	RELENG_4_11:1.43.2.4.0.10
	RELENG_4_11_BP:1.43.2.4
	RELENG_5_3_0_RELEASE:1.81.2.1
	RELENG_5_3:1.81.2.1.0.2
	RELENG_5_3_BP:1.81.2.1
	RELENG_5:1.81.0.2
	RELENG_5_BP:1.81
	BEFORE_UN_JBING:1.81
	BEFORE_BU_2_15:1.80
	RELENG_4_10_0_RELEASE:1.43.2.4
	RELENG_4_10:1.43.2.4.0.8
	RELENG_4_10_BP:1.43.2.4
	RELENG_5_2_1_RELEASE:1.68.2.1
	RELENG_5_2_0_RELEASE:1.68.2.1
	RELENG_5_2:1.68.0.2
	RELENG_5_2_BP:1.68
	RELENG_4_9_0_RELEASE:1.43.2.4
	RELENG_4_9:1.43.2.4.0.6
	RELENG_4_9_BP:1.43.2.4
	RELENG_5_1_0_RELEASE:1.65
	RELENG_5_1:1.65.0.2
	RELENG_5_1_BP:1.65
	RELENG_4_8_0_RELEASE:1.43.2.4
	RELENG_4_8:1.43.2.4.0.4
	RELENG_4_8_BP:1.43.2.4
	RELENG_5_0_0_RELEASE:1.62
	RELENG_5_0:1.62.0.2
	RELENG_5_0_BP:1.62
	RELENG_4_7_0_RELEASE:1.43.2.4
	RELENG_4_7:1.43.2.4.0.2
	RELENG_4_7_BP:1.43.2.4
	BEFORE_BU_2121__RELENG4:1.43.2.4
	RELENG_4_6_2_RELEASE:1.43.2.2
	RELENG_4_6_1_RELEASE:1.43.2.2
	RELENG_4_6_0_RELEASE:1.43.2.2
	RELENG_4_6:1.43.2.2.0.8
	RELENG_4_6_BP:1.43.2.2
	BEFORE_BU_2_12:1.50
	RELENG_4_5_0_RELEASE:1.43.2.2
	BEFORE_BU_2112_snap:1.50
	RELENG_4_5:1.43.2.2.0.6
	RELENG_4_5_BP:1.43.2.2
	RELENG_4_4_0_RELEASE:1.43.2.2
	RELENG_4_4:1.43.2.2.0.4
	RELENG_4_4_BP:1.43.2.2
	BEFORE_BU_2112__RELENG4:1.43.2.2
	BEFORE_BU_2110:1.50
	RELENG_4_3_0_RELEASE:1.43.2.2
	RELENG_4_3:1.43.2.2.0.2
	RELENG_4_3_BP:1.43.2.2
	RELENG_4_2_0_RELEASE:1.43.2.2
	binutils_2_10_0:1.50
	RELENG_4_1_1_RELEASE:1.43.2.2
	PRE_SMPNG:1.50
	RELENG_4_1_0_RELEASE:1.43.2.2
	RELENG_3_5_0_RELEASE:1.41.2.2
	BEFORE_2_9_1_UPGRADE:1.46
	RELENG_4_0_0_RELEASE:1.43
	RELENG_4:1.43.0.2
	RELENG_4_BP:1.43
	RELENG_3_4_0_RELEASE:1.41.2.2
	RELENG_3_3_0_RELEASE:1.41.2.2
	RELENG_3_2_PAO:1.41.2.1.0.2
	RELENG_3_2_PAO_BP:1.41.2.1
	RELENG_3_2_0_RELEASE:1.41.2.1
	RELENG_3:1.41.0.2
	oldALPHA_1_1_5:1.3
	oldFINAL_1_1_5:1.3
	oldMOVED_NEWCVS:1.3
	oldALPHA_2_0:1.7.0.2
	oldBETA_2_0:1.7
	oldRELEASE_2_0:1.7
	oldRELENG_2_0_5_ALPHA:1.11
	oldRELENG_2_0_5_BP:1.11
	oldRELENG_2_0_5:1.11.0.2
	oldRELENG_2_0_5_RELEASE:1.11
	oldRELENG_2_1_0_BP:1.11
	oldRELENG_2_1_0:1.11.0.4
	oldRELENG_2_1_0_RELEASE:1.11
	oldRELENG_2_1_5_RELEASE:1.11.4.2
	oldRELENG_2_2_BP:1.13
	oldRELENG_2_2:1.13.0.2
	oldRELENG_2_1_6_RELEASE:1.11.4.2
	oldRELENG_2_1_6_1_RELEASE:1.11.4.2
	oldRELENG_2_1_7_RELEASE:1.11.4.2
	oldRELENG_2_2_0_RELEASE:1.13.2.1
	oldRELENG_2_2_1_RELEASE:1.13.2.1
	oldRELENG_2_2_2_RELEASE:1.13.2.6
	oldRELENG_2_2_5_RELEASE:1.13.2.6
	oldRELENG_2_2_6_RELEASE:1.13.2.7
	oldRELENG_2_2_7_RELEASE:1.13.2.7
	oldRELENG_3_0_0_RELEASE:1.38
	oldRELENG_2_2_8_RELEASE:1.13.2.7
	oldRELENG_3_BP:1.38
	oldRELENG_3:1.38.0.2
	oldRELENG_3_1_0_RELEASE:1.38;
locks; strict;
comment	@# @;


1.85
date	2010.11.11.23.45.19;	author dim;	state dead;
branches
	1.85.2.1;
next	1.84;

1.84
date	2010.08.23.22.24.11;	author imp;	state Exp;
branches;
next	1.83;

1.83
date	2010.07.10.02.29.22;	author nwhitehorn;	state Exp;
branches;
next	1.82;

1.82
date	2004.12.21.09.59.40;	author ru;	state Exp;
branches
	1.82.2.1
	1.82.10.1
	1.82.16.1
	1.82.18.1
	1.82.20.1
	1.82.22.1
	1.82.24.1
	1.82.26.1;
next	1.81;

1.81
date	2004.06.16.07.09.37;	author obrien;	state Exp;
branches
	1.81.2.1;
next	1.80;

1.80
date	2004.06.11.16.09.38;	author obrien;	state Exp;
branches;
next	1.79;

1.79
date	2004.03.17.07.40.42;	author obrien;	state Exp;
branches;
next	1.78;

1.78
date	2004.03.05.16.12.31;	author ache;	state Exp;
branches;
next	1.77;

1.77
date	2004.03.05.01.47.03;	author ache;	state Exp;
branches;
next	1.76;

1.76
date	2004.02.24.19.23.29;	author johan;	state Exp;
branches;
next	1.75;

1.75
date	2004.02.17.05.38.44;	author ache;	state Exp;
branches;
next	1.74;

1.74
date	2004.02.17.00.06.33;	author ache;	state Exp;
branches;
next	1.73;

1.73
date	2004.02.16.23.46.39;	author ache;	state Exp;
branches;
next	1.72;

1.72
date	2004.01.27.05.01.08;	author obrien;	state Exp;
branches;
next	1.71;

1.71
date	2004.01.26.19.40.47;	author obrien;	state Exp;
branches;
next	1.70;

1.70
date	2004.01.26.09.18.47;	author obrien;	state Exp;
branches;
next	1.69;

1.69
date	2004.01.26.06.10.26;	author obrien;	state Exp;
branches;
next	1.68;

1.68
date	2003.09.07.20.38.23;	author obrien;	state Exp;
branches
	1.68.2.1;
next	1.67;

1.67
date	2003.09.07.20.21.14;	author obrien;	state Exp;
branches;
next	1.66;

1.66
date	2003.09.07.20.19.32;	author obrien;	state Exp;
branches;
next	1.65;

1.65
date	2003.03.21.00.30.53;	author iedowse;	state Exp;
branches;
next	1.64;

1.64
date	2003.01.04.17.51.59;	author obrien;	state Exp;
branches;
next	1.63;

1.63
date	2003.01.04.17.51.48;	author obrien;	state Exp;
branches;
next	1.62;

1.62
date	2002.10.12.21.23.53;	author mp;	state Exp;
branches;
next	1.61;

1.61
date	2002.06.29.03.16.10;	author obrien;	state Exp;
branches;
next	1.60;

1.60
date	2002.06.29.01.16.00;	author obrien;	state Exp;
branches;
next	1.59;

1.59
date	2002.06.22.17.07.45;	author obrien;	state Exp;
branches;
next	1.58;

1.58
date	2002.06.21.19.05.20;	author obrien;	state Exp;
branches;
next	1.57;

1.57
date	2002.06.21.18.51.53;	author peter;	state Exp;
branches;
next	1.56;

1.56
date	2002.05.19.18.25.41;	author obrien;	state Exp;
branches;
next	1.55;

1.55
date	2002.05.18.04.59.57;	author obrien;	state Exp;
branches;
next	1.54;

1.54
date	2002.03.23.17.15.49;	author obrien;	state Exp;
branches;
next	1.53;

1.53
date	2002.03.23.04.52.02;	author obrien;	state Exp;
branches;
next	1.52;

1.52
date	2002.03.16.19.33.23;	author obrien;	state Exp;
branches;
next	1.51;

1.51
date	2002.03.13.05.14.30;	author obrien;	state Exp;
branches;
next	1.50;

1.50
date	2000.11.25.13.59.49;	author obrien;	state Exp;
branches;
next	1.48;

1.48
date	2000.05.22.08.09.40;	author obrien;	state Exp;
branches;
next	1.47;

1.47
date	2000.05.17.19.30.59;	author obrien;	state Exp;
branches;
next	1.46;

1.46
date	2000.04.29.09.03.46;	author dfr;	state Exp;
branches;
next	1.45;

1.45
date	2000.04.04.11.12.55;	author gj;	state Exp;
branches;
next	1.44;

1.44
date	2000.03.27.18.01.51;	author bde;	state Exp;
branches;
next	1.43;

1.43
date	99.08.27.23.34.48;	author peter;	state Exp;
branches
	1.43.2.1;
next	1.42;

1.42
date	99.05.11.08.07.51;	author bde;	state Exp;
branches;
next	1.41;

1.41
date	99.05.07.19.53.05;	author dfr;	state Exp;
branches
	1.41.2.1;
next	1.40;

1.40
date	99.05.02.11.31.54;	author dfr;	state Exp;
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;
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.85.2.1
date	2010.11.11.23.45.19;	author svnexp;	state dead;
branches;
next	1.85.2.2;

1.85.2.2
date	2013.03.28.13.02.48;	author svnexp;	state Exp;
branches;
next	;

1.82.2.1
date	2012.11.17.07.39.15;	author svnexp;	state Exp;
branches;
next	;

1.82.10.1
date	2012.11.17.08.01.28;	author svnexp;	state Exp;
branches;
next	;

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

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

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

1.82.22.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.82.22.1.2.1
	1.82.22.1.4.1
	1.82.22.1.6.1
	1.82.22.1.8.1;
next	1.82.22.2;

1.82.22.2
date	2012.11.17.10.35.58;	author svnexp;	state Exp;
branches;
next	;

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

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

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

1.82.22.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.82.22.1.8.2;

1.82.22.1.8.2
date	2012.11.17.08.24.39;	author svnexp;	state Exp;
branches;
next	;

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

1.82.26.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.82.26.2;

1.82.26.2
date	2012.11.17.08.16.38;	author svnexp;	state Exp;
branches;
next	;

1.81.2.1
date	2004.08.23.07.13.51;	author obrien;	state Exp;
branches;
next	;

1.68.2.1
date	2003.12.07.04.02.46;	author scottl;	state Exp;
branches;
next	;

1.43.2.1
date	2000.05.17.19.31.38;	author obrien;	state Exp;
branches;
next	1.43.2.2;

1.43.2.2
date	2000.07.06.22.12.46;	author obrien;	state Exp;
branches;
next	1.43.2.3;

1.43.2.3
date	2002.06.21.20.15.42;	author obrien;	state Exp;
branches;
next	1.43.2.4;

1.43.2.4
date	2002.06.25.05.04.46;	author obrien;	state Exp;
branches;
next	1.43.2.5;

1.43.2.5
date	2012.11.17.07.23.00;	author svnexp;	state Exp;
branches;
next	;

1.41.2.1
date	99.05.08.08.58.19;	author dfr;	state Exp;
branches;
next	1.41.2.2;

1.41.2.2
date	99.08.29.14.32.00;	author peter;	state Exp;
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.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.85
log
@SVN rev 215151 on 2010-11-11 23:45:19Z by dim

Garbage collect gnu/usr.bin/binutils/{gasp,gdb,gdbreplay}, as these have
not been connected to the build for more than 6 years.

Obtained from:	projects/binutils-2.17
@
text
@# ex:ts=8
# $FreeBSD: src/gnu/usr.bin/binutils/gdb/Makefile,v 1.84 2010/08/23 22:24:11 imp Exp $

.include "../Makefile.inc0"

GDBDIR= ${.CURDIR}/../../../../contrib/gdb
.PATH: ${GDBDIR}/gdb ${GDBDIR}/gdb/cli ${GDBDIR}/gdb/mi
.PATH: ${SRCDIR}/opcodes ${SRCDIR}/binutils

#	For FSF GDB files, use their CPU (arch) name; for our files use ours.
GDB_CPU=${TARGET_CPUARCH:C/amd64/i386/:C/powerpc.*/rs6000/:C/sparc64/sparc/}
NO_SHARED?=yes
PROG=	gdb
XSRCS=	annotate.c arch-utils.c ax-general.c ax-gdb.c bcache.c		\
	blockframe.c breakpoint.c buildsym.c complaints.c completer.c	\
	copying.c corefile.c corelow.c dcache.c doublest.c event-loop.c	\
	event-top.c environ.c eval.c exec.c expprint.c fork-child.c	\
	frame.c gdb-events.c gdbarch.c gdbtypes.c infcmd.c inflow.c	\
	infptrace.c inf-loop.c infrun.c inftarg.c language.c linespec.c	\
	main.c maint.c mdebugread.c mem-break.c memattr.c minsyms.c	\
	objfiles.c parse.c printcmd.c regcache.c remote.c		\
	remote-utils.c signals.c source.c stabsread.c stack.c symfile.c	\
	symmisc.c symtab.c target.c thread.c top.c tracepoint.c		\
	typeprint.c ui-file.c ui-out.c utils.c valarith.c valops.c	\
	varobj.c valprint.c values.c wrapper.c				\
	cli-cmds.c cli-cmds.h cli-decode.c cli-decode.h	cli-out.c	\
	cli-script.c cli-script.h cli-setshow.c cli-setshow.h		\
	cli-utils.c cli-utils.h						\
	mi-cmd-break.c mi-cmd-disas.c mi-cmd-stack.c mi-cmd-var.c	\
	mi-cmds.c mi-console.c mi-getopt.c mi-main.c mi-out.c mi-parse.c\
	serial.c ser-unix.c ser-tcp.c					\
	c-exp.y c-lang.c c-typeprint.c c-valprint.c			\
	ch-exp.c ch-lang.c ch-typeprint.c ch-valprint.c			\
	cp-abi.c gnu-v2-abi.c gnu-v3-abi.c cp-valprint.c demangle.c	\
	f-exp.y f-lang.c f-typeprint.c f-valprint.c findvar.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			\
	scm-exp.c scm-lang.c scm-valprint.c				\
	coffread.c dbxread.c dwarfread.c dwarf2read.c elfread.c		\
	solib.c solib-svr4.c solib-legacy.c
XSRCS+=	freebsd-uthread.c kvm-fbsd.c kvm-fbsd-machine.h solib-fbsd-kld.c
SRCS=	init.c ${XSRCS} nm.h tm.h xm.h gdbversion.c xregex.h

.include "${.CURDIR}/Makefile.${TARGET_ARCH}"

WARNS?=	0
.if ${TARGET_ARCH} != ${MACHINE_ARCH}
CFLAGS+=	-DCROSS_COMPILE=1
.endif
CFLAGS+=	-DDEFAULT_BFD_ARCH=bfd_${GDB_CPU}_arch
CFLAGS+=	-I${.CURDIR}/${TARGET_CPUARCH}
CFLAGS+=	-I${SRCDIR}/binutils -I${SRCDIR}/bfd
CFLAGS+=	-I${GDBDIR}/gdb -I${GDBDIR}/gdb/config
CFLAGS+=        -I$(.CURDIR)

YFLAGS=

DPADD=		${LIBKVM} ${LIBM}
DPADD+=		${RELTOP}/libbfd/libbfd.a ${RELTOP}/libopcodes/libopcodes.a
DPADD+=		${LIBGNUREGEX}
DPADD+=		${RELTOP}/libiberty/libiberty.a
DPADD+=		${LIBREADLINE} ${LIBTERMCAP}
LDADD=		-lkvm -lm
LDADD+=		${RELTOP}/libbfd/libbfd.a ${RELTOP}/libopcodes/libopcodes.a
LDADD+=		-lgnuregex
LDADD+=		${RELTOP}/libiberty/libiberty.a
LDADD+=		-lreadline -ltermcap

CLEANFILES=	init.c init.c-tmp nm.h tm.h xm.h gdbversion.c xregex.h kvm-fbsd-machine.h

# 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 '#include "defs.h"'		>>init.c-tmp
	@@echo '#include "call-cmds.h"'		>>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

tm.h:
	echo '#include "${GDB_CPU}/tm-fbsd.h"'		> ${.TARGET}
.if exists(${.CURDIR}/fbsd-kgdb-${TARGET_CPUARCH}.h)
	echo '#include "fbsd-kgdb-${TARGET_CPUARCH}.h"'	>> ${.TARGET}
.endif

.for H in nm-fbsd xm-${GDB_CPU}
${H:C/-.*$//}.h:
	ln -sf ${GDBDIR}/gdb/config/${GDB_CPU}/${H}.h ${.TARGET}
.endfor

kvm-fbsd-machine.h:
	ln -sf ${.CURDIR}/kvm-fbsd-${TARGET_CPUARCH}.h ${.TARGET}

GDB_VERSION=	"5.2.1 (FreeBSD)"
gdbversion.c: Makefile
	@@echo '#include "version.h"'				> ${.TARGET}
	@@echo 'const char version[] = ${GDB_VERSION};'		>>${.TARGET}
	@@echo 'const char host_name[] = "${MACHINE_ARCH}-undermydesk-freebsd";'			>>${.TARGET}
	@@echo 'const char target_name[] = "${TARGET_ARCH}-undermydesk-freebsd";'		>>${.TARGET}

xregex.h:
	@@echo '#include <gnu/regex.h>' >${.TARGET}

.include <bsd.prog.mk>
@


1.85.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:02:48 +0000
@
text
@d1 139
@


1.85.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 146
# ex:ts=8
# $FreeBSD: releng/8.4/gnu/usr.bin/binutils/gdb/Makefile 139112 2004-12-21 09:59:45Z ru $

.include "../Makefile.inc0"

GDBDIR= ${.CURDIR}/../../../../contrib/gdb
.PATH: ${GDBDIR}/gdb ${GDBDIR}/gdb/cli ${GDBDIR}/gdb/mi
.PATH: ${SRCDIR}/opcodes ${SRCDIR}/binutils

#	For FSF GDB files, use their CPU (arch) name; for our files use ours.
.if ${TARGET_ARCH} == "sparc64"
GDB_CPU=	sparc
.elif ${TARGET_ARCH} == "amd64"
GDB_CPU=	i386
.else
GDB_CPU=	${TARGET_ARCH}
.endif

NO_SHARED?=yes
PROG=	gdb
XSRCS=	annotate.c arch-utils.c ax-general.c ax-gdb.c bcache.c		\
	blockframe.c breakpoint.c buildsym.c complaints.c completer.c	\
	copying.c corefile.c corelow.c dcache.c doublest.c event-loop.c	\
	event-top.c environ.c eval.c exec.c expprint.c fork-child.c	\
	frame.c gdb-events.c gdbarch.c gdbtypes.c infcmd.c inflow.c	\
	infptrace.c inf-loop.c infrun.c inftarg.c language.c linespec.c	\
	main.c maint.c mdebugread.c mem-break.c memattr.c minsyms.c	\
	objfiles.c parse.c printcmd.c regcache.c remote.c		\
	remote-utils.c signals.c source.c stabsread.c stack.c symfile.c	\
	symmisc.c symtab.c target.c thread.c top.c tracepoint.c		\
	typeprint.c ui-file.c ui-out.c utils.c valarith.c valops.c	\
	varobj.c valprint.c values.c wrapper.c				\
	cli-cmds.c cli-cmds.h cli-decode.c cli-decode.h	cli-out.c	\
	cli-script.c cli-script.h cli-setshow.c cli-setshow.h		\
	cli-utils.c cli-utils.h						\
	mi-cmd-break.c mi-cmd-disas.c mi-cmd-stack.c mi-cmd-var.c	\
	mi-cmds.c mi-console.c mi-getopt.c mi-main.c mi-out.c mi-parse.c\
	serial.c ser-unix.c ser-tcp.c					\
	c-exp.y c-lang.c c-typeprint.c c-valprint.c			\
	ch-exp.c ch-lang.c ch-typeprint.c ch-valprint.c			\
	cp-abi.c gnu-v2-abi.c gnu-v3-abi.c cp-valprint.c demangle.c	\
	f-exp.y f-lang.c f-typeprint.c f-valprint.c findvar.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			\
	scm-exp.c scm-lang.c scm-valprint.c				\
	coffread.c dbxread.c dwarfread.c dwarf2read.c elfread.c		\
	solib.c solib-svr4.c solib-legacy.c
XSRCS+=	freebsd-uthread.c kvm-fbsd.c kvm-fbsd-machine.h solib-fbsd-kld.c
SRCS=	init.c ${XSRCS} nm.h tm.h xm.h gdbversion.c xregex.h

.include "${.CURDIR}/Makefile.${TARGET_ARCH}"

WARNS?=	0
.if ${TARGET_ARCH} != ${MACHINE_ARCH}
CFLAGS+=	-DCROSS_COMPILE=1
.endif
CFLAGS+=	-DDEFAULT_BFD_ARCH=bfd_${GDB_CPU}_arch
CFLAGS+=	-I${.CURDIR}/${TARGET_ARCH}
CFLAGS+=	-I${SRCDIR}/binutils -I${SRCDIR}/bfd
CFLAGS+=	-I${GDBDIR}/gdb -I${GDBDIR}/gdb/config
CFLAGS+=        -I$(.CURDIR)

YFLAGS=

DPADD=		${LIBKVM} ${LIBM}
DPADD+=		${RELTOP}/libbfd/libbfd.a ${RELTOP}/libopcodes/libopcodes.a
DPADD+=		${LIBGNUREGEX}
DPADD+=		${RELTOP}/libiberty/libiberty.a
DPADD+=		${LIBREADLINE} ${LIBTERMCAP}
LDADD=		-lkvm -lm
LDADD+=		${RELTOP}/libbfd/libbfd.a ${RELTOP}/libopcodes/libopcodes.a
LDADD+=		-lgnuregex
LDADD+=		${RELTOP}/libiberty/libiberty.a
LDADD+=		-lreadline -ltermcap

CLEANFILES=	init.c init.c-tmp nm.h tm.h xm.h gdbversion.c xregex.h kvm-fbsd-machine.h

# 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 '#include "defs.h"'		>>init.c-tmp
	@@echo '#include "call-cmds.h"'		>>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

tm.h:
	echo '#include "${GDB_CPU}/tm-fbsd.h"'		> ${.TARGET}
.if exists(${.CURDIR}/fbsd-kgdb-${TARGET_ARCH}.h)
	echo '#include "fbsd-kgdb-${TARGET_ARCH}.h"'	>> ${.TARGET}
.endif

.for H in nm-fbsd xm-${GDB_CPU}
${H:C/-.*$//}.h:
	ln -sf ${GDBDIR}/gdb/config/${GDB_CPU}/${H}.h ${.TARGET}
.endfor

kvm-fbsd-machine.h:
	ln -sf ${.CURDIR}/kvm-fbsd-${TARGET_ARCH}.h ${.TARGET}

GDB_VERSION=	"5.2.1 (FreeBSD)"
gdbversion.c: Makefile
	@@echo '#include "version.h"'				> ${.TARGET}
	@@echo 'const char version[] = ${GDB_VERSION};'		>>${.TARGET}
	@@echo 'const char host_name[] = "${MACHINE_ARCH}-undermydesk-freebsd";'			>>${.TARGET}
	@@echo 'const char target_name[] = "${TARGET_ARCH}-undermydesk-freebsd";'		>>${.TARGET}

xregex.h:
	@@echo '#include <gnu/regex.h>' >${.TARGET}

.include <bsd.prog.mk>
@


1.84
log
@SVN rev 211725 on 2010-08-23 22:24:11Z by imp

MFtbemd:

Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want
to test of all the CPUs of a given family conform.
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.83
log
@SVN rev 209867 on 2010-07-10 02:29:22Z by nwhitehorn

Teach our toolchain how to generate 64-bit PowerPC binaries. This fixes
a variety of bugs in binutils related to handling of 64-bit PPC ELF,
provides a GCC configuration for 64-bit PowerPC on FreeBSD, and
associated build systems tweaks.

Obtained from:	projects/ppc64
@
text
@d11 1
a11 10
.if ${TARGET_ARCH} == "sparc64"
GDB_CPU=	sparc
.elif ${TARGET_ARCH} == "amd64"
GDB_CPU=	i386
.elif ${TARGET_ARCH} == "powerpc64"
GDB_CPU=        powerpc
.else
GDB_CPU=	${TARGET_ARCH}
.endif

d51 1
a51 1
CFLAGS+=	-I${.CURDIR}/${TARGET_ARCH}
d117 2
a118 2
.if exists(${.CURDIR}/fbsd-kgdb-${TARGET_ARCH}.h)
	echo '#include "fbsd-kgdb-${TARGET_ARCH}.h"'	>> ${.TARGET}
d127 1
a127 1
	ln -sf ${.CURDIR}/kvm-fbsd-${TARGET_ARCH}.h ${.TARGET}
@


1.82
log
@NOSHARED -> NO_SHARED
@
text
@d15 2
@


1.82.10.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/7/gnu/usr.bin/binutils/gdb/Makefile 139112 2004-12-21 09:59:45Z ru $
@


1.82.2.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/6/gnu/usr.bin/binutils/gdb/Makefile 139112 2004-12-21 09:59:45Z ru $
@


1.82.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.82.26.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/7.4/gnu/usr.bin/binutils/gdb/Makefile 139112 2004-12-21 09:59:45Z ru $
@


1.82.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.82.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.82.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
@d2 1
a2 1
# $FreeBSD: stable/8/gnu/usr.bin/binutils/gdb/Makefile 139112 2004-12-21 09:59:45Z ru $
@


1.82.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.82.22.1.8.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/8.3/gnu/usr.bin/binutils/gdb/Makefile 139112 2004-12-21 09:59:45Z ru $
@


1.82.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.82.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.82.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.82.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.82.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.82.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.81
log
@Updated Bmake framework for Binutils 2.15.
@
text
@d19 1
a19 1
NOSHARED?=yes
@


1.81.2.1
log
@Set vendor to a non-fun, but non-controversial one for the release.

Approved by:	re(kensmith)
@
text
@d140 2
a141 2
	@@echo 'const char host_name[] = "${MACHINE_ARCH}-fbsdproj-freebsd";'			>>${.TARGET}
	@@echo 'const char target_name[] = "${TARGET_ARCH}-fbsdproj-freebsd";'		>>${.TARGET}
@


1.80
log
@Sperate out the MD parts of kvm-fbsd to get rid of the #ifdef maze.
Also quiet some warnings by tweaking the included headers.
@
text
@d123 4
a126 1
	ln -sf ${.CURDIR}/fbsd-kgdb-${TARGET_ARCH}.h ${.TARGET}
@


1.79
log
@Avoid the whole -I${DESTDIR}/usr/include/gnu issue by including
<gnu/regex.h> vs. just <regex.h>.
@
text
@d48 1
a48 1
XSRCS+=	freebsd-uthread.c kvm-fbsd.c solib-fbsd-kld.c
d76 1
a76 1
CLEANFILES=	init.c init.c-tmp nm.h tm.h xm.h gdbversion.c xregex.h
d129 3
@


1.78
log
@Back out attempt to bypass contrib's getopt.h on the way,
it makes cross-build fail.
Prefer invisible incorrect -current build to visible failure.
@
text
@a60 1
CFLAGS+=	-I${DESTDIR}/usr/include/gnu
d138 1
a138 1
	@@echo '#include <regex.h>' >${.TARGET}
@


1.77
log
@Move -I${DESTDIR}/usr/include/gnu up, before
-I${DESTDIR}/usr/include to pick correct regex.h
@
text
@a3 3
# must be before -I${DESTDIR}/usr/include
CFLAGS+= -I${DESTDIR}/usr/include/gnu

d61 1
@


1.76
log
@style.Makefile(5):
	Use WARNS?= instead of WARNS=

For this to work properly for all part is the subdirectories
the WARNS assignments in Makefile.inc0 are moved to the correspondning
Makefile.inc.

Approved by:	obrien (binutils maintainer)
Tested by:	make universe
@
text
@d4 3
a63 1
CFLAGS+=	-I${DESTDIR}/usr/include/gnu
@


1.75
log
@Oops, use -I${DESTDIR}/usr/include/gnu instead of ... /../../include/gnu
@
text
@d53 1
a53 1
WARNS=	0
@


1.74
log
@Remove old explicit -I${DESTDIR}/usr/include/readline
it is no longer needed
@
text
@d61 1
a61 1
CFLAGS+=        -I${.CURDIR}/../../../../../include/gnu
@


1.73
log
@Switch back to regex.h
@
text
@d62 1
a62 1
CFLAGS+=	-I$(.CURDIR) -I${DESTDIR}/usr/include/readline
@


1.72
log
@Discontinuation of an action that now fits on one.
@
text
@d61 1
d139 1
a139 1
	@@echo '#include <gnuregex.h>' >${.TARGET}
@


1.71
log
@The problem Makefile rev 1.70 and fbsd-kgdb-i386.h rev 1.4 fixed is that
GDB was using the instruction pointer for 'calltrap', rather than the
infinitely more useful instruction pointer where the trap occurred.

Submitted by:	Peter Edwards <pmedwards@@eircom.net>
@
text
@d127 1
a127 3
	ln -sf \
	    ${GDBDIR}/gdb/config/${GDB_CPU}/${H}.h \
	    ${.TARGET}
@


1.70
log
@Fix problem where kgdb misses trap frames.

Reported by:	iedowse
@
text
@@


1.69
log
@style.Makefile(5)
@
text
@d10 1
d122 2
a123 3
nm.h:
	echo '#include "${GDB_CPU}/nm-fbsd.h"'	>${.TARGET}
	echo '#include "fbsd-kgdb.h"'		>>${.TARGET}
d125 1
a125 1
.for H in tm-fbsd xm-${GDB_CPU}
d128 1
a128 1
	    ${.CURDIR}/../../../../contrib/gdb/gdb/config/${GDB_CPU}/${H}.h \
d133 1
a133 1
gdbversion.c:
@


1.68
log
@Enable '--interpreter=mi' support.

Submitted by:	Rui Lopes <rui@@ruilopes.com>
@
text
@d1 1
d7 2
a8 2
.PATH:  ${GDBDIR}/gdb ${GDBDIR}/gdb/cli ${GDBDIR}/gdb/mi
.PATH:  ${SRCDIR}/opcodes ${SRCDIR}/binutils
@


1.68.2.1
log
@Switch to a label that is appropriate for the release.

Submitted by:	obrien
@
text
@d135 2
a136 2
	@@echo 'const char host_name[] = "${MACHINE_ARCH}-unknown-freebsd";'			>>${.TARGET}
	@@echo 'const char target_name[] = "${TARGET_ARCH}-unknown-freebsd";'		>>${.TARGET}
@


1.67
log
@s/x86-64/amd64/
@
text
@d30 1
a30 1
	valprint.c values.c wrapper.c					\
d34 2
@


1.66
log
@style.Makefile(5)
@
text
@d11 1
a11 1
.elif ${TARGET_ARCH} == "x86-64"
@


1.65
log
@Attempt to automatically read in kernel module symbols when a live
or dead kernel core is loaded into gdb. This extends gdb's existing
shared library support, so the "info sharedlibrary", "sharedlibrary"
and "nosharedlibrary" commands can be used to view and change the
list of loaded symbol files.

The current implementation is more than a kludge however, and it
will not always manage to find the .ko.debug file corresponding to
the loaded module. In particular, for modules whose build directory
cannot be easily guessed from the module name such as all the
netgraph modules, the debug version of the .ko will not be found
automatically.

The logic for finding the module file first attempts to guess at
the module build directory by parsing the version[] string. Then
using that directory ($DIR), it tries the following paths in turn:

	./<module>.ko.debug		./<module>.ko
	$DIR/<module>.ko.debug		$DIR/<module>.ko
	/boot/kernel/<module>.ko.debug	/boot/kernel/<module>.ko

Approved by:	obrien, mp
@
text
@d5 3
a7 1
.PATH: ${SRCDIR}/binutils
a46 1
.if exists(${.CURDIR}/Makefile.${TARGET_ARCH})
a47 1
.endif
d55 8
a62 8
CFLAGS+=	-I${SRCDIR}/binutils
CFLAGS+=	-I${SRCDIR}/bfd
CFLAGS+=	-I${GDBDIR}/gdb
CFLAGS+=	-I${GDBDIR}/gdb/config
DPADD=		${LIBKVM}
DPADD+=		${LIBM}
DPADD+=		${RELTOP}/libbfd/libbfd.a
DPADD+=		${RELTOP}/libopcodes/libopcodes.a
d65 3
a67 6
DPADD+=		${LIBREADLINE}
DPADD+=		${LIBTERMCAP}
LDADD=		-lkvm
LDADD+=		-lm
LDADD+=		${RELTOP}/libbfd/libbfd.a
LDADD+=		${RELTOP}/libopcodes/libopcodes.a
d70 1
a70 9
LDADD+=		-lreadline
LDADD+=		-ltermcap

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

CFLAGS+= -I$(.CURDIR) -I${DESTDIR}/usr/include/readline
YFLAGS=
d132 3
a134 3
	@@echo 'const char version[] = ${GDB_VERSION};'	>>${.TARGET}
	@@echo 'const char host_name[] = "${MACHINE_ARCH}-undermydesk-freebsd";'	>>${.TARGET}
	@@echo 'const char target_name[] = "${TARGET_ARCH}-undermydesk-freebsd";'	>>${.TARGET}
@


1.64
log
@Reformat.
@
text
@d42 1
a42 1
XSRCS+=	freebsd-uthread.c kvm-fbsd.c
@


1.63
log
@Add the ability to debug C++ programs using v2 and v3 of the G++ ABI.

Submitted by:	Peter Edwards <pmedwards@@eircom.net>
@
text
@d17 20
a36 9
XSRCS=	annotate.c ax-general.c ax-gdb.c bcache.c blockframe.c		\
	breakpoint.c buildsym.c c-exp.y c-lang.c c-typeprint.c		\
	c-valprint.c ch-exp.c ch-lang.c ch-typeprint.c ch-valprint.c	\
	coffread.c complaints.c copying.c \
	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 gdbarch.c gdbtypes.c \
	infcmd.c inflow.c infptrace.c infrun.c inftarg.c language.c	\
d38 4
a41 13
	m2-lang.c m2-exp.y m2-typeprint.c m2-valprint.c main.c maint.c	\
	mdebugread.c mem-break.c minsyms.c objfiles.c parse.c		\
	printcmd.c remote.c remote-utils.c scm-exp.c scm-lang.c		\
	scm-valprint.c solib.c source.c stabsread.c stack.c symfile.c	\
	symmisc.c symtab.c target.c thread.c top.c tracepoint.c \
	typeprint.c utils.c valarith.c valops.c valprint.c values.c	\
	serial.c ser-unix.c ser-tcp.c
XSRCS+=	arch-utils.c cp-abi.c gnu-v2-abi.c gnu-v3-abi.c completer.c doublest.c event-loop.c	\
	event-top.c frame.c gdb-events.c inf-loop.c linespec.c		\
	memattr.c regcache.c signals.c solib-svr4.c solib-legacy.c	\
	ui-file.c ui-out.c wrapper.c cli-out.c \
	cli-cmds.c cli-cmds.h cli-decode.c cli-decode.h	cli-script.c	\
	cli-script.h cli-setshow.c cli-setshow.h cli-utils.c cli-utils.h
@


1.62
log
@Remove dependency on version.in for version information.

Submitted by:	obrien
@
text
@d34 1
a34 1
XSRCS+=	arch-utils.c cp-abi.c completer.c doublest.c event-loop.c	\
@


1.61
log
@Allow to compile and at least startup on sparc64.
@
text
@d138 2
a139 1
gdbversion.c: version.in
d141 1
a141 1
	@@echo 'const char version[] = "'"`sed q ${.ALLSRC}`"'";'>>${.TARGET}
@


1.60
log
@Bmake bits for GDB 5.2.
@
text
@d7 8
d20 1
a20 1
	coffread.c complaints.c copying.c core-regset.c	\
d51 1
a51 1
CFLAGS+=	-DDEFAULT_BFD_ARCH=bfd_${TARGET_ARCH}_arch
d128 1
a128 1
	echo '#include "${TARGET_ARCH}/nm-fbsd.h"'	>${.TARGET}
d131 1
a131 1
.for H in tm-fbsd xm-${TARGET_ARCH}
d134 1
a134 1
	    ${.CURDIR}/../../../../contrib/gdb/gdb/config/${TARGET_ARCH}/${H}.h \
@


1.59
log
@When linking staticaly libtermcap is a postrequisite of libreadline.
Otherwise `tgoto' (only used by libreadline) isn't resolved.

Submitted by:	bde
@
text
@d12 1
a12 1
	coffread.c command.c complaints.c copying.c core-regset.c	\
d16 1
a16 1
	findvar%UAfix.c fork-child.c freebsd-uthread.c gdbarch.c gdbtypes.c \
d23 1
a23 1
	symmisc.c symtab.c target.c thread.c top.c tracepoint.c		\
d25 9
a33 3
	version.c serial.c ser-unix.c ser-tcp.c
SRCS=	init.c ${XSRCS}
SRCS+=	wait.h
d43 1
d49 3
a51 1
DPADD=		${RELTOP}/libbfd/libbfd.a
d57 2
d67 1
a67 1
.PATH:	${GDBDIR}/gdb
a69 2
CFLAGS+=	-DFREEBSD_ELF

d73 1
a73 2
CLEANFILES=	init.c init.c-tmp wait.h
CLEANFILES+=	findvar%UAfix.c
d91 2
d119 19
a137 2
wait.h:
	ln -sf ${.CURDIR}/../../../../sys/sys/wait.h ${.TARGET}
@


1.58
log
@We need to link with libiberty.a before libreadline.so.  Both supply
xmalloc() and xrealloc() and the mixed usage of xmalloc in some .c's from
libiberty.a and other .c's from libreadline.so produces an unusable binary
on the Alpha.

While I am here, preventatively move other libs in the link order.

Submitted by:	gallatin
@
text
@d7 1
a43 1
DPADD+=		${LIBTERMCAP}
d47 1
a49 1
LDADD+=		-ltermcap
d53 1
@


1.57
log
@Forced commit after RCS file surgery.
@
text
@d43 1
a43 1
DPADD+=		${LIBREADLINE}
d46 1
a46 1
DPADD+=		${LIBTERMCAP}
d49 1
a49 1
LDADD+=		-lreadline
d52 1
a52 1
LDADD+=		-ltermcap
@


1.56
log
@This is only WARNS=0 clean now.
@
text
@@


1.55
log
@Segregate MD weirdness a little bit more.  Improve cross buildability.
@
text
@d32 1
@


1.54
log
@GDB 4.18 does not use the mmalloc library by default.  So GC a little.
@
text
@a6 4
.if ${MACHINE_ARCH} == "i386"
CFLAGS+=	-Dprint_insn_i386=print_insn_i386_att
.endif

d28 2
a29 2
.if exists(${.CURDIR}/Makefile.${MACHINE_ARCH})
.include "${.CURDIR}/Makefile.${MACHINE_ARCH}"
d32 4
a35 3
WARNS=	0
#CFLAGS+=	-I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+=	-I${.CURDIR}/${MACHINE_ARCH}
@


1.53
log
@Fix setting of CLEANFILES.
@
text
@a62 4
# use phkmalloc
CFLAGS+= -DNO_MMALLOC
# uncomment the next line if you want to debug gdb
#CFLAGS+= -g
@


1.52
log
@Fix unaligned access in the GDB binary on Alpha.

Submitted by:	gallatin
@
text
@d70 1
a70 1
CLEANFILES=	findvar%UAfix.c
@


1.51
log
@Turn up WARNS as high as possible.

Tested by:	gcc31, gcc32, /usr/bin/cc
@
text
@d19 1
a19 1
	findvar.c fork-child.c freebsd-uthread.c gdbarch.c gdbtypes.c	\
d70 1
@


1.50
log
@Deal with a real PITA in that GDB 4.18 (as we imported it) requires a
`wait.h' that was in contrib/binutils/, however this wait.h went away with
bintuils 2.10.0 so I `cvs rm'ed it.  Now we find gdb will not build.  This
binutils wait.h contained nothing we didn't already have in <sys/wait.h>.
So just hack a symlink to it.
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/binutils/gdb/Makefile,v 1.48 2000/08/04 18:33:08 obrien Exp $
d36 1
@


1.48
log
@Pull the switch and activate our Binutils to a snapshot of the up and
comming 2.10 release.
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/binutils/gdb/Makefile,v 1.47 2000/05/17 19:30:59 obrien Exp $
d30 1
d68 1
a68 1
CLEANFILES=	init.c init.c-tmp
d111 3
@


1.47
log
@callback.c is not really used, nor is it part of GDB 4.18.
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/binutils/gdb/Makefile,v 1.46 2000/04/29 09:03:46 dfr Exp $
d6 4
@


1.46
log
@Add support for debugging programs using libc_r's implementation of
pthreads.
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/binutils/gdb/Makefile,v 1.45 2000/04/04 11:12:55 gj Exp $
d24 1
a24 1
	version.c serial.c ser-unix.c ser-tcp.c callback.c
@


1.45
log
@Add a '+' to the first LDADD, otherwise it clobbers the LDADD in
Makefile.alpha such that the -lkvm disappears and the link fails.

This time I tested it, honest :)
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/binutils/gdb/Makefile,v 1.44 2000/03/27 18:01:51 bde Exp $
d11 14
a24 14
	coffread.c command.c complaints.c copying.c corefile.c		\
	corelow.c core-regset.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 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 mdebugread.c	\
	mem-break.c minsyms.c objfiles.c parse.c printcmd.c remote.c	\
	remote-utils.c scm-exp.c scm-lang.c scm-valprint.c solib.c	\
	source.c stabsread.c stack.c symfile.c symmisc.c symtab.c	\
	target.c thread.c top.c tracepoint.c typeprint.c utils.c	\
	valarith.c valops.c valprint.c values.c version.c serial.c	\
	ser-unix.c ser-tcp.c callback.c
@


1.44
log
@Use `${dir}/libfoo.a' instead of `-L${dir} -lfoo' for local static
libraries in LDADD so that `make checkdpadd' doesn't report non-errors.

Fixed some style bugs (the usual ones for DPADD and LDADD, and misformatting
of $FreeBSD$).
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/binutils/gdb/Makefile,v 1.43 1999/08/27 23:34:48 peter Exp $
d43 1
a43 1
LDADD=		${RELTOP}/libbfd/libbfd.a
@


1.43
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
d37 1
a37 7
LDADD+=		-L${RELTOP}/libbfd -lbfd
LDADD+=		-L${RELTOP}/libopcodes -lopcodes
LDADD+=		-lreadline
LDADD+=		-lgnuregex
LDADD+=		-L${RELTOP}/libiberty -liberty
LDADD+=		-ltermcap
DPADD+=		${RELTOP}/libbfd/libbfd.a
d43 6
@


1.43.2.1
log
@MFC: rev 1.47 (callback.c)
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/binutils/gdb/Makefile,v 1.43 1999/08/27 23:34:48 peter Exp $
d24 1
a24 1
	ser-unix.c ser-tcp.c
@


1.43.2.2
log
@MFC: rev 1.44-45 (fix LDADD)
     rev 1.46 (debugging support when using libc_r's pthreads)
     rev 1.47-48 (upgrade to Binutils 2.10.0)
@
text
@d1 1
a1 1
# $FreeBSD$
a6 4
.if ${MACHINE_ARCH} == "i386"
CFLAGS+=	-Dprint_insn_i386=print_insn_i386_att
.endif

d11 14
a24 14
	coffread.c command.c complaints.c copying.c core-regset.c	\
	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	\
	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	\
	mdebugread.c mem-break.c minsyms.c objfiles.c parse.c		\
	printcmd.c remote.c remote-utils.c scm-exp.c scm-lang.c		\
	scm-valprint.c solib.c source.c stabsread.c stack.c symfile.c	\
	symmisc.c symtab.c target.c thread.c top.c tracepoint.c		\
	typeprint.c utils.c valarith.c valops.c valprint.c values.c	\
	version.c serial.c ser-unix.c ser-tcp.c
d37 7
a43 1
DPADD=		${RELTOP}/libbfd/libbfd.a
a48 6
LDADD+=		${RELTOP}/libbfd/libbfd.a
LDADD+=		${RELTOP}/libopcodes/libopcodes.a
LDADD+=		-lreadline
LDADD+=		-lgnuregex
LDADD+=		${RELTOP}/libiberty/libiberty.a
LDADD+=		-ltermcap
@


1.43.2.3
log
@MFC: rev 1.58 (link with libiberty.a before libreadline.so)
@
text
@d43 1
a43 1
DPADD+=		${LIBTERMCAP}
d46 1
a46 1
DPADD+=		${LIBREADLINE}
d49 1
a49 1
LDADD+=		-ltermcap
d52 1
a52 1
LDADD+=		-lreadline
@


1.43.2.4
log
@MFC: rev 1.59 (fix lib ordering for static linking)
@
text
@a10 1
NOSHARED?=yes
d43 1
a46 1
DPADD+=		${LIBTERMCAP}
d49 1
a52 1
LDADD+=		-ltermcap
@


1.43.2.5
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/gnu/usr.bin/binutils/gdb/Makefile 98801 2002-06-25 05:04:46Z obrien $
@


1.42
log
@Fixed some regressions in rev.1.40:
- rev.1.39 was clobbered.
- PROG was defined twice, once as nm.
- style bugs.
@
text
@d1 1
a1 1
#	$Id$
@


1.41
log
@Add core-regset.c to the Makefile to allow debugging elf corefiles.
@
text
@d1 1
a1 3
#
# $Id: Makefile,v 1.40 1999/05/02 11:31:54 dfr Exp $
#
d7 2
a8 3
PROG=		nm
PROG = gdb
XSRCS = annotate.c ax-general.c ax-gdb.c bcache.c blockframe.c		\
d77 1
a77 1
	@@echo Making ${.TARGET}
@


1.41.2.1
log
@MFC: Import gdb-4.18

Approved by: core
@
text
@d2 1
a2 1
# $Id$
@


1.41.2.2
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.40
log
@* Add bmake framework for using gdb alongside binutils. The old bmake
  framework was repository copied from gnu/usr.bin/gdb.
* Add alpha support.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.3 1998/06/03 18:00:57 peter Exp $
d15 1
a15 1
	corelow.c cp-valprint.c dcache.c dbxread.c demangle.c		\
@


1.39
log
@echo -> ${ECHO}.
@
text
@d1 5
a5 1
#	$Id: Makefile,v 1.38 1998/10/15 14:15:09 bde Exp $
d7 3
d11 41
a53 7
.if ${OBJFORMAT} == elf
BFDDIR= ${.CURDIR}/../../binutils/libbfd/${MACHINE_ARCH}
BINDIR=	/usr/libexec/elf
.else
BFDDIR= ${.CURDIR}/../bfd
BINDIR=	/usr/libexec/aout
.endif
d55 1
a55 1
.PATH:	${GDBDIR}/opcodes
a56 1
.if ${OBJFORMAT} == elf
a57 26
.endif

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}
d59 1
a59 1
CFLAGS+= -I$(.CURDIR) -I${DESTDIR}/usr/include/readline -I${BFDDIR}
a67 35
.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}

d80 1
a80 1
	@@${ECHO} Making ${.TARGET}
@


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.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.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
@
