diff options
Diffstat (limited to 'src/include')
| -rwxr-xr-x | src/include/box64context.h | 7 | ||||
| -rwxr-xr-x | src/include/debug.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/include/box64context.h b/src/include/box64context.h index 1ec9855e..1e7f5efc 100755 --- a/src/include/box64context.h +++ b/src/include/box64context.h @@ -64,6 +64,8 @@ typedef struct base_segment_s { pthread_key_t key; } base_segment_t; +#define CYCLE_LOG 8 + typedef struct box64context_s { path_collection_t box64_path; // PATH env. variable path_collection_t box64_ld_lib; // LD_LIBRARY_PATH env. variable @@ -187,6 +189,11 @@ typedef struct box64context_s { void* stack_clone; int stack_clone_used; + // rolling logs + char* log_call[CYCLE_LOG]; + char* log_ret[CYCLE_LOG]; + int current_line; + } box64context_t; extern box64context_t *my_context; // global context diff --git a/src/include/debug.h b/src/include/debug.h index 6d5ce616..48103d3a 100755 --- a/src/include/debug.h +++ b/src/include/debug.h @@ -27,6 +27,7 @@ extern int arm64_atomics; #endif #endif extern int dlsym_error; // log dlsym error +extern int cycle_log; // if using rolling logs #ifdef HAVE_TRACE extern int trace_xmm; // include XMM reg in trace? extern int trace_emm; // include EMM reg in trace? |