[JDEV] The flow when a jabber:iq:register packet coming

Robert Norris rob at cataclysm.cx
Wed Jun 18 19:21:11 CDT 2003


>  At step 5, it will context switch to pthsock_client_read () at eval.c:41.
>  But I cannot find eval.c file, and pthsock_client_read was found in  /pthsock/client.c. 
>  My question listed as following:
>  1. Where is the eval.c resided in? I can't set breakpoint at this.

I have no idea. pthsock_client_read() is indeed in pthsock/client.c.
Does it work to simply set a breakpoint there?

>  2. Why can I not find any threads when I tyep "info threads" in GDB? 

jabberd uses GNU Pth for threading, which are cooperative userspace
threads. "info threads" gives information about kernel threads
(pthreads), which aren't used.

Rob.

-- 
Robert Norris                                       GPG: 1024D/FC18E6C2
Email+Jabber: rob at cataclysm.cx                Web: http://cataclysm.cx/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20030619/3458bf19/attachment-0002.pgp>


More information about the JDev mailing list