in reply to XS Debugging segmentation faults
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.gdb /my/debugging/perl (gdb) run my_script my_args
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...)gdb /my/debugging/perl (gdb) run -d my_script my_args
|
|---|