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:
parent
c9ca6e31eb
commit
0c79af3f90
3
Makefile
3
Makefile
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user