You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across the symbolization support page for cpp and the steps documented to add debug information. There are a couple of options in clang and gcc which can be more effective.
The -g (equivalent to -g2) flag generates a lot of debug information, most of which is unnecessary for symbolization. You can reduce the amount of debug information to only line tables by using -gmlt or -g1.
The -gsplit-dwarf flag can generate debug information in a separate file. This helps reduce memory (and time) when linking large binaries with debug information in them. The debug information for each object file is placed in a .dwo file which can then be linked together to a single .dwp file. I believe this will save the objcopy steps.
Have you considered using these options?
The text was updated successfully, but these errors were encountered:
The -g (equivalent to -g2) flag generates a lot of debug information, most of which is unnecessary for symbolization. You can reduce the amount of debug information to only line tables by using -gmlt or -g1.
Absolutely, line tables are sufficient for our purposes. I'll make sure we adapt the docs here!
The -gsplit-dwarf flag can generate debug information in a separate file. This helps reduce memory (and time) when linking large binaries with debug information in them. The debug information for each object file is placed in a .dwo file which can then be linked together to a single .dwp file. I believe this will save the objcopy steps.
At the moment we don't support dwarf packages, but we definitely want to!
I came across the symbolization support page for cpp and the steps documented to add debug information. There are a couple of options in clang and gcc which can be more effective.
The
-g
(equivalent to-g2
) flag generates a lot of debug information, most of which is unnecessary for symbolization. You can reduce the amount of debug information to only line tables by using-gmlt
or-g1
.The
-gsplit-dwarf
flag can generate debug information in a separate file. This helps reduce memory (and time) when linking large binaries with debug information in them. The debug information for each object file is placed in a.dwo
file which can then be linked together to a single.dwp
file. I believe this will save the objcopy steps.Have you considered using these options?
The text was updated successfully, but these errors were encountered: