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: Netflixc559602d1a
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 mdbinstalls 20250623 fromlatest; fromquarterly(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 version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 20250623 | ✗ | – |
| FreeBSD 15 | 20250623 | ✗ | – |
| FreeBSD 14 | 20250623 | ✗ | ✗ |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 20250623 | ✗ | – |
| FreeBSD 14 | 20250623 | ✗ | ✗ |
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)
devel/mdb: Fix build on 15 after removal of kernel stack swapping6df42e9750
*/*: 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/D42068bbab7f59e9
devel/mdb: Update to fix build on recent 14.1eceef346f
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/D3793621778d8958
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
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
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: Netflixd112ec7537
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: 2021Q26f7976573c
One more small cleanup, forgotten yesterday. Reported by: lwhsucf118ccf87
Remove # $FreeBSD$ from Makefiles.305f148f48
Fix build on 13 and 14 after dtrace.h changes in src on Jan 6, 2021.8029bf6bc2
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/D27427acd903e635
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/D2413251fa84b6ed
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/D22486f458f81a1a
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/D19602ca1bc6eb95
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/D1867513e8f2eb8f
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/D177248a502cb2d4
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/D15828f9f16347a2
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/D13976784add9a5a
Honor SRC_BASE when building. Reported by: glebius Differential Revision: https://reviews.freebsd.org/D124417e469a8f36
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: feld3cb7074c1f
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/D11682655d83ea67