public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/30876] New: Frames not displayed correctly for target tfile
@ 2023-09-21 15:22 juangburgos at gmail dot com
  2023-09-21 15:24 ` [Bug breakpoints/30876] " juangburgos at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: juangburgos at gmail dot com @ 2023-09-21 15:22 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30876

            Bug ID: 30876
           Summary: Frames not displayed correctly for target tfile
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: breakpoints
          Assignee: unassigned at sourceware dot org
          Reporter: juangburgos at gmail dot com
  Target Milestone: ---

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,

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug breakpoints/30876] Frames not displayed correctly for target tfile
  2023-09-21 15:22 [Bug breakpoints/30876] New: Frames not displayed correctly for target tfile juangburgos at gmail dot com
@ 2023-09-21 15:24 ` juangburgos at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: juangburgos at gmail dot com @ 2023-09-21 15:24 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30876

--- Comment #1 from Juan Gonzalez Burgos <juangburgos at gmail dot com> ---
Using GNU gdb (GDB) 14.0.50.20230730-git

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-21 15:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-21 15:22 [Bug breakpoints/30876] New: Frames not displayed correctly for target tfile juangburgos at gmail dot com
2023-09-21 15:24 ` [Bug breakpoints/30876] " juangburgos at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).