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