Add an API to read external target memory.

ReadExternalTargetMemory reads bytes out of the target's address space:
process_vm_readv for live bytes (gated like ptrace access), falling back
to the target's on-disk image located by scanning /proc/<pid>/maps
directly - the caller runs while the symbol thread may be rebuilding the
shared image cache on refresh.
This commit is contained in:
Bartosz Taudul
2026-08-30 16:16:57 +02:00
parent 1f1d3ab856
commit d8a011630d
2 changed files with 71 additions and 0 deletions

View File

@@ -93,6 +93,8 @@ bool InitExternalTarget( pid_t targetPid );
uint32_t GetExternalTargetPid();
const char* GetExternalTargetName();
uint64_t GetExternalTargetExeTime();
size_t ReadExternalTargetMemory( uint64_t addr, uint32_t size, char* buf );
#endif
#ifdef TRACY_DEBUGINFOD