From 969e72b5c629b4b3d353ecee3dd28a3ec9b483c5 Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Thu, 31 Aug 2023 00:05:49 -0700 Subject: [PATCH] add .lldbinit improve debug comment in Makefile.local --- .lldbinit | 18 ++++++++++++++++++ Makefile.local | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .lldbinit diff --git a/.lldbinit b/.lldbinit new file mode 100644 index 0000000..b7350fd --- /dev/null +++ b/.lldbinit @@ -0,0 +1,18 @@ +# +# lldb calc +# +# IMPORTANT: Under macOS, use this local ./lldbinit file, your home directory file: +# +# ~/.lldbinit +# +# must contain this line (w/o the leading # and whitespace): +# +# settings set target.load-cwd-lldbinit true +# +# To debug calc with lldb from this directory, just run: +# +# lldb +# +target create "./calc" +process launch -tty --environment CALCPATH=./cal --environment LD_LIBRARY_PATH=. --environment DYLD_LIBRARY_PATH=. --environment CALCHELP=./help --environment CALCCUSTOMHELP=./custom -- -q -d +b main diff --git a/Makefile.local b/Makefile.local index 7ffbed4..60d389e 100644 --- a/Makefile.local +++ b/Makefile.local @@ -98,7 +98,7 @@ # # Uncomment these lines: # -# DEBUG:= -O0 -g +# DEBUG:= -O0 -g3 # FSANITIZE:= -fsanitize=undefined -fsanitize=address -fsanitize=bool -fsanitize=bounds # FSANITIZE+= -fsanitize=enum -fsanitize=vptr -fsanitize=integer-divide-by-zero # FSANITIZE+= -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow