Keep debug info in a .sym file

- Compile time changes
   - Compile libkernel.a with debug info
   - Copy debug info to kernel.sym
   - Strip the kernel of debug symbols
 - Workflow changes
   - Add `debug` option to `make qemu`
This commit is contained in:
Dan Robertson 2017-12-02 19:33:16 +00:00
parent 1f3ebdbd63
commit 804d0ad641
No known key found for this signature in database
GPG key ID: 45C4A652C47E42A5
3 changed files with 8 additions and 3 deletions

View file

@ -27,6 +27,9 @@ endif
ifneq ($(usb),no)
QEMUFLAGS+=-device nec-usb-xhci,id=xhci -device usb-tablet,bus=xhci.0
endif
ifneq ($(gdb),yes)
QEMUFLAGS+=-s
endif
ifeq ($(UNAME),Linux)
ifneq ($(kvm),no)
QEMUFLAGS+=-enable-kvm -cpu host