1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

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
This commit is contained in:
John Baldwin 2017-07-27 19:52:03 +00:00
parent 1a40fc1884
commit 655d83ea67
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=446775
5 changed files with 50 additions and 0 deletions

View File

@ -1637,6 +1637,7 @@
SUBDIR += maven31
SUBDIR += maven33
SUBDIR += mcpp
SUBDIR += mdb
SUBDIR += mdds
SUBDIR += memleax
SUBDIR += menhir

36
devel/mdb/Makefile Normal file
View File

@ -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 <bsd.port.pre.mk>
.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 <bsd.port.post.mk>

3
devel/mdb/distinfo Normal file
View File

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

6
devel/mdb/pkg-descr Normal file
View File

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

4
devel/mdb/pkg-plist Normal file
View File

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