diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-07-13 10:10:45 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-07-13 10:10:45 +0200 |
| commit | 182ca255f70695de53e11e7286a9ef32df95aebe (patch) | |
| tree | 62fc5dba4f3e8ba63ae7bc7798147638589d202c /src/emu | |
| parent | 3d33713c2b22b9d697698275a9c9dab5c8ba5d03 (diff) | |
| download | box64-182ca255f70695de53e11e7286a9ef32df95aebe.tar.gz box64-182ca255f70695de53e11e7286a9ef32df95aebe.zip | |
[TRACE] Fixed some issue with function name printing
Diffstat (limited to 'src/emu')
| -rw-r--r-- | src/emu/x64run_private.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emu/x64run_private.c b/src/emu/x64run_private.c index 74df225c..f94025ee 100644 --- a/src/emu/x64run_private.c +++ b/src/emu/x64run_private.c @@ -1098,7 +1098,10 @@ uintptr_t GetSegmentBaseEmu(x64emu_t* emu, int seg) const char* getAddrFunctionName(uintptr_t addr) { - static char ret[1000]; + static char rets[8][1000]; + static int idx = 0; + char* ret = rets[idx]; + idx = (idx+1)&7; uint64_t sz = 0; uintptr_t start = 0; elfheader_t* elf = FindElfAddress(my_context, addr); |