XP is just a number | |
PerlMonks |
Re: XS Debugging segmentation faultsby jsegal (Friar) |
on Jan 29, 2003 at 21:40 UTC ( [id://231104]=note: print w/replies, xml ) | Need Help?? |
It is definitely easier if you have the perl source available. It has been a long time since I have done this, but you should be able to compile it all with -g (and -DDEBUGGING) to enable the debugging stuff, and do
To make your life even easier, while you are recompiling your perl, link your .xs module in statically -- it will make setting breakpoints and the like easier, because your module will be loaded in from the get-go. Another little trick is to use the perl debugger too: Hitting Ctl-C from the perl debugging prompt will (or at least should...) drop you back down into the gdb prompt. (click here for a post showing an example of this trick in use...) It should also work with dbx or any other C-level debugger. Best of luck... --JAS
In Section
Seekers of Perl Wisdom
|
|