matos/debug.gdb

11 lines
545 B
Plaintext
Raw Normal View History

2021-11-05 23:02:23 +01:00
add-symbol-file userspace/user
# Thx to add-gnu-debuglink gdb should know that symbols are in kernel.debug.
# And by default, it should be looking at executable.debug
# But we still have to give him the executable he is suppose to debug (See https://sourceware.org/gdb/current/onlinedocs/gdb.html/Separate-Debug-Files.html)
#add-symbol-file kernel.debug
file kernel
2020-08-19 15:02:56 +02:00
source custom_gdb_extension.py
#For ASM sources
directory arch/x86/:core
2021-11-05 23:02:23 +01:00
target remote | qemu-system-i386 -S -gdb stdio -kernel kernel -m 16M -serial file:serialOut -hda disk.img