From 5af6d75b4ccbfc351b6e6784c4daf62004ec8997 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Sat, 9 Nov 2024 03:57:38 -0500 Subject: [PATCH] FINALLLYYYY!!! Can't believe it took so long to solve this but now I can gdb and catch aborts. --- .gdbinit | 8 ++++++++ Makefile | 3 +++ map.hpp | 4 ++-- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .gdbinit diff --git a/.gdbinit b/.gdbinit new file mode 100644 index 0000000..94b5890 --- /dev/null +++ b/.gdbinit @@ -0,0 +1,8 @@ +set confirm off +set breakpoint pending on +set logging on +set logging overwrite on +set print pretty on +set pagination off +break abort +catch throw diff --git a/Makefile b/Makefile index b1b1764..ff8c808 100644 --- a/Makefile +++ b/Makefile @@ -25,3 +25,6 @@ run: build test clean: meson compile --clean -C builddir + +debug: + gdb --nx -x .gdbinit builddir/roguish.exe diff --git a/map.hpp b/map.hpp index f36b930..d172f83 100644 --- a/map.hpp +++ b/map.hpp @@ -13,8 +13,8 @@ #define WALL_VALUE 1 #define SPACE_VALUE 0 -constexpr int GAME_MAP_X = 90; -constexpr int GAME_MAP_Y = 90; +constexpr int GAME_MAP_X = 40; +constexpr int GAME_MAP_Y = 40; struct Room { size_t x = 0;