added the ability to inspect the stack from the debugger

This commit is contained in:
cozis
2021-11-02 14:17:24 +00:00
parent acc8cbd75f
commit f351be78bb
6 changed files with 115 additions and 6 deletions
+6 -1
View File
@@ -4,7 +4,7 @@
#include "runtime.h"
#define MAX_FRAME_STACK 16
#define MAX_FRAMES 1024
#define MAX_FRAMES 16
typedef struct Frame Frame;
@@ -25,6 +25,11 @@ struct xRuntime {
Heap *heap;
};
Stack *Runtime_GetStack(Runtime *runtime)
{
return Stack_Copy(runtime->stack, 1);
}
Heap *Runtime_GetHeap(Runtime *runtime)
{
return runtime->heap;