FINALLLYYYY!!! Can't believe it took so long to solve this but now I can gdb and catch aborts.

main
Zed A. Shaw 2 weeks ago
parent 43fb60ebaa
commit 5af6d75b4c
  1. 8
      .gdbinit
  2. 3
      Makefile
  3. 4
      map.hpp

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

@ -25,3 +25,6 @@ run: build test
clean: clean:
meson compile --clean -C builddir meson compile --clean -C builddir
debug:
gdb --nx -x .gdbinit builddir/roguish.exe

@ -13,8 +13,8 @@
#define WALL_VALUE 1 #define WALL_VALUE 1
#define SPACE_VALUE 0 #define SPACE_VALUE 0
constexpr int GAME_MAP_X = 90; constexpr int GAME_MAP_X = 40;
constexpr int GAME_MAP_Y = 90; constexpr int GAME_MAP_Y = 40;
struct Room { struct Room {
size_t x = 0; size_t x = 0;

Loading…
Cancel
Save