diff options
author | jaortega <jaortega> | 2000-12-19 00:12:25 +0000 |
---|---|---|
committer | jaortega <jaortega> | 2000-12-19 00:12:25 +0000 |
commit | 37bb3b675d3a9bcb492b9a1e1e19860228f8a8ca (patch) | |
tree | 43394d37b1cf2133ba508d5e24e0aa9d0a2fbd14 /mixlib/mix_vm.h | |
parent | b9abc48ed04c21728d77933e69c6e6d007aa326f (diff) | |
download | mdk-37bb3b675d3a9bcb492b9a1e1e19860228f8a8ca.tar.gz mdk-37bb3b675d3a9bcb492b9a1e1e19860228f8a8ca.tar.bz2 |
added tracing instructions functionality
Diffstat (limited to 'mixlib/mix_vm.h')
-rw-r--r-- | mixlib/mix_vm.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mixlib/mix_vm.h b/mixlib/mix_vm.h index 6ddbb8e..cf4965c 100644 --- a/mixlib/mix_vm.h +++ b/mixlib/mix_vm.h @@ -26,6 +26,7 @@ #include "mix_types.h" #include "mix_ins.h" #include "mix_code_file.h" +#include "mix_src_file.h" #include "mix_symbol_table.h" /* Comparison flag */ @@ -114,6 +115,10 @@ mix_vm_exec_ins(mix_vm_t *vm, const mix_ins_t *ins); extern gboolean mix_vm_load_file(mix_vm_t *vm, const gchar *name); +/* Get the source file object corresponding to the last loaded code file */ +extern const mix_src_file_t * +mix_vm_get_src_file (const mix_vm_t *vm); + /* Get symbol table of loaded file */ extern const mix_symbol_table_t * mix_vm_get_symbol_table (const mix_vm_t *vm); @@ -127,7 +132,8 @@ mix_vm_get_prog_count (const mix_vm_t *vm); enum { MIX_VM_ERROR, /* error executing instructions */ MIX_VM_BREAK, /* breakpoint found */ - MIX_VM_HALT /* end of execution */ + MIX_VM_HALT, /* end of execution */ + MIX_VM_OK /* successful instruction execution */ }; extern int |