Page MenuHomeFreeBSD

Disable in-tree GDB by default on x86, mips, and powerpc.
ClosedPublic

Authored by jhb on Apr 14 2017, 7:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 21 2024, 12:43 PM
Unknown Object (File)
Nov 18 2024, 5:57 AM
Unknown Object (File)
Nov 17 2024, 7:03 AM
Unknown Object (File)
Nov 16 2024, 12:20 PM
Unknown Object (File)
Nov 5 2024, 2:46 PM
Unknown Object (File)
Nov 3 2024, 2:38 PM
Unknown Object (File)
Oct 22 2024, 3:58 PM
Unknown Object (File)
Oct 22 2024, 12:43 AM
Subscribers

Details

Summary

Disable in-tree GDB by default on x86, mips, and powerpc.

GDB in ports contains all of the functionality as GDB in base
(including kgdb) for these platforms along with additional
functionality. In-tree GDB remains enabled on ARM and sparc64.
GDB in ports does not currently support kernel debugging on arm,
and ports GDB for sparc64 has not been tested (though it does
include sparc64 support).

Test Plan
  • Need to test this on my laptop to ensure a build DTRT and that crashinfo still runs ok on a system without GDB after a crash.

Diff Detail

Event Timeline

bdrewery added inline comments.
share/mk/src.opts.mk
184

This isn't needed, and would put GDB in both YES and NO lists for !arm and !sparc64. You already are adding to the NO list below when appropriate.

This revision now requires changes to proceed.Apr 14 2017, 7:37 PM
jhb edited edge metadata.
  • Remove GDB from global NO list.
This revision is now accepted and ready to land.Apr 14 2017, 9:44 PM
jhb marked an inline comment as done.Apr 14 2017, 9:50 PM
jhb added inline comments.
share/mk/src.opts.mk
184

Oh yes, that is a leftover from an earlier version that just turned it off everywhere.

Need to make sure we announce this fairly widely.

I think this is a good chance. I advocated doing this over a year ago now I think :)

share/mk/src.opts.mk
44

src all the things!

This revision was automatically updated to reflect the committed changes.
jhb marked an inline comment as done.