Add isodebug target
Allow to take benefit from elf symboles
This commit is contained in:
parent
9713f527a8
commit
454f0875f5
7
Makefile
7
Makefile
@ -88,11 +88,16 @@ test: clean kernel disk.img
|
|||||||
run:kernel disk.img ## Run the OS on qemu
|
run:kernel disk.img ## Run the OS on qemu
|
||||||
qemu-system-x86_64 -kernel $< -serial stdio $(QEMU_OPT)
|
qemu-system-x86_64 -kernel $< -serial stdio $(QEMU_OPT)
|
||||||
|
|
||||||
debug: CFLAGS += $(DEBUG_FLAGS) ## Run the OS on qemu and attach a debugger to it (may need a clean befor to have the debug symbols)
|
debug: CFLAGS += $(DEBUG_FLAGS) ## Run the OS on qemu and attach a debugger to it (may need a clean before to have the debug symbols)
|
||||||
debug: CXXFLAGS += $(DEBUG_FLAGS)
|
debug: CXXFLAGS += $(DEBUG_FLAGS)
|
||||||
debug:kernel kernel.debug disk.img
|
debug:kernel kernel.debug disk.img
|
||||||
gdb -q -x debug.gdb
|
gdb -q -x debug.gdb
|
||||||
|
|
||||||
|
isodebug: CFLAGS += $(DEBUG_FLAGS) ## Same than previous but kernel is loaded by grub. So, for example, we can access the elf debug info
|
||||||
|
isodebug: CXXFLAGS += $(DEBUG_FLAGS)
|
||||||
|
isodebug:fd.iso disk.img
|
||||||
|
gdb -q -x debug.iso.gdb
|
||||||
|
|
||||||
debug_test: CFLAGS += $(DEBUG_FLAGS) -DRUN_TEST
|
debug_test: CFLAGS += $(DEBUG_FLAGS) -DRUN_TEST
|
||||||
debug_test: debug
|
debug_test: debug
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user