HomeFreeBSD

bhyve: Make gdb support optional

Description

bhyve: Make gdb support optional

Add a BHYVE_GDB_SUPPORT make variable that can be set by per-arch
makefiles. When set, BHYVE_GDB is defined and can be used as a
preprocessor predicate. Use it to guard gdb stub calls in MI code.

The arm64 bhyve port currently does not have a functional gdb stub, but
that's not critical to landing the port, so this mechanism slightly
reduces the friction of adding support for a new platform.

Reviewed by: corvink, jhb
MFC after: 1 week
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D40986

Details

Provenance
markjAuthored on Oct 4 2023, 4:26 PM
Reviewer
corvink
Differential Revision
D40986: bhyve: Make gdb support optional
Parents
rG31cf78c9217b: bhyve: Make most I/O port handling specific to amd64
Branches
Unknown
Tags
Unknown