#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


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 13 months ago.

Download all attachments as: .zip

Change History (4)

Changed 13 months ago by waddlesplash

Attachment: test.cpp added

comment:1 Changed 13 months 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 months ago by waddlesplash

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

comment:3 Changed 13 months ago by anevilyak

Resolution: fixed
Status: newclosed

Should be fixed in hrev52188.

Note: See TracTickets for help on using tickets.