Search code examples
gdbx11xlibxorg

xlib integrated debugging (Tracing)


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.

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


Solution

  • 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.