Opened 2 weeks ago

Closed 13 days ago

#14321 closed bug (fixed)

Debugger says "Source file unavailable" for structs/classes declared in method bodies

Reported by: waddlesplash Owned by: anevilyak
Priority: normal Milestone: Unscheduled
Component: Applications/Debugger Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Ran into this one while attempting to debug a PackageKit problem.

Test file attached. As you can see, it triggers Debugger inside an operator() inside a struct that is declared within a function, the same way this is sometimes done in PackageKit.

When compiled with -g, run, and then attaching Debugger after the crash dialog shows, and then selecting the method call above the debugger call, only disassembly is shown with "Source file unavailable." If you go one up the call stack into main(), then source is displayed just fine.

hrev52135, gcc2h.

Attachments (1)

test.cpp (315 bytes) - added by waddlesplash 2 weeks ago.

Download all attachments as: .zip

Change History (4)

Changed 2 weeks ago by waddlesplash

Attachment: test.cpp added

comment:1 Changed 2 weeks ago by anevilyak

Would be interesting to know if the same issue is seen with gcc7 or not. It'll be a while before I can look into it in any case, owing to some technical problems.

comment:2 Changed 13 days ago by waddlesplash

Same issue with GCC7, indeed. The function's mangled name shows up properly in the callstack, though.

comment:3 Changed 13 days ago by anevilyak

Resolution: fixed
Status: newclosed

Should be fixed in hrev52188.

Note: See TracTickets for help on using tickets.