kernel: implement initcalls and a testing system
This commit is contained in:
@@ -3,11 +3,11 @@ run: $(BUILD_DIR)/$(KERNEL_EXEC)
|
||||
|
||||
@$(BUILD_DIR)/$(KERNEL_EXEC)
|
||||
|
||||
debug: $(BUILD_DIR)/$(KERNEL_EXEC)
|
||||
debug: $(BUILD_DIR)/$(KERNEL_EXEC) $(BUILD_DIR)/$(KERNEL_EXEC).dbg
|
||||
@if command -v gdb &> /dev/null; then \
|
||||
gdb -tui $(BUILD_DIR)/$(KERNEL_EXEC) \
|
||||
elif commad -v lldb &> /dev/null; then \
|
||||
lldb -- $(BUILD_DIR)/$(KERNEL_EXEC) \
|
||||
gdb -tui $(BUILD_DIR)/$(KERNEL_EXEC).dbg; \
|
||||
elif command -v lldb &> /dev/null; then \
|
||||
lldb -- $(BUILD_DIR)/$(KERNEL_EXEC).dbg; \
|
||||
else \
|
||||
printf "No debuggers available." \
|
||||
endif
|
||||
printf "No debuggers available.\n"; \
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user