Function names missing when compiled with -O3
Status: Beta
Brought to you by:
weidendo
When I compile with gcc with optimization -O3 and -g
and run cachegrind function names are missing in
cachegrind out file. Kcachegrind says: no debugging
info in executable. Same with -O2 option has function
names.
objdump --disassemble still has names on all functions
so it was debug info there.
Yuri (yuri at REMOVEtsoftALL dot CAPITALScom)
Logged In: YES
user_id=129507
I identified the cause of the problem: my executable is very
large: 271MB with debug ingo, 20x smaller w/out debug info.
So in valgrind VG_(find_map_space) returns NULL on such size
for some reason. For smaller executables it works.