diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-07-30 14:18:53 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-07-30 14:18:53 +0200 |
| commit | 8bc9baefd688945327e2b01d257f656d622f33f1 (patch) | |
| tree | 4db1db5ca66c4b1a44f18d3e0770fe5d032b7382 /src/include | |
| parent | 0fe835e0871b42104218c9440f599d7a9e2b1f2f (diff) | |
| download | box64-8bc9baefd688945327e2b01d257f656d622f33f1.tar.gz box64-8bc9baefd688945327e2b01d257f656d622f33f1.zip | |
Added BOX64_ROLLING_LOG=1 for a 'Just in Time LOG=2' on signal
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? |