1
0
mirror of https://github.com/taigrr/gopher-os synced 2025-01-18 04:43:13 -08:00

Substitute source paths when running GDB on OSX

The generated DWARF information contains absolute file paths for the
source files which causes issues when debugging on OSX as GDB cannot
lookup the source files.
This commit is contained in:
Achilleas Anagnostopoulos 2017-06-28 18:18:00 +01:00
parent c9ca6e31eb
commit 0c79af3f90

View File

@ -131,7 +131,8 @@ gdb: iso
-ex 'file $(kernel_target)' \
-ex 'target remote localhost:1234' \
-ex 'set arch i386:x86-64:intel' \
-ex 'source $(GOROOT)/src/runtime/runtime-gdb.py'
-ex 'source $(GOROOT)/src/runtime/runtime-gdb.py' \
-ex 'set substitute-path $(VAGRANT_SRC_FOLDER) $(shell pwd)'
@killall qemu-system-$(ARCH) || true
clean: