mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
debugger.mk performance: Don't run gdb if no core file is present
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
49f269bdfe
commit
73ced2f4ec
1 changed files with 4 additions and 3 deletions
|
|
@ -1,7 +1,8 @@
|
||||||
CORE_DUMPER = $(shell echo -e "quit" | $(DEBUGGER) --core=$(CORE) 2>&1 | \
|
ifneq ($(CORE),)
|
||||||
|
CORE_DUMPER = $(shell echo -e "quit" | $(DEBUGGER) --core=$(CORE) 2>&1 | \
|
||||||
$(SED) '/Core was generated/ !d; s/Core was generated by `//; s/ .*//')
|
$(SED) '/Core was generated/ !d; s/Core was generated by `//; s/ .*//')
|
||||||
ifeq ($(CORE_DUMPER),)
|
else ifeq ($(CORE_DUMPER),)
|
||||||
CORE_DUMPER = $(EXE_PATH)
|
CORE_DUMPER = $(EXE_PATH)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
PID = $(shell pidof $(EXE_PATH))
|
PID = $(shell pidof $(EXE_PATH))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue