From: sheepman Date: 2001-12-16T21:19:15+09:00 Subject: [ruby-talk:28671] NodeDump patch for ruby 1.7.2 Hello. In ruby 1.7.2 (2001-12-13) [i686-linux], the set_trace_func trick that NodeDump uses doesn't work well. This patch solves that. --- nodeDump.c~ Mon Aug 20 21:06:47 2001 +++ nodeDump.c Sun Dec 16 21:05:00 2001 @@ -686,17 +686,20 @@ doDump(ruby_eval_tree_begin, 0); } - doDump(n, 0); - printf("\n"); - return Qnil; + if(n){ + p("NodeDump V" ND_VERSION "\n\n"); + doDump(n, 0); + printf("\n"); + return Qnil; + } } static VALUE t_trigger(VALUE event, VALUE file, VALUE line, VALUE objId, VALUE binding, VALUE klass) { - p("NodeDump V" ND_VERSION "\n\n"); - t_dump(); - exit(1); + if(t_dump()){ + exit(1); + } } Regards, -- sheepman / TAMURA Takashi sheepman@tcn.zaq.ne.jp http://www.tcn.zaq.ne.jp/sheepman/ Key fingerprint = 4E13 FE38 CD73 48D3 38AE 00EE 9E28 F98B D569 848E