On Sat, 10 Dec 2005, Tassilo von Parseval wrote:

> One other small thing: I remember I once managed to properly debug XS
> modules under gdb but somehow I seem to have lost this ability. Whenever
> I try to set a breakpoint, I get:
> 
>     (gdb) break Lib.xs:380
>     No symbol table is loaded.  Use the "file" command.
> 

Newer gdb versions handle deferred breakpoints, but in the past I've 
created a "do nothing" xs routine which sends itself a SIGUSR2 and called 
that from a Perl before doing anything meaningful with the extension.  
When it breaks into the debugger, everything is loaded and you can set the 
"real" breakpoint and continue.

Steve

Reply via email to