Reply to topic  [ 2 posts ] 
p_xhandler missing? 
Author Message
Yorick Master

Joined: Tue Mar 07, 2006 10:31 pm
Posts: 125
Location: Meudon, France
Post p_xhandler missing?
I'm trying to catch errors and signals from my compiled code.

I figured I should probably try p_xhandler. However, yorick segfaults on me when I do that.

gdb tells me that:
/home/thibaut/git/yorick-02x/bin/yorick: symbol lookup error: /home/thibaut/git/yorick-gtk/ undefined symbol: p_xhandler

thibaut@b-wing:~/git/yorick$ objdump -t yorick/yorick | grep handler
0000000000000000 l    df *ABS*   0000000000000000              handler.c
0000000000714aa0 l     O .bss   0000000000000008              poll_handler
000000000043f5c1 g     F .text   0000000000000079              p_handler
00000000004d0704 g     F .text   000000000000007a              x_err_handler
thibaut@b-wing:~/git/yorick$ objdump -t yorick/yorick | grep ugetc

No p_xhandler symbol, no ugetc.c file included in my yorick binary!

Regards, Thibaut.

Tue Apr 09, 2013 8:55 am
Profile WWW
Yorick Master

Joined: Mon Nov 22, 2004 9:43 am
Posts: 354
Location: Livermore, CA, USA
Post Re: p_xhandler missing?
Sorry about the lack of documentation. The play/pmin.h interface was for codes other than yorick to be able to use play. It isn't present because yorick doesn't build it. If you are using yorick, you can't call p_handler at all -- yorick needs to own that. There is no portable way to break into the yorick event loop -- you have to implement such a hack differently on windows than on unix. The APIs you need are u_event_src in play/unix/playu.h and w_add_input in play/win/playw.h.

In the case of GTK+, my plan was to write a play layer in a sibling play/gtk/ of play/unix/ and play/win/, which implements the whole play/play.h API in GTK+. This play implementation would be portable, but of course it sucks in a tremendous number of dependencies.

Fri May 17, 2013 8:31 pm
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.