tags:

views:

19

answers:

1

Hello

Is there any debugging options built-in in the Xlib (libX11.so)? Can I get list of X11 lib calls?

I want to get full trace of xlib function calls from heavy-multithreaded, closed-source program. It is one not-public embedded platform, so I can't use gdb for multithreaded debugging and there is no ltrace on the platform. Also, this program can't connect to x server over tcp/ip, only unix-socket. I want to do tracing of xlib calls from xlib itself.

Thanks!

ps. Xlib from rather modern xfree or even xorg. from gnu linux

+2  A: 

You may be able to use xscope to monitor the requests sent over a Unix socket, even when you can't send the X protocol over TCP to be able to use network monitoring tools like Wireshark.

alanc
hello. will wireshark decode x functions calls?Is xscope included in default xfree - x.org? which versions?
osgx
Wireshark, like xscope, decodes X protocol requests, not library function calls. xscope is available from X.Org, but not all distributors include it in their package set. (Since X11R7.0, X.Org distributes each application separately and lets builders decide which to include, so there isn't really "in default X.Org" these days. No one really uses XFree86 any more.)
alanc
@alanc, there are a lot of linux distributions and some of them are not updated for a long time :)
osgx