I want to use rb_p() to aid in debugging a ruby C extension, but everytime i use it i get a SIGTRAP in gdb!
here's an example:
(gdb) p user_defaults
$3 = 137559900
(gdb) call rb_p(user_defaults)
{:fill=>true, :texture=>#}
(gdb) n
Program received signal SIGTRAP, Trace/breakpoint trap. is_a_hash (try_hash=137560420) at utils.c:65 (gdb)
why does this happen? how can i stop it happening??