Opened 6 years ago

Closed 6 years 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:
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 6 years ago.

Download all attachments as: .zip

Change History (4)

by waddlesplash, 6 years ago

Attachment: test.cpp added

comment:1 by anevilyak, 6 years ago

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 by waddlesplash, 6 years ago

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

comment:3 by anevilyak, 6 years ago

Resolution: fixed
Status: newclosed

Should be fixed in hrev52188.

Note: See TracTickets for help on using tickets.