Debugger says "Source file unavailable" for structs/classes declared in method bodies
|Reported by:||waddlesplash||Owned by:||anevilyak|
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.