I'm trying to debug a shared library loaded and can't seem to get gdb to
see the library symbols. This is on an Intel based machine running
RedHat 6.1 with a custom kernel.

The app is glxsimple which links against libGL.so. This library dlopen's
i81xgicd.so which in turn dlopen's i810gdev.so. After libGL.so dlopen's
i81xgicd.so, I can set break points in i81xgicd.so, but I can't set
break points in i810gdev.so after it is dlopen'ed.

If I run "gdb glxsimple" and wait for it to seg fault. "info shared"
lists
(gdb) info shared
>From        To          Syms Read   Shared Object Library
0x40013000  0x4006808c  Yes         /home/ctuffli/XF4/lib/libGL.so.1
0x4006a000  0x4012ce1c  Yes         /home/ctuffli/XF4/lib/libX11.so.6
0x40131000  0x402238dc  Yes         /lib/libc.so.6
0x40224000  0x40234e44  Yes         /lib/libpthread.so.0
0x40235000  0x4024197c  Yes         /home/ctuffli/XF4/lib/libXext.so.6
0x40242000  0x40244d0c  Yes         /lib/libdl.so.2
0x40000000  0x400126b0  Yes         /lib/ld-linux.so.2
0x40246000  0x4048ae08  Yes         /home/ctuffli/i81xgicd.so
0x00000000  0x404a6fd8  Yes         /lib/libm.so.6

but not i810gdev.so

If I let glxsimple segfault outside of gdb and run "gdb glxsimple core",
"info shared" lists
(gdb) info shared
>From        To          Syms Read   Shared Object Library
...
0x404a7000  0x40502d30  Yes         /home/ctuffli/XF4/lib/i810gdev.so

Any idea what is wrong or what else I should try? Thanks!

---chuck



Sent via Deja.com http://www.deja.com/
Before you buy.

Reply via email to