Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: omit args_stackmap and maybe others from DWARF #20462
I don't see how these could ever arise in a debugging context; they're purely internals with no associated variables.
Depending on how many of these there are, it might be worth a bit of effort to avoid generating them.
We do read some internal stuff, specifically
And just by coincidence, a heap viewer tool I've seen (that I'm not going to link here because I'm not sure the author wants it publicized) actually uses runtime.enoptrbss too. I think it's going to be very difficult to reliably predict whether a given field/type is useful or not.
It's sort of funny that a format as size-obsessed as DWARF has no way to reference a string from the symbol table. Not that I'd want to write that linker code.
...I wonder if you could declare a .debug_str section that overlapped .strtab...