[Xcb] xlibs --with-xcb unbroken

Josh Triplett josh at freedesktop.org
Sun Feb 13 17:15:52 PST 2005


Jamey Sharp wrote:
> On Sat, Feb 12, 2005 at 09:35:55AM +0100, Bernardo Innocenti wrote:
>>Is there an easy way to dump the X protocol in human readable format?
>
> Depends on your definitions of "easy" and "human". ;-)
>
> xscope is probably the best answer right now. The only source I know for
> it is the xscope module in Keith's CVS repository:
> 	http://keithp.com/cvs.html
>
> xscope has a number of problems, including that it often changes the
> behavior of the client or server under study, and that it can be a
> little bit difficult to set up. You can use Ethereal's X11 protocol
> dissector instead, for a non-invasive examination; unfortunately, that
> didn't handle X replies well, last I checked.
>
> Josh, maybe you want to say something about your work in this area?

I haven't tried xscope yet.

When I tried the Ethereal X11 protocol dissector, it actually did just
fine for requests, replies, events, and errors, for the core protocol
only.  However, I believe it assumed that the connection was one handled
by the standard Xlib, in that only one non-void request could be waiting
for a reply at any given time.  Fortunately, I believe an app on an
XCB-based Xlib has this same property: any request with a reply is done
synchronously.

I'm currently working on Xamine, a library for dissecting the X
protocol, and this project includes the beginnings of an Ethereal
protocol dissector based on Xamine.  Xamine uses the XML-XCB protocol
descriptions, so you'll be able to dissect any part of the protocol with
an XML descriptions.  However, Xamine is not yet in a usable state.

I recommend trying the Ethereal protocol dissector: just force the X
packets to go over the loopback network interface rather than the UNIX
socket, and have Ethereal running.

- Josh Triplett
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20050213/4ac10467/signature.pgp


More information about the xcb mailing list