Skip to content

Commit

Permalink
Fix gdb target by not removing ELF executable
Browse files Browse the repository at this point in the history
GDB actually needs the ELF executable to run a session with symbols
loaded in. Hence, do not remove the `fbos.elf` file after calling
`objcopy`.

Signed-off-by: Miquel Sabaté Solà <[email protected]>
  • Loading branch information
mssola committed Nov 29, 2024
1 parent d516659 commit 15cd6b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.o
kernel/fbos.ld
/fbos
/fbos.elf
.cache

usr/bin/*
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ all: clean $(IMAGE) usr test
$(IMAGE): $(KRNL)
$(E) " OBJCOPY " $@
$(Q) $(OBJCPY) $(KRNL) -O binary $(IMAGE)
$(Q) rm $(KRNL)

.PHONY: $(KRNL)
$(KRNL): $(OBJ) $(LINKER).S
Expand Down

0 comments on commit 15cd6b3

Please sign in to comment.