Port details |
- mdb Solaris Modular Debugger
- 20240828 devel =2 20230323Version of this port present on the latest quarterly branch.
- IGNORE: requires full source tree with CDDL sources
- Maintainer: jhb@FreeBSD.org
- Port Added: 2017-07-27 19:52:12
- Last Update: 2024-08-29 00:43:00
- Commit Hash: 6df42e9
- People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py39-PyOpenGL, p5-Sane
- License: CDDL
- WWW:
- https://docs.oracle.com/cd/E19683-01/806-6545/index.html
- Description:
- 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.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- To install the port:
- cd /usr/ports/devel/mdb/ && make install clean
- We doubt a package is available for this port because we see it marked as as:
-
Packages are normally not provided for ports that are marked as above.
- To add the package, run one of these commands:
- pkg install devel/mdb
- pkg install mdb
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: mdb
- Flavors: there is no flavor information for this port.
- ONLY_FOR_ARCHS: amd64
- distinfo:
- TIMESTAMP = 1724892064
SHA256 (bsdjhb-illumos-gate-20240828-9cf028ae25_GH0.tar.gz) = 2abf343f8652024cd9df84ca9b6091aa27dd747cd370946c422fbd3913f9ad3c
SIZE (bsdjhb-illumos-gate-20240828-9cf028ae25_GH0.tar.gz) = 115106419
Packages (timestamps in pop-ups are UTC):
- This port has no dependencies.
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- devel_mdb
- USES:
- compiler uidfix
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
20240828 29 Aug 2024 00:43:00 |
John Baldwin (jhb) |
devel/mdb: Fix build on 15 after removal of kernel stack swapping |
20230323 31 Dec 2023 00:37:05 |
Muhammad Moinur Rahman (bofh) |
*/*: 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 |
20230323 23 Mar 2023 21:03:48 |
John Baldwin (jhb) |
devel/mdb: Update to fix build on recent 14. |
20210810 14 Jan 2023 23:14:56 |
Tobias C. Berner (tcberner) |
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 |
07 Sep 2022 21:58:51 |
Stefan Eßer (se) |
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) |
20210810 07 Sep 2022 21:10:59 |
Stefan Eßer (se) |
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.
(Only the first 15 lines of the commit message are shown above ) |
20210810 10 Aug 2021 21:51:15 |
John Baldwin (jhb) |
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 |
20210125_1 06 Jun 2021 18:20:02 |
Dimitry Andric (dim) |
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 |
20210125 07 Apr 2021 08:09:01 |
Mathieu Arnold (mat) |
One more small cleanup, forgotten yesterday.
Reported by: lwhsu |
20210125 06 Apr 2021 14:31:07 |
Mathieu Arnold (mat) |
Remove # $FreeBSD$ from Makefiles. |
20210125 25 Jan 2021 20:42:39 |
jhb |
Fix build on 13 and 14 after dtrace.h changes in src on Jan 6, 2021. |
20201204 08 Dec 2020 20:25:39 |
jhb |
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 |
20200319 20 Mar 2020 01:33:43 |
jhb |
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 |
20190315 21 Nov 2019 22:22:05 |
jhb |
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 |
20190315 05 Apr 2019 19:08:15 |
jhb |
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 |
0.3_1 28 Dec 2018 19:23:54 |
jhb |
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 |
0.3 02 Nov 2018 13:32:35 |
rene |
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 |
0.3 20 Jun 2018 17:23:36 |
jhb |
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 |
0.2 19 Jan 2018 01:38:49 |
jhb |
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 |
0.1 21 Sep 2017 21:02:03 |
jhb |
Honor SRC_BASE when building.
Reported by: glebius
Differential Revision: https://reviews.freebsd.org/D12441 |
0.1 02 Aug 2017 23:58:03 |
jhb |
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 |
0.1 27 Jul 2017 19:52:03 |
jhb |
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 |