Page MenuHomeFreeBSD

bhyve: Make gdb support optional
ClosedPublic

Authored by markj on Jul 12 2023, 1:51 PM.
Tags
None
Referenced Files
F96500910: D40986.diff
Wed, Sep 25, 6:31 AM
Unknown Object (File)
Thu, Sep 5, 3:19 PM
Unknown Object (File)
Tue, Sep 3, 6:00 PM
Unknown Object (File)
Fri, Aug 30, 12:27 PM
Unknown Object (File)
Aug 25 2024, 4:19 AM
Unknown Object (File)
Aug 12 2024, 1:27 AM
Unknown Object (File)
Aug 12 2024, 1:27 AM
Unknown Object (File)
Aug 8 2024, 2:32 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 52579
Build 49470: arc lint + arc unit

Event Timeline

markj requested review of this revision.Jul 12 2023, 1:51 PM
jhb added inline comments.
usr.sbin/bhyve/bhyverun.c
152

Do you want to make '-G' here conditional on BHYVE_GDB? (Not sure how messy the usage() function ends up at the end of all this)

This revision is now accepted and ready to land.Jul 12 2023, 6:33 PM
This revision was automatically updated to reflect the committed changes.