add .lldbinit improve debug comment in Makefile.local

This commit is contained in:
Landon Curt Noll
2023-08-31 00:05:49 -07:00
parent 4dbc4dfe9a
commit 969e72b5c6
2 changed files with 19 additions and 1 deletions

18
.lldbinit Normal file
View File

@@ -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

View File

@@ -98,7 +98,7 @@
# #
# Uncomment these lines: # Uncomment these lines:
# #
# DEBUG:= -O0 -g # DEBUG:= -O0 -g3
# FSANITIZE:= -fsanitize=undefined -fsanitize=address -fsanitize=bool -fsanitize=bounds # FSANITIZE:= -fsanitize=undefined -fsanitize=address -fsanitize=bool -fsanitize=bounds
# FSANITIZE+= -fsanitize=enum -fsanitize=vptr -fsanitize=integer-divide-by-zero # FSANITIZE+= -fsanitize=enum -fsanitize=vptr -fsanitize=integer-divide-by-zero
# FSANITIZE+= -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow # FSANITIZE+= -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow