Page MenuHomeFreeBSD

Support for booting into kdb on arm platforms.
ClosedPublic

Authored by skibo on Feb 18 2018, 6:51 PM.
Tags
None
Referenced Files
F82374746: D14428.diff
Sat, Apr 27, 10:44 PM
F82335367: D14428.id39713.diff
Sat, Apr 27, 6:15 PM
F82335366: D14428.id.diff
Sat, Apr 27, 6:15 PM
F82326996: D14428.diff
Sat, Apr 27, 4:41 PM
Unknown Object (File)
Fri, Apr 26, 2:15 PM
Unknown Object (File)
Tue, Apr 9, 2:12 AM
Unknown Object (File)
Feb 8 2024, 1:02 PM
Unknown Object (File)
Jan 15 2024, 7:55 PM
Subscribers

Details

Summary

This diff supports entering kdb early in the boot when the RB_KDB flag is set on arm platforms.

While trying to get this to work, I discovered that machdep_boot.c doesn’t include opt_ddb.h and so the kernel symbols weren’t getting loaded into the debugger early in the boot (see the call to db_fetch_ksymtab() in freebsd_parse_boot_param()). I have never noticed any problems with symbols in kdb before. I wonder how those symbols eventually get loaded and wonder if now I'm calling it twice.

Test Plan

Tested on Zedboard and in qemu.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

ian added a subscriber: ian.

Looks good, and works fine on my wandboard.

This revision is now accepted and ready to land.Feb 25 2018, 6:39 PM
This revision was automatically updated to reflect the committed changes.