summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-15 15:59:59 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-15 15:59:59 +0000
commit4decaa2678de2ac9c0de10565f62fe6063d7cc57 (patch)
treef187241c650256e77e2bf99c5ecd09c69fc20617
parentda99f9527e8eb437fea7928c6729a3bdaef088d9 (diff)
downloadruby-4decaa2678de2ac9c0de10565f62fe6063d7cc57.tar.gz
ruby-4decaa2678de2ac9c0de10565f62fe6063d7cc57.tar.xz
ruby-4decaa2678de2ac9c0de10565f62fe6063d7cc57.zip
* lib/debug.rb: as wanabe-san pointed out,
set_trace_func should be completely final task in debug.rb. Bug #847 [ruby-core:20449] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--lib/debug.rb6
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 41278cb7c..84fa3c3cf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Jan 16 00:57:34 2009 Koichi Sasada <ko1@atdot.net>
+
+ * lib/debug.rb: as wanabe-san pointed out,
+ set_trace_func should be completely final task in debug.rb.
+ Bug #847 [ruby-core:20449]
+
Fri Jan 16 00:27:03 2009 Koichi Sasada <ko1@atdot.net>
* vm.c (rb_vm_inc_const_missing_count, ruby_vm_const_missing_count):
diff --git a/lib/debug.rb b/lib/debug.rb
index 77be345a0..7bb145019 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -898,10 +898,10 @@ end
stdout.printf "Debug.rb\n"
stdout.printf "Emacs support available.\n\n"
-set_trace_func proc { |event, file, line, id, binding, klass, *rest|
- DEBUGGER__.context.trace_func event, file, line, id, binding, klass
-}
RubyVM::InstructionSequence.compile_option = {
trace_instruction: true
}
+set_trace_func proc { |event, file, line, id, binding, klass, *rest|
+ DEBUGGER__.context.trace_func event, file, line, id, binding, klass
+}
end