diff options
Diffstat (limited to 'src/parser.c')
| -rw-r--r-- | src/parser.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c index ab9bde1..1731c70 100644 --- a/src/parser.c +++ b/src/parser.c @@ -1,3 +1,14 @@ +#include "parser.h" + +#include <Windows.h> + +#include "utils.h" +#include "module.h" +#include "stack_walk.h" + +extern u8 expect_single_step; +extern DWORD continue_status; + enum TOKEN_TYPE { // Commands TOKEN_CONTINUE, @@ -194,6 +205,10 @@ u64 eval_number(const struct ast_node* node) { } void run(struct ast_node* root) { + extern DEBUG_EVENT dbg_event; + extern u8 process_commands; + extern u8 is_open; + struct ast_node cur_node = root[0]; CONTEXT ctx = { .ContextFlags = CONTEXT_ALL, @@ -225,7 +240,6 @@ void run(struct ast_node* root) { } } else if (cur_node.token->type == TOKEN_PRINT_REG) { print("RIP : %xu\n", ctx.Rip); - print("RAX : %xu\n", ctx.Rax); print("RCX : %xu\n", ctx.Rcx); print("RDX : %xu\n", ctx.Rdx); print("RBX : %xu\n", ctx.Rbx); |
