Mercurial > repos > blastem
comparison debug.h @ 2371:1fe5afe263f3
Initial stab at user-defined functions in debugger language
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 09 Nov 2023 23:30:20 -0800 |
parents | 8c060849a503 |
children | 5f4917b9ecfa |
comparison
equal
deleted
inserted
replaced
2367:48cc69b4c358 | 2371:1fe5afe263f3 |
---|---|
153 | 153 |
154 typedef debug_val (*debug_native_func)(debug_val *args, int num_args); | 154 typedef debug_val (*debug_native_func)(debug_val *args, int num_args); |
155 typedef struct { | 155 typedef struct { |
156 union { | 156 union { |
157 debug_native_func native; | 157 debug_native_func native; |
158 parsed_command *commands; | 158 command_block block; |
159 } impl; | 159 } impl; |
160 uint32_t num_commands; | 160 char **arg_names; |
161 int max_args; | 161 int max_args; |
162 int min_args; | 162 int min_args; |
163 uint8_t is_native; | 163 uint8_t is_native; |
164 } debug_func; | 164 } debug_func; |
165 | 165 |
188 tern_node *other_roots; | 188 tern_node *other_roots; |
189 disasm_context *disasm; | 189 disasm_context *disasm; |
190 reader read_mem; | 190 reader read_mem; |
191 writer write_mem; | 191 writer write_mem; |
192 parsed_command last_cmd; | 192 parsed_command last_cmd; |
193 debug_val retval; | |
193 uint32_t bp_index; | 194 uint32_t bp_index; |
194 uint32_t disp_index; | 195 uint32_t disp_index; |
195 uint32_t branch_t; | 196 uint32_t branch_t; |
196 uint32_t branch_f; | 197 uint32_t branch_f; |
197 void *inst; | 198 void *inst; |