mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
debugger.mk: Fix executable detection from core file
The executable which gdb was launched with is extracted from a core file and then transformed into an absolute path with "which". The latter failed, as by the time it's executed, PATH has not yet been expanded. Solved by using the executable name only, which then gets searched in the PATH by gdb. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
37c11af458
commit
705b97541d
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ endif
|
||||||
|
|
||||||
|
|
||||||
CORE_DUMPER = $(shell echo -e "quit" | $(DEBUGGER) --core=$(CORE) 2>&1 | \
|
CORE_DUMPER = $(shell echo -e "quit" | $(DEBUGGER) --core=$(CORE) 2>&1 | \
|
||||||
$(SED) '/Core was generated/ !d; s/Core was generated by `//; s/ .*//' | xargs -r which)
|
$(SED) '/Core was generated/ !d; s/Core was generated by `//; s/ .*//')
|
||||||
ifeq ($(CORE_DUMPER),)
|
ifeq ($(CORE_DUMPER),)
|
||||||
CORE_DUMPER = $(EXE_PATH)
|
CORE_DUMPER = $(EXE_PATH)
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue