Skip to content

Commit

Permalink
Add gdb command to target, *.img to ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
yodalee committed May 2, 2023
1 parent ccd658b commit a24bc70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
/*.img
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ AS = $(TOOLPREFIX)gas
LD = $(TOOLPREFIX)ld
OBJCOPY = $(TOOLPREFIX)objcopy
OBJDUMP = $(TOOLPREFIX)objdump
GDB = riscv64-elf-gdb
CFLAGS = -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2

$U/initcode: $U/initcode.S
Expand All @@ -30,3 +31,6 @@ qemu:
qemu_debug:
@echo "Run: 'riscv64-elf-gdb -q ${KERNEL}' in another terminal"
${QEMU} -S -s ${QEMUOPTS}

gdb:
${GDB} -q ${KERNEL}

0 comments on commit a24bc70

Please sign in to comment.