Add debug link for kernel symbols

master
Mathieu Maret 6 months ago
parent 070a42844a
commit db0d3dff14
  1. 1
      Makefile
  2. 1
      debug.gdb

@ -27,6 +27,7 @@ kernel kernel.sym &: $(asmobj) $(gasmobj) $(cobj) linker.ld
$(LD) $(LDFLAGS) $(asmobj) $(gasmobj) $(cobj) -o kernel -T linker.ld $(LIBGCC)
objcopy --only-keep-debug kernel kernel.sym
objcopy --strip-debug kernel
objcopy --add-gnu-debuglink=kernel.sym kernel
fd.iso: kernel
mkdir -p isodir/boot/grub

@ -1,4 +1,3 @@
add-symbol-file kernel.sym
add-symbol-file userspace/user
source custom_gdb_extension.py
#For ASM sources

Loading…
Cancel
Save