|
From: Nicholas N. <n.n...@gm...> - 2009-10-01 20:58:16
|
On Fri, Oct 2, 2009 at 1:44 AM, Alexander Potapenko <gl...@go...> wrote: > Oh, and running the same binary without any suppressions and the > demangling turned off prints the following report: > > $ valgrind --demangle=no ./merror > ... > ==9457== Conditional jump or move depends on uninitialised value(s) > ==9457== at 0x1F7B: _ZN3Foo3barEv (in ./merror) > ==9457== by 0x1F2A: main (in ./merror) > ... > > That means that the same internal representation of the function name > is printed, while the real function name is: > > $ nm merror | grep _ZN3Foo3barEv > 00001f32 T __ZN3Foo3barEv > > The only difference is in the leading underscore, but I still find > this a bit confusing. For some reason all symbols end up getting an additional leading underscore added to them on Mac. Valgrind avoids printing this so that the symbol matches the one in the original program. Nick |