Debugger: Check out-of-bounds array access

This prevents the debugger from SEGVing when trying to access a
variable.
This commit is contained in:
kichikuou
2022-07-30 18:14:35 +09:00
parent d2661e97f1
commit 652d284628
5 changed files with 51 additions and 33 deletions
+1
View File
@@ -47,6 +47,7 @@ extern int preVarPage;
extern int preVarIndex;
extern int preVarNo;
const char *v_name(int var);
int *v_ref(int var);
int *v_ref_indexed(int var, int index);
boolean v_allocateArrayBuffer(int page, int size, boolean saveflag);