Add some debugger memory utilities (#109)

* add some memory utilities

* run waitpid in a separate thread and support very simple breakpoints

* fix breakpoints

* add missing windows stub function

* fix error message on exit
This commit is contained in:
water111
2020-11-06 13:59:39 -05:00
committed by GitHub
parent f5ed2e6ad7
commit c09541fa98
20 changed files with 1430 additions and 57 deletions
+1
View File
@@ -6,6 +6,7 @@
*/
#include <cstring>
#include "common/goal_constants.h"
#include "kmalloc.h"
#include "kprint.h"
#include "kscheme.h"
+1
View File
@@ -7,6 +7,7 @@
#include <cassert>
#include "kscheme.h"
#include "common/common_types.h"
#include "common/goal_constants.h"
#include "kmachine.h"
#include "klisten.h"
#include "kmalloc.h"
+1 -3
View File
@@ -9,6 +9,7 @@
#define JAK_KSCHEME_H
#include "common/common_types.h"
#include "common/goal_constants.h"
#include "kmachine.h"
#include "kmalloc.h"
@@ -19,9 +20,6 @@ extern Ptr<u32> s7;
extern Ptr<u32> SymbolTable2;
extern Ptr<u32> LastSymbol;
constexpr s32 GOAL_MAX_SYMBOLS = 0x2000;
constexpr s32 SYM_INFO_OFFSET = 0xff34;
constexpr u32 EMPTY_HASH = 0x8454B6E6;
constexpr u32 OFFSET_MASK = 7;
constexpr u32 CRC_POLY = 0x04c11db7;