diff --git a/C++/scripts/debug.sh b/C++/scripts/debug.sh new file mode 100755 index 0000000..3d84b84 --- /dev/null +++ b/C++/scripts/debug.sh @@ -0,0 +1,7 @@ +#Compiles the entire program with debug flags then runs it in gdb. +#C++ +printf "Running program...\n\n\n" +if g++ $(find . -type f -name "*.cpp") -g ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then + gdb ./${PROJECT_NAME} "$@" +fi +printf "\n\n" diff --git a/C++/scripts/filelist b/C++/scripts/filelist index ca9afe2..03e1e9a 100644 --- a/C++/scripts/filelist +++ b/C++/scripts/filelist @@ -1,5 +1,6 @@ build.sh commit.sh +debug.sh lines.sh release.sh temp diff --git a/C++/scripts/md5 b/C++/scripts/md5 index b57c2c4..add9549 100644 --- a/C++/scripts/md5 +++ b/C++/scripts/md5 @@ -1,5 +1,6 @@ build.sh:530634457ea9041267c05d4ced95eee1 - commit.sh:d03a46e721060c22ccb146e19d27e70a - +debug.sh:abbbb0c6d9f2409f3a90738ab3d9d44f - lines.sh:3b907786f7fc9204025993016c9080de - release.sh:a54e2002be80814cc1293a11dff4d116 - temp:d41d8cd98f00b204e9800998ecf8427e - diff --git a/C++ProjectTemplate b/C++ProjectTemplate index ad922a7..cfee198 100755 Binary files a/C++ProjectTemplate and b/C++ProjectTemplate differ diff --git a/sig b/sig index 16da56f..65804b4 100755 --- a/sig +++ b/sig @@ -1,9 +1,9 @@ -export AUTO_UPDATE=false +export AUTO_UPDATE=true source utils/define.sh define PROJECT_NAME "C++ProjectTemplate" -define CUSTOM_PARAMS "-g -std=c++17 -lX11 -lGL -lpthread -lpng -lstdc++fs -lpulse -lpulse-simple" +define CUSTOM_PARAMS "-std=c++17 -lX11 -lGL -lpthread -lpng -lstdc++fs -lpulse -lpulse-simple" define LANGUAGE "C++" source utils/main.sh