FINALLLYYYY!!! Can't believe it took so long to solve this but now I can gdb and catch aborts.
This commit is contained in:
parent
43fb60ebaa
commit
5af6d75b4c
3 changed files with 13 additions and 2 deletions
8
.gdbinit
Normal file
8
.gdbinit
Normal file
|
@ -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
|
3
Makefile
3
Makefile
|
@ -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
|
||||||
|
|
4
map.hpp
4
map.hpp
|
@ -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…
Add table
Add a link
Reference in a new issue