This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb problem with 'malloc' in unnamed namespace


On Tuesday 05 August 2008 14:39:45 you wrote:
> André Pönitz <apoenitz@trolltech.com> writes:
> 
> > So the 'malloc' from the debugged program is picked up by gdb, even if the
> > symbol name ("_ZN29_GLOBAL__N__00000000_271D34D06mallocEv") does
> > not match.
> 
> Note that symbol lookup also considers the demangled name, which matches
> here.

Well, "demangled" in a very C-ish sense: drop all namespace and parameter
information. The symbol name contains parameter information that might
be useful to determine that this is not a suitable kind of malloc:

...$ c++filt 
_ZN29_GLOBAL__N__00000000_271D34D06mallocEii
(anonymous namespace)::malloc(int, int)

Anyway, thanks for the great hint!

Regards,
André


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]