Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/link: DW_AT_name should come from source code #13949
gc is not generating DW_AT_name according to the spec.
These should all be the linkage_name.
We should probably represent packages as DW_TAG_namespace. Functions and types should be children of the package. Methods should be children of the type. Anonymous functions should only have a linkage_name and not a DW_AT_name.
It would also be good to fix variables to represent what's in the source, e.g. no '&foo'.