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/box64context.h | |
| 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/box64context.h')
| -rwxr-xr-x | src/include/box64context.h | 7 |
1 files changed, 7 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 |