When I load a trace file using the target tfile command, I get messages of the type: Tracepoint 1 at 0x1157: file ... Created tracepoint 1 for target's tracepoint 1 at 0x555555555157. Then when I try to look at a frame using tfind start, I get: Found trace frame 0, tracepoint 1 #0 0x0000555555555157 in ?? () If I add the symbol file with the difference displayed by the message 0x555555555157 - 0x1157 = 0x555555554000: add-symbol-file ./trace_test -o 0x555555554000 Then the frame works: (gdb) tfind start Found trace frame 0, tracepoint 3 #0 foo (a=33, b=4) at /home/juangburgos/Documents/REPOS/trace_test/main.cpp:3 3 return a + b + b; But I would expect GDB to correct this offset by itself, as I believe the user should not be expected to compute the offset manually and reload the symbols every time. See this stackoverflow question for more details: https://stackoverflow.com/questions/77148274/gdb-tracing-loaded-trace-file-does-not-display-frame-correctly Thanks,
Using GNU gdb (GDB) 14.0.50.20230730-git