* lib/debug.rb: revert command parse regexps. [ruby-list:39014] by

Shirai,Kaoru.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nahi 2004-01-07 03:42:00 +00:00
Родитель 0ea74ce4e7
Коммит 796ca6f201
2 изменённых файлов: 10 добавлений и 5 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Wed Jan 7 12:35:41 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>
* lib/debug.rb: revert command parse regexps. [ruby-list:39014] by
Shirai,Kaoru.
Wed Jan 7 08:21:04 2004 Dave Thomas <dave@pragprog.com> Wed Jan 7 08:21:04 2004 Dave Thomas <dave@pragprog.com>
* lib/rdoc/parsers/parserfactory.rb: Check for shebang * lib/rdoc/parsers/parserfactory.rb: Check for shebang

Просмотреть файл

@ -507,21 +507,21 @@ class Context
exit! # exit -> exit!: No graceful way to stop threads... exit! # exit -> exit!: No graceful way to stop threads...
end end
when /^\s*v(?:ar)?\s+$/ when /^\s*v(?:ar)?\s+/
debug_variable_info($', binding) debug_variable_info($', binding)
when /^\s*m(?:ethod)?\s+$/ when /^\s*m(?:ethod)?\s+/
debug_method_info($', binding) debug_method_info($', binding)
when /^\s*th(?:read)?\s+$/ when /^\s*th(?:read)?\s+/
if DEBUGGER__.debug_thread_info($', binding) == :cont if DEBUGGER__.debug_thread_info($', binding) == :cont
prompt = false prompt = false
end end
when /^\s*pp\s+$/ when /^\s*pp\s+/
PP.pp(debug_eval($', binding), stdout) PP.pp(debug_eval($', binding), stdout)
when /^\s*p\s+$/ when /^\s*p\s+/
stdout.printf "%s\n", debug_eval($', binding).inspect stdout.printf "%s\n", debug_eval($', binding).inspect
when /^\s*h(?:elp)?$/ when /^\s*h(?:elp)?$/