From 32edd257796726a1df29a4bc1e0777cb243f7a13 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Mon, 22 Jul 2019 15:50:40 +0000 Subject: [PATCH] debugger.mk: Fix core file parsing from GDB output Signed-off-by: Jan Lindemann --- make/debugger.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/debugger.mk b/make/debugger.mk index 202cd343..00b736c7 100644 --- a/make/debugger.mk +++ b/make/debugger.mk @@ -6,7 +6,7 @@ CORE ?= $(firstword $(CORE_VG) $(CORE_REGULAR)) ifneq ($(CORE),) ifneq ($(CORE),$(CORE_VG)) # trick doesn't work on valgrind cores 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/ .*//; s/\x27\.$$//') else CORE_DUMPER = $(EXE_PATH) endif