Add debug link for kernel symbols

This commit is contained in:
Mathieu Maret 2022-04-05 22:00:14 +02:00
parent 070a42844a
commit db0d3dff14
2 changed files with 1 additions and 1 deletions

View File

@ -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

View File

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