debugging - Are using a debugger and heavy usage of C++ templates incompatible in the long run? -


i'm working on project uses lot of templates , libraries boost:: fusion , found myself struggling executable that, of today, 600mb , gdb needs 1.7 gb of memory load it, , symbol lookup make use 3gbs.. stripped binary 5 mbs.

the question is, there done in order generate smaller debug symbols? not problem gdb linker, uses 1.2 gb of ram when linking objects compiled -g flag

i've tried -g1 -g2 , -g3 , problem remains same.

is there done in order generate smaller debug symbols?

you can use gnu gold linker --compress-debug-sections=zlib option instead of default ld linker compress output debug symbols. gdb supports compressed debug sections since 7.0 version.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -