Page MenuHomeFreeBSD

Create kernel.debug.noheader by default on ARM

Authored by on Oct 27 2015, 10:44 AM.


It is convenient to have a kernel without header build along with normal one. This
allows any debugger to easily understand kernel *.elf images.
If normal kernel.debug is used, all symbols are moved by an offset
of 0x100 (header size) what makes the gdb/kgdb hard to use.

Diff Detail

Lint Skipped
Unit Tests Skipped

Event Timeline retitled this revision from to Create kernel.debug.noheader by default on ARM. updated this object. edited the test plan for this revision. (Show Details) added reviewers: imp, ian, jhb, kib, zbb.
zbb accepted this revision.Nov 2 2015, 11:29 AM
zbb edited edge metadata.
This revision is now accepted and ready to land.Nov 2 2015, 11:29 AM
andrew edited edge metadata.Nov 2 2015, 11:34 AM

Why are you using kernel.bin and not loading the kernel with loader?

I don't understand how is your question related to this change. Especially that I do use loader...

andrew added a comment.Nov 2 2015, 1:05 PM

If you're not using kernel.bin then we have a different problem, where this is not the correct fix. If kernel.debug doesn't line up with kernel then that should be fixed, not by adding a new debug kernel.