|
From: Patrick B. <be...@ce...> - 2005-01-24 16:10:17
|
On Monday 24 January 2005 12:57, Tom Hughes wrote:
> In message <200...@cd...>
>
> Patrick Bellasi <der...@cd...> wrote:
> > BUT: I would like to know what happens on 0x1BC77506 and 0x1BC79FB1!!!
> > Is it possible?!? How can I avoid debug symbol unloading for my
> > libraries?!?
>
> You can't - the reason is that the address might be reused later
> for a different library so valgrind wouldn't know which set of
> symbols to use.
>
> > NOTE: the code without debug symbols is always from my libs... even if
> > I've compiled with -g!!!
> > I load libs using into the simulator core that syscall:
> > useLib =3D dlopen( libname , RTLD_NOW | RTLD_GLOBAL );
>
> Presumably you then do a dlclose, which unmaps the library? If you
> can arrange for a debug mode where that doesn't happen then you can
> use that to prevent symbols being lost.
RIGHT!!!... Tks a lot: I've recompiled my simulator core commenting out the=
=20
dlclose call when I'm in debug mode and now, all symbols are availables to=
=20
valgrind... so I can view the full stacktrace...
> Tom
Tks again,
Patrick
=2D-=20
<--------------------------------------------------------------------------=
=2D------------------------------->
DERKLING
LRU 338214 (http://counter.li.org)
#include <best/regards.h>
<--------------------------------------------------------------------------=
=2D------------------------------->
Patrick Bellasi <derkling_at_users.sourceforge.net>
Student (Politecnico di Milano)
Comp.Sci & Soft.Eng
=20
Contacts:
- Room +39 02 23952621
- Home +39 0342 621043 (week-ends)
- ICQ 344672588
- MSN der...@em...
=20
Privacy:
- GnuPG 0x72ABC1EE (keyserver.linux.it)
pub 1024D/72ABC1EE 2003-12-04 Patrick Bellasi
(Zeus - Spektra System Administrator) <ze...@cd...>
Key fingerprint: 3958 7B5F 36EC D1F8 C752 9589 C3B7 FD49 72AB C1EE
<--------------------------------------------------------------------------=
=2D-------------------------------> =20
|