[Issue 22590] importC: static functions have no debug information generated for them

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 18 21:13:45 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22590

--- Comment #9 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Walter Bright from comment #8)
> > two functions, main and test_static
> 
> It's always nice to not make me guess what the functions are. I ask because
> too many times I've guessed at what the problem code was, and could not
> duplicate the problem because the trigger for the problem was other than
> what the submitter thought it was.

Because it doesn't matter what the function is, the only thing you need to do
is add `static ` to any function, and try running a gdb over it.

As I've pointed out, SDsym is not being set for SCstatic functions.  Commenting
out the above linked code and debugging static functions suddenly works.

--


More information about the Digitalmars-d-bugs mailing list