From 52dc1958402953888014aa4b248b1656f7490545 Mon Sep 17 00:00:00 2001 From: fryorcraken <110212804+fryorcraken@users.noreply.github.com> Date: Fri, 12 Jul 2024 23:51:06 +1000 Subject: [PATCH] chore: add gdb run task for linux (#15555) Useful to debug segfault and other core dumps occurrences. --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 267e9d70df..62f023acd0 100644 --- a/Makefile +++ b/Makefile @@ -819,6 +819,11 @@ run-linux: nim_status_client LD_LIBRARY_PATH="$(QT5_LIBDIR)":"$(STATUSGO_LIBDIR)":"$(STATUSKEYCARDGO_LIBDIR):$(LD_LIBRARY_PATH)" \ ./bin/nim_status_client $(ARGS) +run-linux-gdb: nim_status_client + echo -e "\033[92mRunning:\033[39m bin/nim_status_client" + LD_LIBRARY_PATH="$(QT5_LIBDIR)":"$(STATUSGO_LIBDIR)":"$(STATUSKEYCARDGO_LIBDIR):$(LD_LIBRARY_PATH)" \ + gdb -ex=r ./bin/nim_status_client $(ARGS) + run-macos: nim_status_client mkdir -p bin/StatusDev.app/Contents/{MacOS,Resources} cp Info.dev.plist bin/StatusDev.app/Contents/Info.plist