CVE and update status of the FreeBSD ports tree3,864 unaddressed CVEs in 671 portsAll times are CET
Port details

devel/mdb 20250623

Solaris Modular Debugger

Port info

Maintainer
jhb@FreeBSD.org
Packages
latest: 20250623
Upstream
up to date
Last update
to 20250623 · c559602d1a
Quarterly
2026Q4: 20250623
WWW
https://docs.oracle.com/cd/E19683-01/806-6545/index.html
Links
cgit · VuXML

Install

Package
# pkg install mdb
installs 20250623 from latest; from quarterly (2026Q4) 20250623
Port
# cd /usr/ports/devel/mdb && make install clean
Size
778 KiB download · 2.5 MiB installed
Depends on
nothing
License
CDDL

Packages by version and architecture

latest

FreeBSD versionamd64aarch64i386
FreeBSD 1620250623✗–
FreeBSD 1520250623✗–
FreeBSD 1420250623✗✗

quarterly (2026Q4)

FreeBSD versionamd64aarch64i386
FreeBSD 1520250623✗–
FreeBSD 1420250623✗✗

version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.

Unaddressed and VuXML only (0)

No unaddressed CVE and nothing reported by pkg audit for the packaged version 20250623.

Fixed (0)

No VuXML entries for this package.

Problem reports (0) · open in Bugzilla, most recently changed first

None.

Commits (23)

Olivier Cochard (olivier) · 20250623
devel/mdb: Update to latest version

This update includes a patch that enables the use of the system implementation
starting with FreeBSD 1500047.

PR:		287860
Approved by:	jhb (maintainer, IRC)
Sponsored by:	Netflix
c559602d1a
John Baldwin (jhb) · 20240828
devel/mdb: Fix build on 15 after removal of kernel stack swapping
6df42e9750
Muhammad Moinur Rahman (bofh) · 20230323
*/*: Sunset 12.4-RELEASE/12-STABLE from ports tree

- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
  ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
  Also move conditional flags for non sparc64/arm ARCH to fixed flags.

Reviewed by:	brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068
bbab7f59e9
John Baldwin (jhb) · 20230323
devel/mdb: Update to fix build on recent 14.
1eceef346f
Tobias C. Berner (tcberner) · 20210810
Cleanup: Remove devel/llvm[789]0

*  remove old devel/llvm70
 *  remove old devel/llvm80
 *  remove old devel/llvm90

 *  remove ports explicitely depending on either of the three

Differential Revision:	https://reviews.freebsd.org/D37936
21778d8958
Stefan Eßer (se) · 20210810
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
fb16dfecae
Stefan Eßer (se) · 20210810
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
b7f05445c0
John Baldwin (jhb) · 20210810
devel/mdb: Update to 20210810 snapshot.

This update pulls in dim@'s earlier fix for building with clang 12
as well as an additional fix for breakage caused by a recent OpenZFS
change to remove avl_size.

Sponsored by:	Netflix
d112ec7537
Dimitry Andric (dim) · 20210125_1
devel/mdb: fix tautological-pointer-compare warning option

During an exp-run for llvm 12 (see bug 255570), it turned out that
devel/mdb does not build with clang 12.0.0:

cc  -O2 -pipe  -DMDB_PREFIX=\"/usr/local\" -g -fstack-protector-strong -fno-strict-aliasing  -I/wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../sys/cddl/compat/opensolaris  -I/usr/src/sys/cddl/compat/opensolaris  -I/wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../cddl/compat/opensolaris/include  -I/usr/src/cddl/compat/opensolaris/include  -I/usr/src/cddl/contrib/opensolaris/head  -I/wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../../usr/src/lib/libdisasm/common  -I/wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../../usr/src/common/dis/i386  -I/usr/src/cddl/contrib/opensolaris/lib/libctf/common  -I/usr/src/sys/cddl/contrib/opensolaris/uts/common -I/wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../../usr/src/cmd/mdb/intel/mdb -I/wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../../usr/src/cmd/mdb/intel/amd64/mdb -I/wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../../usr/src/cmd/mdb/intel -I/wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../../usr/src/lib/libsaveargs/common -D_MDB -I/wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../../usr/src/cmd/mdb/common -I/usr/src -DDIS_TEXT -D_SYS_INT_TYPES_H -Dmemalign=aligned_alloc -DTCGETS=TIOCGETA -DTCSETSW=TIOCSETAW -DIUCLC=0 -DENODATA=ENOENT   -D__amd64 -DIN_BASE -DNEED_SOLARIS_BOOLEAN -fPIE -MD  -MF.depend.kvm_amd64dep_freebsd.o -MTkvm_amd64dep_freebsd.o -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/12.0.0/include -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-unknown-pragmas -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-bitwise-op-parentheses  -Wno-cast-align  -Wno-cast-qual  -Wno-char-subscripts  -Wno-incompatible-pointer-types  -Wno-incompatible-pointer-types-discards-qualifiers  -Wno-logical-op-parentheses  -Wno-missing-braces  -Wno-missing-field-initializers  -Wno-missing-variable-declarations  -Wno-shadow  -Wno-sign-compare  -Wno-strict-prototypes  -Wno-error-tautological-pointer-compare  -Wno-unused-parameter  -Qunused-arguments    -c /wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../../usr/src/cmd/mdb/intel/mdb/kvm_amd64dep_freebsd.c -o kvm_amd64dep_freebsd.o
error: unknown -Werror warning specifier: '-Wno-error-tautological-pointer-compare' [-Werror,-Wunknown-warning-option]
*** [kvm_amd64dep_freebsd.o] Error code 1

This is because for a while -Wno-error- options should be spelled as
-Wno-error=, instead.

Approved by:	maintainer timeout (2 weeks)
PR:		255955
MFH:		2021Q2
6f7976573c
Mathieu Arnold (mat) · 20210125
One more small cleanup, forgotten yesterday. Reported by:	lwhsu
cf118ccf87
Mathieu Arnold (mat) · 20210125
Remove # $FreeBSD$ from Makefiles.
305f148f48
John Baldwin (jhb) · 20210125
Fix build on 13 and 14 after dtrace.h changes in src on Jan 6, 2021.
8029bf6bc2
John Baldwin (jhb) · 20201204
devel/mdb: Update to a newer snapshot which builds on recent HEAD.

This snapshot includes fixes to build again on HEAD after the OpenZFS
import.  It also fixes ::kgrep on HEAD after the changes in r346302.
Finally, it includes debug symbols in shipped binaries to ease future
debugging.

Tested by:	gallatin
Approved by:	kevans (ports)
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D27427
acd903e635
John Baldwin (jhb) · 20200319
Pull in a fix to ignore a warning in llvm 10.

This fixes the build of the port on head.

Submitted by:	glebius
Approved by:	mandree
Differential Revision:	https://reviews.freebsd.org/D24132
51fa84b6ed
John Baldwin (jhb) · 20190315
Use clang 7 as compiler on 11.x and 12.x to fix build.

clang 8 and later error for duplicate definitions of enum values.  mdb
depends on having identical but duplicate definitions.  This was fixed
differently in 13 with a change to the kernel, but that change is
disruptive and cannot be easily backported.

Reported by:	pkg-fallout, Attila Nagy
Approved by:	bdrewery
MFH:		2019Q3
Differential Revision:	https://reviews.freebsd.org/D22486
f458f81a1a
John Baldwin (jhb) · 20190315
Fix build with clang 8.

Workaround clang 8 compile issues on head.  Note that this requires
changes to the kernel source tree in r345196.

While here, switch to using a date for the version number since there
are no real version numbers in the git repository.  This doesn't use
the 'g' prefix since the older versions that already exist would sort
after it.

PR:	236207
Reviewed by:	swills, jrm
Differential Revision:	https://reviews.freebsd.org/D19602
ca1bc6eb95
John Baldwin (jhb) · 0.3_1
Fix build of devel/mdb.

- Include bsd.port.pre.mk before using SRC_BASE.
- Add a missing file to the packing list.
- Bump PORTREVISION.

Approved by:	zeising
Differential Revision:	https://reviews.freebsd.org/D18675
13e8f2eb8f
Rene Ladan (rene) · 0.3
Remove compatibility code for FreeBSD < 11.2 from all ports.

Simplify some ports where DragonFlyBSD no longer needs to be special-cased.
Submitted by:	rene
Reviewed by:	bapt, jbeich
Differential Revision:	https://reviews.freebsd.org/D17724
8a502cb2d4
John Baldwin (jhb) · 0.3
Update mdb for kernels with PTI.

Recognize fast_syscall_common as a trapframe generator.

The 'syscall' entry points now use this symbol in kernels with PTI.

Reviewed by:	bdrewery
Differential Revision:	https://reviews.freebsd.org/D15828
f9f16347a2
John Baldwin (jhb) · 0.2
Update mdb port with various fixes.

- Skip sections in kernel modules without SHF_ALLOC to catch up to
  r328101.
- Fix autoloading of mdb modules based on FreeBSD kernel modules.
- Add an opensolaris module for opensolaris.ko that includes
  walkers and commands for avl and nvlist.
- Recognize mchk_calltrap as a trapframe generator.
- Bump PORTVERSION to 0.2.

Submitted by:	Jan Kryl <jan.kryl@cloudbyte.com> [2,3]
Reviewed by:	bdrewery
Differential Revision:	https://reviews.freebsd.org/D13976
784add9a5a
John Baldwin (jhb) · 0.1
Honor SRC_BASE when building.

Reported by:	glebius
Differential Revision:	https://reviews.freebsd.org/D12441
7e469a8f36
John Baldwin (jhb) · 0.1
Disable -Werror to fix build on versions older than 11.0.

The Makefiles in this port use CWARNFLAGS.clang to disable certain
warnings on clang.  However, the bsd.*.mk files only support this
feature in 11.0 and later.  Disable -Werror on older OS versions as
a workaround.

Approved by:	feld
3cb7074c1f
John Baldwin (jhb) · 0.1
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
655d83ea67