From owner-svn-ports-all@freebsd.org Thu Jul 27 19:52:04 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95F64DAEAA4; Thu, 27 Jul 2017 19:52:04 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6B3C83823; Thu, 27 Jul 2017 19:52:04 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v6RJq3eC051897; Thu, 27 Jul 2017 19:52:03 GMT (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v6RJq3Xt051892; Thu, 27 Jul 2017 19:52:03 GMT (envelope-from jhb@FreeBSD.org) Message-Id: <201707271952.v6RJq3Xt051892@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhb set sender to jhb@FreeBSD.org using -f From: John Baldwin Date: Thu, 27 Jul 2017 19:52:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r446775 - in head/devel: . mdb X-SVN-Group: ports-head X-SVN-Commit-Author: jhb X-SVN-Commit-Paths: in head/devel: . mdb X-SVN-Commit-Revision: 446775 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jul 2017 19:52:04 -0000 Author: jhb (src,doc committer) Date: Thu Jul 27 19:52:03 2017 New Revision: 446775 URL: https://svnweb.freebsd.org/changeset/ports/446775 Log: Add a port for the Solaris Modular Debugger (mdb). Currently it only supports debugging of FreeBSD/amd64 kernels via kernel crashes (vmcores) or live systems via /dev/mem. It does not include a port of the in-kernel kmdb debugger. PR: 220891 Reviewed by: mat Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D11682 Added: head/devel/mdb/ head/devel/mdb/Makefile (contents, props changed) head/devel/mdb/distinfo (contents, props changed) head/devel/mdb/pkg-descr (contents, props changed) head/devel/mdb/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Thu Jul 27 18:57:51 2017 (r446774) +++ head/devel/Makefile Thu Jul 27 19:52:03 2017 (r446775) @@ -1637,6 +1637,7 @@ SUBDIR += maven31 SUBDIR += maven33 SUBDIR += mcpp + SUBDIR += mdb SUBDIR += mdds SUBDIR += memleax SUBDIR += menhir Added: head/devel/mdb/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/mdb/Makefile Thu Jul 27 19:52:03 2017 (r446775) @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= mdb +PORTVERSION= 0.1 +CATEGORIES= devel + +MAINTAINER= jhb@FreeBSD.org +COMMENT= Solaris Modular Debugger + +LICENSE= CDDL + +USES= uidfix + +USE_GITHUB= yes +GH_ACCOUNT= bsdjhb +GH_PROJECT= illumos-gate +GH_TAGNAME= b8a73a7590 + +ONLY_FOR_ARCHS= amd64 + +MAKE_ARGS= WITH_CTF=yes +MAKE_ARGS+= BINDIR=${PREFIX}/bin +MAKE_ARGS+= LIBDIR=${PREFIX}/lib +WRKSRC_SUBDIR= freebsd/cddl/usr.bin/mdb +CFLAGS+= -DMDB_PREFIX=\\\"${PREFIX}\\\" -g + +.include + +.if !exists(${SRC_BASE}/cddl/compat) || !exists(${SRC_BASE}/sys/cddl/compat) +IGNORE= requires full source tree with CDDL sources +.endif + +pre-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/lib/mdb/kvm/${MACHINE_ARCH} + +.include Added: head/devel/mdb/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/mdb/distinfo Thu Jul 27 19:52:03 2017 (r446775) @@ -0,0 +1,3 @@ +TIMESTAMP = 1500586203 +SHA256 (bsdjhb-illumos-gate-0.1-b8a73a7590_GH0.tar.gz) = 6fe907ac8c107400ccf68ed4dc240b35361e14e18ddac571e554c261d46f758c +SIZE (bsdjhb-illumos-gate-0.1-b8a73a7590_GH0.tar.gz) = 115104723 Added: head/devel/mdb/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/mdb/pkg-descr Thu Jul 27 19:52:03 2017 (r446775) @@ -0,0 +1,6 @@ +This is a port of the Solaris Modular Debugger to FreeBSD. Currently it +only supports debugging of FreeBSD/amd64 kernels via kernel crashes +(vmcores) or live systems via /dev/mem. It does not include a port of the +in-kernel kmdb debugger. + +WWW: https://docs.oracle.com/cd/E19683-01/806-6545/index.html Added: head/devel/mdb/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/mdb/pkg-plist Thu Jul 27 19:52:03 2017 (r446775) @@ -0,0 +1,4 @@ +bin/mdb +lib/mdb/kvm/amd64/kernel.so +lib/mdb/kvm/amd64/kld.so +lib/mdb/kvm/amd64/mdb_ks.so