From 81fda3d0caeb22cdb25526dd2ada353907ca2f89 Mon Sep 17 00:00:00 2001 From: rocky Date: Tue, 15 Mar 2011 00:00:52 -0400 Subject: [PATCH] Get ready for release. --- ChangeLog | 1514 ++++++++++++++++++++++++++++++++++++++++++++--------- NEWS | 15 + 2 files changed, 1294 insertions(+), 235 deletions(-) diff --git a/ChangeLog b/ChangeLog index 38dfe1a..6f13c12 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,801 @@ +2011-03-12 rocky + + * processor/command/help/command.txt, trepanning.gemspec: tabke -> + table + +2011-03-12 rocky + + * test/unit/test-completion.rb: Comment out debug test + +2011-03-12 rocky + + * processor/command/help.rb, processor/command/help/README, + processor/command/help/command.txt, + processor/command/help/filename.txt, + processor/command/help/filenames.txt, + processor/command/help/location.txt, test/unit/test-completion.rb: + Fix duplicate command completion of "help syntax". Help updated. + +2011-03-12 rocky + + * processor/command/help.rb, processor/command/help/command.txt, + processor/command/help/filenames.txt, + processor/command/help/syntax.txt, processor/help.rb: Start + multi-level "help syntax" + +2011-03-12 rocky + + * app/cmd_parse.kpeg, app/cmd_parser.rb, + processor/command/help/.gitignore, + processor/command/help/location.txt, + processor/command/info_subcmd/files.rb, processor/location.rb, + processor/validate.rb, test/unit/test-proc-validate.rb: File parsing + imporved to allow quoted strings. Sync with rb-trepanning. + +2011-03-11 rocky + + * processor/command/help/.gitignore, + processor/command/help/filenames.txt, + test/unit/test-app-cmd_parser.rb, test/unit/test-app-iseq.rb: Clean + up filename parsing somewhat. + +2011-03-10 rocky + + * app/cmd_parser.rb, processor/command/help.rb, + processor/command/help/location.txt, + processor/command/help/syntax.txt, + processor/command/info_subcmd/breakpoints.rb, processor/validate.rb: + Start moving text help, to text files. + +2011-03-10 rocky + + * processor/command/continue.rb, processor/validate.rb, + test/functional/test-break-long.rb, test/functional/test-break.rb: + continue.rb: chase API change. validate.rb: remove crud. + +2011-03-10 rocky + + * processor/validate.rb: Small sync with rbx-trepanning + +2011-03-10 rocky + + * app/cmd_parse.rb: Small change + +2011-03-09 rocky + + * app/cmd_parse.rb, processor/validate.rb: Small changes + +2011-03-09 rocky + + * app/cmd_parse.kpeg, processor/command/break.rb, + processor/command/condition.rb, processor/command/continue.rb: + Update help for break, condition, conditinue + +2011-03-09 rocky + + * app/breakpoint.rb, app/cmd_parse.kpeg, app/cmd_parser.rb, + processor/command/info_subcmd/breakpoints.rb, processor/validate.rb: + Conditions working properly now and we show "if/unless" properly in + "info break" as well. + +2011-03-09 rocky + + * app/breakpoint.rb, app/cmd_parse.kpeg, app/cmd_parse.rb, + app/cmd_parser.rb, processor/breakpoint.rb, + processor/command/break.rb, processor/command/continue.rb, + processor/validate.rb: Add 'break [ {"if" | "else} + ]. condition now uses position parsing as well. Revise + grammar for future use for "list". + +2011-03-08 rocky + + * processor/command/info_subcmd/frame.rb: Add frame # in info frame + + +2011-03-07 rocky + + * Rakefile, app/file.rb, app/iseq.rb, processor/validate.rb, + test/data/testing.cmd, test/example/debugger-stop.rb, + test/functional/fn_helper.rb, test/functional/test-break.rb, + test/functional/test-condition.rb, test/functional/test-delete.rb: + All functional, integration and unit tests work again after KPEG + refactoring + +2011-03-07 rocky + + * app/file.rb, app/iseq.rb, processor/command/break.rb, + processor/main.rb, processor/validate.rb: Split out instruction + sequence code. More will be coming later. + +2011-03-07 rocky + + Merge branch 'master' of github.com:rocky/rb-trepanning + +2011-03-07 rocky + + * app/breakpoint.rb: Raise an error if we can't set a breakpoint. + +2011-03-07 rocky + + * app/file.rb, processor/validate.rb, test/unit/test-cmd-break.rb: + Address better finding line numbers for a file or starting + instruction sequence. + +2011-03-07 rocky + + Merge branch 'master' of github.com:rocky/rb-trepanning + +2011-03-07 rocky + + * app/file.rb: Search child iseqs in finding breakpoint line number + of for a file. + +2011-03-07 rocky + + * app/cmd_parse.kpeg, app/cmd_parse.rb, app/cmd_parser.rb, + app/file.rb, processor/command/break.rb, processor/validate.rb, + test/unit/test-app-brkpt.rb, test/unit/test-app-cmd_parse.rb, + test/unit/test-cmd-break.rb: Really dumb mistakes in PEG grammar. + Unit tests now work with one skip which needs further investation as + to why it worked before. + +2011-03-07 rocky + + * app/cmd_parse.kpeg, app/cmd_parse.rb, app/cmd_parser.rb, + app/irb.rb, data/debugger-stop.right, processor/validate.rb, + test/unit/test-proc-validate.rb: Partial cutover of uing KPEG for to + parse locations + +2011-03-06 rocky + + * processor/location.rb: Remove some small crud + +2011-03-06 rocky + + * processor/location.rb, processor/main.rb, + test/unit/test-proc-location.rb: Fix another bug; this time in + get_source_text + +2011-03-06 rvm + + * data/debugger-stop.right, lib/trepanning.rb, + test/data/debugger-stop.cmd, test/data/debugger-stop.right, + test/example/debugger-stop.rb, test/integration/helper.rb, + test/integration/test-debugger-stop.rb: ignore Module#debugger as + well as Kernel#debugger in filtered stop. + +2011-03-05 rocky + + * test/unit/test-app-options.rb: Remove tempfile in unit test + +2011-03-05 rocky + + * processor/command/restart.rb, processor/command/save.rb, + processor/load_cmds.rb: Sync with rbx-trepanning + +2011-03-05 rocky + + * processor/command/base/submgr.rb: Remove Extraneous debug + statement (proving I use this on itself) + +2011-03-05 rocky + + * app/default.rb, app/options.rb, bin/trepan, lib/trepanning.rb, + processor/command/base/submgr.rb, processor/command/restart.rb, + processor/command/save.rb, processor/command/set_subcmd/trace.rb, + processor/command/set_subcmd/trace_subcmd/buffer.rb, + processor/command/set_subcmd/trace_subcmd/var.rb, + processor/load_cmds.rb: Save/restore of debugger state across a + restart finally works! + +2011-03-05 rocky + + Merge branch 'master' of github.com:rocky/rb-trepanning + +2011-03-05 rocky + + * processor/command/base/submgr.rb, processor/command/save.rb, + processor/command/set_subcmd/trace.rb, + processor/command/set_subcmd/trace_subcmd/print.rb, + processor/command/set_subcmd/trace_subcmd/var.rb: Towards getting + restart to erase its startup file + +2011-03-05 rocky + + * processor/command/base/submgr.rb, processor/command/save.rb, + processor/command/set_subcmd/trace.rb, + processor/command/set_subcmd/trace_subcmd/print.rb, + processor/command/set_subcmd/trace_subcmd/var.rb: Towards getting + restart to erase itself + +2011-03-04 rocky + + * Rakefile, app/cmd_parse.kpeg, app/cmd_parser.rb: Fill out + location. File/Method names and Line/VM offsets. Not hooked into + debugger commands yet. + +2011-03-04 rocky + + * Rakefile: Sync Rakefile with rbx-trepanning + +2011-03-04 rocky + + * Rakefile, app/cmd_parse.kpeg: Add rake tasks to help with kpeg. + +2011-03-04 rocky + + * Rakefile, app/cmd_parse.kpeg, app/cmd_parse.rb, + app/cmd_parser.rb, processor/validate.rb, + test/unit/test-app-cmd_parse.rb, trepanning.gemspec: Used KPeg + instead of Citrus as our PEG. + +2011-03-02 rocky + + * processor/command/eval.rb: Sync with rbx-trepanning + +2011-03-02 rocky + + I hate conflicted merges + +2011-03-02 rocky + + * processor/command/eval.rb, processor/eval.rb, + test/functional/test-eval.rb, test/functional/test-raise.rb, + test/functional/test-return.rb, test/unit/test-proc-main.rb: Add to + eval? stripping "unless" and optional "then". + +2011-02-28 rocky + + * app/brkptmgr.rb, processor/breakpoint.rb, + processor/command/eval.rb, processor/main.rb: In "eval?" extract + expression in "case", and echo that. Add CmdProcessor finalization + and in that remove breakpoints. + +2011-02-26 rocky + + * app/cmd_parse.citrus, app/cmd_parse.rb, + test/unit/test-app-cmd_parse.rb: Add more location semantics. + +2011-02-25 rocky + + * processor/validate.rb, test/unit/test-app-cmd_parse.rb, + test/unit/test-app-method_name.rb: Add location parse tests + +2011-02-25 rocky + + * app/cmd_parse.citrus, app/cmd_parse.rb: Start filling out location + + +2011-02-25 rocky + + * app/cmd_parse.citrus, app/cmd_parse.rb, app/method_name.citrus, + app/method_name.rb: method_name -> cmd_parse to allow expansion + +2011-02-25 rocky + + Merge branch 'master' of github.com:rocky/rb-trepanning + +2011-02-25 rocky + + * processor/command/break.rb, processor/validate.rb, + test/unit/test-cmd-break.rb, test/unit/test-proc-validate.rb: An + instruction offset is now indicated with an `@' prefact rather than + 'O' or `o'. + +2011-02-25 rocky + + * processor/command/eval.rb, test/functional/test-eval.rb: In eval? + we now also strip a leading 'return'. + +2011-02-25 rocky + + Merge branch 'master' of github.com:rocky/rb-trepanning + +2011-02-25 rocky + + * app/method_name.rb: Partial synchronize with rbx-trepanning. + +2011-02-23 rocky + + * processor/command/alias.rb, processor/command/base/subsubcmd.rb, + processor/command/exit.rb, processor/command/restart.rb, + processor/command/show.rb, + processor/command/show_subcmd/trace_subcmd/buffer.rb, + test/unit/test-base-subcmd.rb, test/unit/test-base-subsubcmd.rb: + Call cmdproc finalization routine on exit and restart. Mention "show + alias" in alias help. Fix prefix for "show trace buffer". Sync with + rbx-trepanning. + +2011-02-22 rocky + + * app/condition.rb, test/unit/test-app-condition.rb, + trepanning.gemspec: .gemspec -> trepanning.gemspec + +2011-02-21 rocky + + * .gemspec, Rakefile, processor/command/source.rb: Use file + completion in "source" command. .gemspec -> trepanning.gemspec: I + don't like hidden .dotted names anyway. + +2011-02-20 rocky + + * processor/command/backtrace.rb, processor/command/down.rb, + processor/command/frame.rb, processor/command/up.rb, + processor/frame.rb: Improve range checking on frame, up and down + commands. + +2011-02-19 rocky + + * processor/command/kill.rb: Add kill! alias and update help + +2011-02-19 rocky + + * processor/command/kill.rb: Add completion for "kill" command + +2011-02-19 rocky + + * processor/command/base/subcmd.rb, + processor/command/info_subcmd/files.rb, + processor/command/info_subcmd/frame.rb, + processor/command/info_subcmd/iseq.rb, + processor/command/info_subcmd/registers.rb, + processor/command/info_subcmd/ruby.rb, + processor/command/set_subcmd/trace_subcmd/buffer.rb, + processor/command/set_subcmd/trace_subcmd/print.rb, + processor/command/show_subcmd/alias.rb, + processor/command/show_subcmd/macro.rb, + processor/command/show_subcmd/trace_subcmd/print.rb: Set CMD for + subcommands in one place. DRY code. + +2011-02-19 rocky + + * processor/eventbuf.rb: Update copyright + +2011-02-19 rocky + + * processor/eventbuf.rb: Update LineCache::getline call from API to + current one. + +2011-02-19 rocky + + * processor/command/backtrace.rb, processor/command/frame.rb, + processor/command/up.rb, processor/frame.rb: Add frame number + completion. Why not? + +2011-02-19 rocky + + * processor/command/show_subcmd/alias.rb: Add completion for "show + aliases" + +2011-02-18 rocky + + * processor/command/eval.rb, processor/command/macro.rb, + processor/command/show_subcmd/macro.rb, processor/main.rb, + processor/msg.rb: show macros improvements: uses syntax highlighting + if requested. Add "show macro *" and show-macro long help. + +2011-02-18 rocky + + * processor/command/eval.rb, processor/command/macro.rb, + processor/location.rb: Eval source text without leading if, elsif + while, or unitil Add aliases eval?, ev? and ev. + +2011-02-18 rocky + + * app/core.rb: Change default event set. + +2011-02-18 rocky + + * lib/trepanning.rb, processor/command/complete.rb, + processor/main.rb: Sync with rb-trepanning. Had broken "complete" + command in refactoring. + +2011-02-18 rocky + + * app/complete.rb, app/frame.rb, lib/trepanning.rb, + processor/command/base/subsubcmd.rb, + processor/command/base/subsubmgr.rb, + processor/command/set_subcmd/different.rb, processor/load_cmds.rb, + test/unit/test-app-complete.rb, test/unit/test-completion.rb, + test/unit/test-proc-load_cmds.rb: Redo completion somewhat to be + more general and much input line when there are abreviations less. + +2011-02-16 rocky + + * app/default.rb, app/run.rb, interface/user.rb, io/input.rb, + processor/load_cmds.rb, test/unit/test-app-options.rb, + test/unit/test-completion.rb: Completion was totally borked and so + was handling of Readline. Fix. Fix completion of aliases and test + for that now. Sync with rbx-trepanning. + +2011-02-15 rocky + + * Rakefile: Rakefile: a tad nicer simpler + +2011-02-15 rocky + + * Rakefile: Gemspec#file_name is what I need + +2011-02-15 rocky + + * app/options.rb: Sync with rbx-trepanning + +2011-02-15 rocky + + * NEWS, app/options.rb, bin/trepan, interface/user.rb, io/input.rb, + lib/trepanning.rb, processor/validate.rb: add --readline and + --no-readline options to trepanx validate.rb: fix bug get_and_int + error msg handling + +2011-02-14 rocky + + Merge branch 'master' of github.com:rocky/rb-trepanning + +2011-02-14 rocky + + * processor/command/help.rb, processor/command/macro.rb, + processor/main.rb, processor/running.rb: macro.rb: Macros are more + useful now. An array of strings pushes additional commands on the + command queue. help.rb: Show aliases and macros in help *. Add help + for exach of these individually. + +2011-02-14 rocky + + * processor/command/help.rb, processor/command/macro.rb, + processor/main.rb, processor/running.rb: macro.rb: Macros are more + useful now. An array of strings pushes additional commands on the + command queue. help.rb: Show aliases and macros in help *. Add help + for exach of these individually. + +2011-02-13 rocky + + * processor/command/info_subcmd/ruby.rb: I can't spell worth beans. + + +2011-02-13 rocky + + * app/core.rb, app/method_name.citrus, processor/command/finish.rb, + processor/main.rb, processor/running.rb: Start adding support for + leave yield trace events. + +2011-02-13 rocky + + * app/method_name.rb: Don't mask Citrus error. + +2011-02-13 rocky + + * app/method_name.rb, data/.gitignore, + test/unit/test-app-method_name.rb: Allow locations like x.foo where + x is not a method and foo is. + +2011-02-13 rocky + + * interface/user.rb: Remove extraneous line in saving history + +2011-02-13 rocky + + * interface/user.rb: Remove duplicate history save + +2011-02-13 rocky + + * processor/command/info_subcmd/registers.rb: Add short help for + "info reg" and improve long help. + +2011-02-12 rocky + + * processor/command/info_subcmd/frame.rb: Update help. This time for + sure! + +2011-02-12 rocky + + * processor/command/info_subcmd/frame.rb: Slightly nicer "info + frame" - format more closely follow rbx-trepanning "info method" + +2011-02-12 rocky + + * processor/command/info_subcmd/frame.rb: Slightly nicer "info + frame" - format more closely follow rbx-trepanning "info method" + +2011-02-12 rocky + + * processor/command/info_subcmd/frame.rb: Slightly nicer "info + frame" + +2011-02-12 rocky + + * processor/command/continue.rb, + processor/command/info_subcmd/files.rb: files.rb: add ctime. + continue: allow offsets on breakpoints. Sync with rbx. + +2011-02-12 rocky + + * processor/command/info_subcmd/files.rb: Add mtime. Allow suffix + matches when requesting a file name + +2011-02-12 rocky + + * .gemspec, io/tcpclient.rb, processor/command/list.rb, + processor/validate.rb, test/unit/test-io-tcpclient.rb, + test/unit/test-proc-validate.rb: Use method.type to explain why a + valid method might not be listable/breakpointable. tcpclient.rb: + typo others: small typos. + +2011-02-12 rocky + + * .gemspec, Rakefile, app/method_name.citrus, app/method_name.rb, + app/yarv.rb, data/method_name.citrus, data/method_name.rb, + io/tcpclient.rb, processor/command/break.rb, + processor/command/disassemble.rb, processor/validate.rb, + test/unit/test-app-method_name.rb, test/unit/test-io-tcpclient.rb, + test/unit/test-proc-validate.rb: We're now using citrus to parse + method names and extract the corresponding method (rather than + eval). YAY! yarv.rb: more scanning fixes tcpclient.rb: add + 'disconnected?' and expose @state. + +2011-02-12 rocky + + * processor/mock.rb: errmsg interface changed + +2011-02-11 rocky + + * processor/command/info_subcmd/files.rb, + processor/command/info_subcmd/program.rb, processor/mock.rb: DRY + code a little bit more. + +2011-02-11 rocky + + * processor/command/info_subcmd/ruby.rb: Add "info ruby" which is + really just RUBY_DESCRIPTION + +2011-02-11 rocky + + * Rakefile, test/unit/test-completion.rb: Pass --verbose option to + rake tasks properly. + +2011-02-11 rocky + + Merge branch 'master' of github.com:rocky/rb-trepanning + +2011-02-11 rocky + + * io/input.rb, test/unit/test-completion.rb: input.rb: Make sure + readline finalization is done once. test-completion.rb: don't pull + in readline routines to test completion. + +2011-02-10 rocky + + * interface/base_intf.rb, processor/command/irb.rb: Sync with + rbx-trepanning + +2011-02-10 rocky + + * app/irb.rb, interface/base_intf.rb, interface/user.rb, + processor/command/irb.rb, processor/main.rb: More work on history + file saving and restoring and interaction with irb. + +2011-02-09 rocky + + * processor/command/show_subcmd/basename.rb, test/data/quit2.cmd, + test/data/quit2.right, test/integration/helper.rb, + test/integration/test-quit.rb: Sync with rbx-trepanning + +2011-02-09 rocky + + * processor/command/set_subcmd/confirm.rb, + processor/command/show_subcmd/confirm.rb: Add set/show confirm: + forgot to add new command files. + +2011-02-09 rocky + + * processor/default.rb, processor/validate.rb: Add gdb-style + set/show confirm + +2011-02-09 rocky + + * processor/command/irb.rb: variable name typo + +2011-02-09 rocky + + * lib/trepanning.rb, processor/command/irb.rb: Change completion + proc on entering and leaving irb + +2011-02-09 rocky + + * processor/command/eval.rb, processor/command/pr.rb, + processor/eval.rb, processor/location.rb: Add eval and without a + string eval's the current source code. Update and expand 'eval' help + text. Make code a little more like rbx-trepanning. + +2011-02-08 rocky + + I hate conflicted merges + +2011-02-08 rocky + + * interface/base_intf.rb, interface/user.rb, io/input.rb, + lib/trepanning.rb, processor/default.rb, processor/load_cmds.rb, + processor/main.rb: Save debugger commands in history now. Move + history saving code from debugger into user interface. Save history + file on exit in finalization routine. + +2011-02-06 rocky + + * processor/load_cmds.rb: Sync with rbx-trepanning + +2011-02-06 rocky + + * processor/command/base/cmd.rb, processor/command/base/subcmd.rb, + processor/load_cmds.rb, test/unit/test-base-cmd.rb, + test/unit/test-completion.rb: Fix bug in completing an initial list + of commands (null string ''). + +2011-02-06 rocky + + * processor/command/info_subcmd/files.rb: info file now uniq's + properly + +2011-02-06 rocky + + * processor/command/info_subcmd/file.rb, + processor/command/info_subcmd/files.rb, + processor/command/info_subcmd/iseq.rb: info file -> info files to + match gdb better. Dynamic list completion in info files and iseq. + Usual cleanups + +2011-02-06 rocky + + * processor/command/base/cmd.rb, test/unit/test-base-cmd.rb: mock + cmdprocessor init arg count now matches nonmock. + +2011-02-06 rocky + + * processor/command/base/cmd.rb, processor/command/base/subcmd.rb, + test/unit/test-base-cmd.rb, test/unit/test-base-subcmd.rb: Allow for + more dynamic setting of completion array. Some other minor + corrections. + +2011-02-06 rocky + + Merge branch 'master' of github.com:rocky/rb-trepanning + +2011-02-06 rocky + + * data/method_name.citrus, data/method_name.rb: PEG parsing + experiments for parsing method names. + +2011-02-05 rocky + + * app/yarv.rb: Scan YARV ranges, e.g. 0..10, and blocks "block in + <...>" + +2011-02-05 rocky + + * sample/rocky-trepan-colors.rb: Update sample colors yet again + +2011-02-05 rocky + + * io/tcpfns.rb, io/tcpserver.rb, lib/trepanning.rb, + processor/command/reload.rb, processor/default.rb, + test/unit/test-completion.rb: Don't complete if already complete. + +2011-02-05 rocky + + * lib/trepanning.rb: Wrong default variable name in completion + +2011-02-05 rocky + + * lib/trepanning.rb, processor/command/info_subcmd/file.rb, + processor/command/reload_subcmd/.gitignore, processor/load_cmds.rb, + test/unit/test-completion.rb: Add space to completion when last + token is complete. Break completion into its own routine and we now + start testing that. Sync with rbx-trepanning + +2011-02-04 rocky + + * processor/command/complete.rb, processor/load_cmds.rb: Sync with + rbx-trepanning + +2011-02-04 rocky + + * io/input.rb, processor/command/base/subcmd.rb, + processor/command/help.rb, processor/command/set_subcmd/max.rb, + processor/load_cmds.rb: input.rb: add termination routine for + readline on interrupt. Handle interrupt. Cache have_readline. + subcmd.rb: add completion for set boolean (on/off). help.rb: fix + completion after previous refactor + +2011-02-04 rocky + + * processor/command/set_subcmd/events.rb: Add completions for "set + events". + +2011-02-04 rocky + + * app/complete.rb, app/util.rb, interface/comcodes.rb, + io/tcpfns.rb, processor/command/base/cmd.rb, + processor/command/base/submgr.rb, + processor/command/base/subsubmgr.rb, processor/command/help.rb, + processor/command/info_subcmd/file.rb, processor/load_cmds.rb, + processor/subcmd.rb, test/unit/test-app-complete.rb, + test/unit/test-app-util.rb, test/unit/test-base-submgr.rb: Expand + completion down one level and and completion for subsub command + managers. This needs to be refactored. Add data for "info file" + tcpfns.rb, comcodes.rb: More tests for pre-defined constants. + +2011-02-04 rocky + + * processor/command/base/subsubmgr.rb, + processor/command/set_subcmd/max.rb: Inch towards sub sub command + completion + +2011-02-03 rocky + + * app/util.rb, processor/command/help.rb, processor/load_cmds.rb, + test/unit/test-cmd-help.rb: Filter out alias expansions if the + expanded form is already in the completion list. + +2011-02-03 rocky + + * app/util.rb, lib/trepanning.rb, processor/command/base/cmd.rb, + processor/command/base/submgr.rb, processor/command/help.rb, + processor/command/show.rb, processor/command/source.rb, + processor/load_cmds.rb, test/data/fname-with-blank.right, + test/data/quit.right, test/unit/test-app-util.rb, + test/unit/test-cmd-help.rb: DRY and test completion code more. Add + some for help. Allow "show auto" without trailing space (e.g. show + autoeval") for ruby-debug compatibility Remove verbose output for + initfiles. + +2011-02-03 rocky + + * io/input.rb, processor/command/base/cmd.rb, + processor/command/disassemble.rb, processor/command/help.rb: Add + command completion help and disassemble. + +2011-02-02 rocky + + * interface/user.rb, io/input.rb, io/tcpserver.rb, + lib/trepanning.rb: Readline now uses prompt as it should for + completion. Handle readline errors better. And completion should + raise fewer exceptions. + +2011-02-02 rocky + + * lib/trepanning.rb, processor/command/base/submgr.rb, + processor/load_cmds.rb: Better command-completion support. + +2011-02-02 rocky + + I hate conflicted merges + +2011-02-02 rocky + + * processor/command/base/submgr.rb, processor/load_cmds.rb, + test/unit/test-proc-load_cmds.rb: Add subcommand completion. Sync + with rbx-trepanning. + +2011-02-02 rocky + + Merge branch 'master' of github.com:rocky/rb-trepanning + +2011-02-02 rocky + + * io/input.rb, lib/trepanning.rb, processor/command/complete.rb, + processor/load_cmds.rb: Start command completion. Add debugger + "complete" command. + +2011-02-01 rocky + + * app/disassemble.rb, app/options.rb: Cache highlighter + +2011-02-01 rocky + + * app/yarv.rb: Some YARV scanning corrections. + +2011-02-01 rocky + + * ChangeLog: See above + 2011-02-01 rocky * ChangeLog, NEWS: One more small NEWS update @@ -9,8 +807,12 @@ 2011-02-01 rocky * ChangeLog, NEWS, app/disassemble.rb, app/yarv.rb, - processor/command/disassemble.rb: Feb 1, 2011 (0.1.0) * Add Remote debugging interface. Add options --server --port * Add Syntax highlighting on Ruby and YARV listings and locations * Section highlighting on some commands * Use ;; to allow multiple debugger commands. Document debugger - command syntax * include data files for debugging custom-require * Numerous bug fixes and code cleanups + processor/command/disassemble.rb: Feb 1, 2011 (0.1.0) * Add Remote + debugging interface. Add options --server --port * Add Syntax + highlighting on Ruby and YARV listings and locations * Section + highlighting on some commands * Use ;; to allow multiple debugger + commands. Document debugger command syntax * include data files for + debugging custom-require * Numerous bug fixes and code cleanups 2011-02-01 rocky @@ -85,8 +887,8 @@ processor/command/set_subcmd/trace.rb, processor/load_cmds.rb: reload.rb: allow loading of a new debugger command files load_cmds.rb: allow loading files as well as directories. Use send - over eval since it is better in reporting errors. *_subcmd/*.rb: - DRY code for setting NAME and PREFIX + over eval since it is better in reporting errors. *_subcmd/*.rb: DRY + code for setting NAME and PREFIX 2011-01-29 rocky @@ -197,8 +999,12 @@ 2011-01-11 rocky - * : commit ca6a6ce7ba4599c5edecda1b70cac3656cf50b54 Author: rocky - Date: Tue Jan 11 19:28:29 2011 -0500 + Merge branch 'master' of github.com:rocky/rb-trepanning + +2011-01-11 rocky + + * io/base_io.rb, io/tcpclient.rb, io/tcpfns.rb, io/tcpserver.rb: + Move some out-of-process TCP I/O code from rubinius. 2011-01-11 rocky @@ -208,19 +1014,30 @@ 2010-12-28 rocky - * : commit 6585edc946e7c7bc3b8cd20b86860435569d7dd9 Author: rocky - Date: Tue Dec 28 14:04:16 2010 -0500 + Merge branch 'master' of github.com:rocky/rb-trepanning + +2010-12-28 rocky + + * test/unit/cmd-helper.rb, test/unit/mock-helper.rb, + test/unit/test-cmd-alias.rb, test/unit/test-cmd-break.rb, + test/unit/test-cmd-endisable.rb, test/unit/test-cmd-help.rb, + test/unit/test-cmd-kill.rb, test/unit/test-cmd-quit.rb, + test/unit/test-cmd-step.rb: DRY test code more helper routines. 2010-12-27 rocky * .gemspec, processor/main.rb, test/unit/test-app-file.rb: .gemspec: need 1.9.2frame main.rb: wrong fn any -> all? But will rewrite more - completely later. test-app-file.rb: remove debug statement. + completely later. test-app-file.rb: remove debug statement. 2010-12-27 rocky - * : commit 5fa8ccdc95a478e19f2a1f4874c8d24663aff36d Author: rocky - Date: Mon Dec 27 10:48:14 2010 -0500 + Merge branch 'master' of github.com:rocky/rb-trepanning + +2010-12-27 rocky + + * processor/command/list.rb, test/unit/test-base-subcmd.rb: list.rb: + help text corrections 2010-12-25 rocky @@ -281,13 +1098,18 @@ 2010-12-15 rocky * interface/script.rb, test/data/quit.cmd, test/example/null.rb: - quit.cmd: use no-confirmation form of quit. null.rb: need a - statement or we don't even stop initially. script.rb: sync with + quit.cmd: use no-confirmation form of quit. null.rb: need a + statement or we don't even stop initially. script.rb: sync with rbx-trepanning: allow input to be passed in. 2010-12-15 rocky - * : I hate conflicted merges + I hate conflicted merges + +2010-12-15 rocky + + * ChangeLog, app/options.rb: Correct --help portion of --nx option. + 2010-12-10 rocky @@ -391,8 +1213,28 @@ 2010-11-28 rocky - * : commit 55fbdeb97333f624b02b58a9bf289a0d2f4bb981 Author: rocky - Date: Sun Nov 28 03:07:35 2010 -0500 + Merge branch 'master' of github.com:rocky/rb-trepanning + +2010-11-28 rocky + + * Rakefile, processor/command/info_subcmd/registers_subcmd/dfp.rb, + processor/command/info_subcmd/registers_subcmd/lfp.rb, + processor/command/info_subcmd/registers_subcmd/sp.rb, + processor/command/list.rb, + processor/command/set_subcmd/auto_subcmd/eval.rb, + processor/command/set_subcmd/auto_subcmd/irb.rb, + processor/command/set_subcmd/auto_subcmd/list.rb, + processor/command/set_subcmd/debug_subcmd/dbgr.rb, + processor/command/set_subcmd/debug_subcmd/except.rb, + processor/command/set_subcmd/debug_subcmd/macro.rb, + processor/command/set_subcmd/debug_subcmd/skip.rb, + processor/command/set_subcmd/debug_subcmd/stack.rb, + processor/command/set_subcmd/substitute_subcmd/string.rb, + processor/command/set_subcmd/trace_subcmd/print.rb, + processor/command/show_subcmd/auto_subcmd/eval.rb, + processor/command/show_subcmd/auto_subcmd/irb.rb, + processor/command/show_subcmd/auto_subcmd/list.rb, + processor/mock.rb: Start to DRY standalone-code. 2010-11-26 rocky @@ -406,8 +1248,16 @@ 2010-11-13 rocky - * : commit b1a68214f2586ae7de9d9d48bd241a6aef1feedb Author: rocky - Date: Sat Nov 13 05:38:33 2010 -0500 + Merge branch 'master' of github.com:rocky/rb-trepanning + +2010-11-13 rocky + + * io/base_io.rb, io/null_output.rb, processor/command/continue.rb, + processor/command/set_subcmd/auto.rb, processor/command/source.rb, + processor/default.rb, processor/frame.rb, processor/location.rb, + processor/validate.rb: "source -q" silences all prompt and debugger + messages now. Fix bugs in output.eof auto.rb: remove + no-longer-needed assignment 2010-11-12 rocky @@ -419,8 +1269,8 @@ processor/command/restart.rb, processor/command/show_subcmd/args.rb, processor/location.rb, test/unit/test-app-run.rb: Greatly simplify restart code and is more - reliable -- via new patch to 1.9.2. Thanks to Evan Phoenix for - suggesting and doing in Rubinius. .gemspec: need to make sure we + reliable -- via new patch to 1.9.2. Thanks to Evan Phoenix for + suggesting and doing in Rubinius. .gemspec: need to make sure we have a later Ruby 1.9.2 patch 2010-11-09 rocky @@ -430,12 +1280,18 @@ 2010-11-09 rocky * processor/command/finish.rb, processor/command/list.rb, - processor/frame.rb: Fix "list . NUM". finish.rb: fix doc string + processor/frame.rb: Fix "list . NUM". finish.rb: fix doc string 2010-11-08 rocky - * : commit 2926ca92715f2034ef9b560f784b4ab97ddfbea4 Author: rocky - Date: Mon Nov 8 03:38:37 2010 -0500 + Merge branch 'master' of github.com:rocky/rb-trepanning + +2010-11-08 rocky + + * test/functional/fn_helper.rb, test/functional/test-break.rb, + test/functional/test-condition.rb, test/functional/test-delete.rb: + list.rb: handle "list . count" and "list start end". Sync with + rbx-trepanning. 2010-11-04 rocky @@ -444,6 +1300,7 @@ processor/command/show_subcmd/hidelevel.rb, processor/default.rb: Replace "set/show debugstack" with more general "set/show hidestack" + 2010-10-27 rocky * NEWS, lib/trepanning.rb: Some small omissions. @@ -463,8 +1320,11 @@ 2010-10-21 rocky - * : commit 956df3be0f3f3a6c77671e6be49ef4397da12ffb Author: rocky - Date: Wed Oct 20 20:32:49 2010 -0400 + Merge branch 'master' of github.com:rocky/rb-trepanning + +2010-10-20 rocky + + * processor/validate.rb: Comment typo. 2010-10-20 rocky @@ -481,8 +1341,23 @@ 2010-10-19 rocky - * : commit f7f10e99c12dfef4148b9c34297f6b2909407527 Author: rocky - Date: Tue Oct 19 12:17:19 2010 -0400 + Merge branch 'master' of github.com:rocky/rb-trepanning + Conflicts: processor/command/finish.rb + +2010-10-19 rocky + + * .gitignore, app/frame.rb, lib/trepanning.rb, + processor/command/alias.rb, processor/command/backtrace.rb, + processor/command/break.rb, processor/command/continue.rb, + processor/command/directory.rb, processor/command/exit.rb, + processor/command/finish.rb, processor/command/help.rb, + processor/command/irb.rb, processor/command/kill.rb, + processor/command/next.rb, processor/command/nocache.rb, + processor/command/quit.rb, processor/command/raise.rb, + processor/command/restart.rb, processor/command/save.rb, + processor/frame.rb, processor/main.rb, + test/functional/test-fn_helper.rb: Add test of test-fn_helper.rb + Appease the RDoc God. 2010-10-18 rocky @@ -528,8 +1403,16 @@ 2010-10-16 rocky - * : commit 8d11c5bd1a588223a84a490687c214f42bcb40c8 Author: rocky - Date: Sat Oct 16 10:18:06 2010 -0400 + Merge branch 'master' of github.com:rocky/rb-trepanning + +2010-10-16 rocky + + * processor/command/backtrace.rb, processor/command/base/cmd.rb, + processor/command/break.rb, processor/command/condition.rb, + processor/command/continue.rb, processor/command/debug.rb, + processor/command/finish.rb, processor/command/irb.rb, + processor/command/source.rb: Add Trepan::Command#name and dry code + with it. 2010-10-14 rocky @@ -538,13 +1421,25 @@ 2010-10-14 rocky - * : commit b75fbef2155a56d7c5db6cf92a069b037f5ebce6 Author: rocky - Date: Thu Oct 14 23:46:16 2010 -0400 + Merge branch 'master' of github.com:rocky/rb-trepanning + +2010-10-14 rocky + + * processor/command/pr.rb, processor/command/print.rb, + processor/running.rb, test/functional/test-raise.rb, + test/functional/test-return.rb, test/unit/test-proc-main.rb: + debugger "print" (print truncating long output) renamed to "pr" + since p and print are both Ruby commands. running.rb: Typo |= -> ||= + + +2010-10-13 rocky + + Merge branch 'master' of github.com:rocky/rb-trepanning 2010-10-13 rocky - * : commit f82c642a2f927aae66dc395284bdfe844dac43f5 Author: rocky - Date: Wed Oct 13 10:52:05 2010 -0400 + * app/irb.rb, data/irbrc, processor/command/irb.rb: Keep in sync + with rbx-trepanning. 2010-10-13 rocky @@ -571,13 +1466,23 @@ 2010-10-12 rocky - * : commit d0414dd55cfcf924fe5b464e060682c811800bae Author: rocky - Date: Tue Oct 12 18:11:00 2010 -0400 + Merge branch 'master' of github.com:rocky/rb-trepanning + +2010-10-12 rocky + + * processor/frame.rb, test/unit/test-proc-frame.rb: A little cleaner + I think due to sync with rbx-trepanning. 2010-10-11 rocky - * : commit 50c3333d93dbeb70c900417b778d628395c9cc95 Author: rocky - Date: Sun Oct 10 22:11:52 2010 -0400 + Merge branch 'master' of github.com:rocky/rb-trepanning + +2010-10-10 rocky + + * .gemspec, ChangeLog, NEWS, Rakefile, lib/trepanning.rb: Rakefile: + remove weird self-modifying double loop lib/trepanning.rb: now in + 0.0.5.git .gemspec: Add add for rbx-trepanning NEWS: forgot to + commit from before. 2010-10-08 rocky @@ -587,6 +1492,7 @@ * data/custom_require.rb, processor/main.rb: Remap custom_require.rb + 2010-10-08 rocky * Makefile: Fix up boilerplate Makefile @@ -624,17 +1530,28 @@ 2010-10-05 rocky - * : commit 3d425bf22f435f5498578059d59e800217ff223f Author: rocky - Date: Tue Oct 5 05:46:56 2010 -0400 + Merge branch 'master' of github.com:rocky/rb-trepanning + +2010-10-05 rocky + + * app/breakpoint.rb, app/brkptmgr.rb, + test/functional/test-break.rb, test/functional/test-condition.rb, + test/functional/test-delete.rb, test/unit/test-app-brkpt.rb, + test/unit/test-cmd-break.rb: app/breakpoint.rb: respect passed + breakpoint :id option. app/brkptmgr.rb: remove globalness of setting + breakpoint ids test/* adjust as is now appropriate. 2010-10-04 rocky * processor/breakpoint.rb, processor/eval.rb, processor/validate.rb, test/unit/test-cmd-break.rb: We now scan - parent instruction sequences to find breakpoint line numbers. Note: - this requires an updated rb-threadframe from git. For example, suppose the code is: xx = 'break here' 1.times do debugger_is_here end If you are at the line of "debugger_is_here", the xx line is not - part of that instruction sequence, but can be found by searching its - parent instruction sequence. + parent instruction sequences to find breakpoint line numbers. Note: + this requires an updated rb-threadframe from git. For example, + suppose the code is: xx = 'break here' 1.times do + debugger_is_here end If you are at the line of + "debugger_is_here", the xx line is not part of that instruction + sequence, but can be found by searching its parent instruction + sequence. 2010-10-04 rocky @@ -664,13 +1581,13 @@ * app/mock.rb, processor/default.rb, processor/location.rb, processor/validate.rb: processor/*.rb: Add gdb-like "directory" - command. Code was in rbx-trepanning. app/mock.rb: Need to be more + command. Code was in rbx-trepanning. app/mock.rb: Need to be more realistic now. 2010-09-30 rocky * processor/validate.rb, test/unit/test-cmd-break.rb: Reinstate more - flexible file/line breakpoint parsing. Be more lenient about file + flexible file/line breakpoint parsing. Be more lenient about file name matching, i.e. use basenames. 2010-09-29 rocky @@ -680,13 +1597,19 @@ 2010-09-28 rocky - * : commit 978ae3024f52c581a3d71c5e334b4226c7bb24ad Author: rocky - Date: Tue Sep 28 21:35:55 2010 -0400 + Merge branch 'master' of github.com:rocky/rb-trepanning 2010-09-28 rocky - * : commit cbd98bce731425d5bffef4094ac1ffa5152eaf6b Author: rocky - Date: Tue Sep 28 21:30:16 2010 -0400 + * lib/trepanning.rb, processor/eval.rb: Add VERSION number + +2010-09-28 rocky + + Merge branch 'master' of github.com:rocky/rb-trepanning + +2010-09-28 rocky + + * processor/command/source.rb, processor/eval.rb: Small tweaks 2010-09-27 rocky @@ -763,6 +1686,7 @@ * Rakefile, app/options.rb, bin/trepan, lib/trepanning.rb: Small changes and try to keep in better compatibility/sync with rubinius. + 2010-09-25 rocky * processor/command/show_subcmd/args.rb: Beef up demo code for show @@ -771,8 +1695,19 @@ 2010-09-25 rocky - * : commit e2e8c3fb71b7de8e62c777e33294ce2ecb710c86 Author: rocky - Date: Sat Sep 25 11:22:23 2010 -0400 + Merge branch 'master' of github.com:rocky/rbdbgr + +2010-09-25 rocky + + * app/run.rb, processor/command/exit.rb, + processor/command/info_subcmd/program.rb, processor/command/ps.rb, + processor/command/show_subcmd/max_subcmd/stack.rb, + processor/command/show_subcmd/max_subcmd/string.rb, + processor/command/show_subcmd/max_subcmd/width.rb, + processor/main.rb, test/unit/test-app-run.rb: app/run.rb: add demo + and unit test processor/command/exit.rb: allow xxx! and make + compatible with 1.8 Other small cleanups and synchronization with + rbx-trepanning. 2010-09-24 rocky @@ -1008,13 +1943,14 @@ test/unit/test-proc-load_cmds.rb, test/unit/test-proc-main.rb, test/unit/test-proc-validate.rb, test/unit/test-subcmd-help.rb: Debugger -> Trepan. bin/rbdbgr -> bin/trepan. Package name is now - trepan. Hmm. may change the package name soon. There are still many + trepan. Hmm. may change the package name soon. There are still many other reminants of rbdbgr. All in due time... 2010-09-21 rocky * Makefile, app/Makefile, lib/Makefile: Makefiles were a little off. + 2010-09-21 rocky * .gemspec, ChangeLog, Rakefile, lib/rbdbgr.rb: Add .gemspec and @@ -1212,12 +2148,16 @@ processor/command/macro.rb: sp.rb: run() Make use fo new Threadframe#sp_size. SIZE lists number of entries in stack; we now check for accessing outside of the range, No args lists all stack - entries. macro.rb: Tidy "macro defined" message. + entries. macro.rb: Tidy "macro defined" message. 2010-08-20 R. Bernstein - * : commit 1aa24b2b7d105f4491cf3ebd8c8bc57f0f29246c Author: R. - Bernstein Date: Fri Aug 20 19:58:09 2010 -0400 + Merge branch 'master' of github.com:rocky/rbdbgr + +2010-08-20 R. Bernstein + + * lib/rbdbgr.rb: debugger(): exec_event_tracing no longer exists and + frame.trace_off is better. 2010-08-11 rocky @@ -1228,7 +2168,7 @@ * app/display.rb, processor/command/display.rb: processor/command/display.rb: show initial value when setting - display - gdb does. app/display.rb: DRY code a little. + display - gdb does. app/display.rb: DRY code a little. 2010-08-11 R. Bernstein @@ -1249,13 +2189,22 @@ 2010-07-06 rocky - * : commit 2757e57310a7e236962a660e7f07d8ac5f995c62 Author: rocky - Date: Tue Jul 6 06:17:43 2010 -0400 + Merge branch 'master' of github.com:rocky/rbdbgr + +2010-07-06 rocky + + * processor/command/frame.rb: 'frame' command help tweak. 2010-06-20 rocky - * : commit 6858909c9938841e1f579a554e5ee72b842acf22 Author: rocky - Date: Sun Jun 20 04:50:53 2010 +0200 + Merge branch 'master' of github.com:rocky/rbdbgr + +2010-06-20 rocky + + * app/disassemble.rb, + processor/command/set_subcmd/substitute_subcmd/string.rb, + test/unit/test-app-disassemble.rb: string.rb: help doc correction + *disasemble.rb: One more unit test. Tidy demo output. 2010-06-10 rocky @@ -1308,7 +2257,7 @@ * app/condition.rb, processor/command/condition.rb, processor/command/step.rb, processor/frame.rb, - processor/validate.rb: Work on thread support. validate.rb: don't + processor/validate.rb: Work on thread support. validate.rb: don't show the frames of the event processor of non-current threads step.rb add "step thread" to step within the thread. app/condition.rb: Rbdbgr -> Debugger::Conditon module. @@ -1328,6 +2277,7 @@ processor/command/info_subcmd/thread.rb, processor/frame.rb, processor/validate.rb: Work on showing and switching thread frames. + 2010-05-15 rocky * processor/command/debug.rb: No need to fiddle with prompt in @@ -1335,8 +2285,12 @@ 2010-05-15 rocky - * : commit da2a0b67fbbc9973b62c98b21a7888b23afc802d Author: rocky - Date: Sat May 15 21:44:37 2010 -0400 + Merge branch 'master' of github.com:rocky/rbdbgr + +2010-05-15 rocky + + * processor/command/show_subcmd/trace_subcmd/buffer.rb: Setting name + was renamed a while ago. Didn't catch this then. 2010-05-14 rocky @@ -1346,8 +2300,8 @@ * lib/rbdbgr.rb, processor/default.rb, test/functional/test-immediate-step-bug.rb: Add Kernel#rbdbgr as a - simple way to call the debugger. More trace disabling inside - debugger code. max stack default set back to 10 (from 16). + simple way to call the debugger. More trace disabling inside + debugger code. max stack default set back to 10 (from 16). 2010-05-13 R. Bernstein @@ -1356,7 +2310,7 @@ processor/command/set_subcmd/max.rb, test/unit/test-app-util.rb: Debugging in rails now works - tested only with rails 2 and mongrel. Turn off tracing in debugger setup (new, debugger) until better - solutions are implemented. Some stray debug statements a minor bug + solutions are implemented. Some stray debug statements a minor bug fixes, e.g. "set max stack" was printing 2 times as many entries. 2010-05-11 rocky @@ -1371,7 +2325,7 @@ test/unit/test-app-brkpt.rb, test/unit/test-app-brkptmgr.rb, test/unit/test-app-disassemble.rb, test/unit/test-app-frame.rb, test/unit/test-app-thread.rb: Work on "info thread ". More in - needed. Also one breakpoint test fails probably in conjunction with + needed. Also one breakpoint test fails probably in conjunction with changes after Ruby SVN 27660 and 27690. 2010-05-10 R. Bernstein @@ -1396,11 +2350,13 @@ processor/command/set_subcmd/debug_subcmd/stack.rb, processor/validate.rb, test/functional/test-debugger-call-bug.rb: One of several bugs keeping Debugger#debugger from working more than - the first time. More fixes to follow. debug_subcmd/stack.rb: Setting wrong instance variable - interface/user.rb, app/core.rb: move finalize from user to Debugger - where we can make sure we've turned of tracing beforehand. validate: we are getting into a recursive trace when removing - debugger iseqs. Omit until we figure out a better fix. app/file.rb: guard against adding to ISEQ__ hash while enumerating - over it. + the first time. More fixes to follow. debug_subcmd/stack.rb: + Setting wrong instance variable interface/user.rb, app/core.rb: move + finalize from user to Debugger where we can make sure we've turned + of tracing beforehand. validate: we are getting into a recursive + trace when removing debugger iseqs. Omit until we figure out a + better fix. app/file.rb: guard against adding to ISEQ__ hash while + enumerating over it. 2010-05-07 rocky @@ -1410,8 +2366,11 @@ 2010-05-07 R. Bernstein - * : commit 9efe1dcbf996993382eb50fb901f8d396dcb6608 Author: rocky - Date: Fri May 7 18:40:33 2010 -0400 + Merge branch 'master' of github.com:rocky/rbdbgr + +2010-05-07 rocky + + * app/core.rb: Small cleanups. 2010-05-07 rocky @@ -1501,7 +2460,7 @@ processor/command/show_subcmd/debug_subcmd/stack.rb, processor/default.rb, processor/main.rb, test/unit/test-base-subcmd.rb: More work on macros. Check validity - of expansion result. Add macro expansion debugging. + of expansion result. Add macro expansion debugging. 2010-05-04 rocky @@ -1586,7 +2545,7 @@ processor/command/show_subcmd/trace_subcmd/buffer.rb, processor/default.rb, processor/msg.rb, test/unit/test-base-subcmd.rb: set maxstring -> set max[imum] - string. set width -> set max width. Still need to handle show. + string. set width -> set max width. Still need to handle show. 2010-05-03 rocky @@ -1619,7 +2578,7 @@ * app/core.rb, processor/command/debug.rb, processor/main.rb: core.rb: add mutex to ensure we don't switch threads while - debugging. debug.rb: hide setup code into the debugger. main.rb: + debugging. debug.rb: hide setup code into the debugger. main.rb: don't debug into hidden frames 2010-04-29 rocky @@ -1657,7 +2616,8 @@ * processor/command/print.rb, processor/main.rb: print.rb: now preserves spacing given in command main.rb: now captures command before aliasing (and later macro expansion) as well as string of - first token given and remaining string after first token. Handling macros is where we are going with this. + first token given and remaining string after first token. Handling + macros is where we are going with this. 2010-04-25 rocky @@ -1668,6 +2628,7 @@ * processor/command/reload.rb, processor/command/reload_subcmd/command.rb: Add a "reload command". + 2010-04-23 rocky * processor/default.rb, processor/load_cmds.rb, processor/mock.rb, @@ -1735,8 +2696,14 @@ 2010-04-14 rocky - * : commit 7f31efad73be0d13dfb4596e88bf33d18b7b85cd Author: rocky - Date: Wed Apr 14 06:50:37 2010 -0400 + Merge branch 'master' of git@github.com:rocky/rbdbgr + +2010-04-14 rocky + + * app/brkpt.rb, app/brkptmgr.rb, processor/breakpoint.rb, + test/unit/test-app-brkpt.rb, test/unit/test-app-brkptmgr.rb: Chagne + Breakpoint.new to take an options hash and add option to set what + kind of breakpoint: line/offset. 2010-04-13 rocky @@ -1840,8 +2807,8 @@ test/unit/test-proc-help.rb, test/unit/test-proc-hook.rb, test/unit/test-proc-main.rb, test/unit/test-proc-validate.rb, test/unit/test-subcmd-help.rb: require_relative %w(a b c) => - require_relative 'a/b/c' Starting with SVN revision #26959 require_relative no longer accepts - an array argument. + require_relative 'a/b/c' Starting with SVN revision #26959 + require_relative no longer accepts an array argument. 2010-04-03 rocky @@ -2010,10 +2977,10 @@ * interface/script.rb, processor/command/help.rb, processor/default.rb, processor/main.rb: Some small script (debugger - "source" command) fixes. script.rb: Don't show debugger output if - running a script. main.rb; Slightly better handling of blank - command lines help.rb: don't show aliases for a commmand where help - on subcommands were asked for. + "source" command) fixes. script.rb: Don't show debugger output if + running a script. main.rb; Slightly better handling of blank command + lines help.rb: don't show aliases for a commmand where help on + subcommands were asked for. 2010-03-20 rocky @@ -2047,9 +3014,9 @@ processor/main.rb, test/functional/fn_helper.rb, test/functional/test-delete.rb, test/functional/test-finish.rb, test/functional/test-step.rb: New 'raise' command which raises an - exception in the debugged program. The debugged-program's return values are now prefaced with R=> - rather than =>. Hopefully this makes things clearer while still - somewhat intuitive. + exception in the debugged program. The debugged-program's return + values are now prefaced with R=> rather than =>. Hopefully this + makes things clearer while still somewhat intuitive. 2010-03-14 rocky @@ -2071,15 +3038,15 @@ test/functional/test-condition.rb, test/functional/test-delete.rb, test/functional/test-finish.rb, test/functional/test-next.rb, test/functional/test-step.rb, test/functional/test-trace-var.rb: - Show exception object when we have 'raise' event. location output - has changed from prior commit. Track in test cases. Show exception + Show exception object when we have 'raise' event. location output + has changed from prior commit. Track in test cases. Show exception object on 'raise' exception. 2010-03-13 rocky * app/frame.rb, processor/command/info_subcmd/program.rb, processor/hook.rb, processor/location.rb, processor/main.rb: Show - more information in location. If a call, the method name and params + more information in location. If a call, the method name and params If a return the return value. 2010-03-13 rocky @@ -2087,12 +3054,13 @@ * app/default.rb, lib/rbdbgr.rb: Now that we have a patch for ruby-1.9 to fix SEGV's in eval, debug_str works. Some minor tweaks. + 2010-03-13 rocky * app/irb.rb, data/irbrc, processor/command/irb.rb: irb.rb: - Syncronize IRB's BACK_TRACE_LIMIT with the debugger's. irbrc: - "file" for eval shouldn't contain ":" since that causes IRB to think - to traceback are IRB bugs. + Syncronize IRB's BACK_TRACE_LIMIT with the debugger's. irbrc: "file" + for eval shouldn't contain ":" since that causes IRB to think to + traceback are IRB bugs. 2010-03-11 rocky @@ -2145,7 +3113,7 @@ * app/irb.rb, data/irbrc, processor/command/irb.rb, processor/main.rb: Add command inside irb: dbgr to issue debugger - statements. Dry irb code a little. + statements. Dry irb code a little. 2010-03-11 rocky @@ -2197,7 +3165,7 @@ processor/command/set_subcmd/substitute_subcmd/eval.rb, processor/command/up.rb, processor/frame.rb, test/unit/test-proc-frame.rb: frame.rb, iseq.rb: use/show SHA1's for - instruction sequences. {up,down,frame,eval,stack}.rb: DRY code. + instruction sequences. {up,down,frame,eval,stack}.rb: DRY code. eval.rb, frame.rb: allow a frame parameter to eval. 2010-03-09 rocky @@ -2206,7 +3174,8 @@ processor/command/set_subcmd/substitute_subcmd/eval.rb, processor/frame.rb, processor/location.rb, processor/main.rb: Automatic eval string remapping to a file in "list" stack and - location listings. Manual remapping too via "set substitute eval". Todo possibly remove set substitute eval or change it to take a + location listings. Manual remapping too via "set substitute eval". + Todo possibly remove set substitute eval or change it to take a frame #. Work in rb-threadframe to get sha1/checksum of iseq instead of inspect name. @@ -2220,7 +3189,7 @@ test/functional/test-delete.rb, test/functional/test-finish.rb, test/functional/test-step.rb: main.rb: auto-eval output looks more like irb using inspect and prefaced with => print.rb: Add print - command which uses safe-repr for output. eaval.rb: add a kind of + command which uses safe-repr for output. eaval.rb: add a kind of eval that field hide exceptions. 2010-03-08 rocky @@ -2252,12 +3221,13 @@ * app/default.rb, app/options.rb, bin/rbdbgr, lib/rbdbgr.rb, test/unit/test-app-options.rb: Add --nx and @settings[:nx] options. + 2010-03-08 R. Bernstein * interface/script.rb, lib/rbdbgr.rb: rbdbgr.rb: Bug: --command used - wrong interface. singleton methods debug and debug_str: pass options - to Debugger.new. Set different off on debug_s tr by - default + wrong interface. singleton methods debug and debug_str: + pass options to Debugger.new. Set different off on debug_s + tr by default 2010-03-07 R. Bernstein @@ -2269,8 +3239,9 @@ * app/default.rb, app/options.rb, bin/rbdbgr, lib/rbdbgr.rb, test/unit/test-app-options.rb: Start --command option. Not fully - done yet. options.rb: Fix bug in show_version(). setup_options(): make more - functional in handling of --help and --version. lib/rbdbgr.rb: setup options in a way that won't mess up + done yet. options.rb: Fix bug in show_version(). setup_options(): + make more functional in handling of --help and --version. + lib/rbdbgr.rb: setup options in a way that won't mess up DEFAULT_CMDLINE_SETTINGS. Accumulate startup-files for --command option. @@ -2303,7 +3274,7 @@ * app/core.rb, app/options.rb, bin/rbdbgr, lib/rbdbgr.rb, test/unit/test-app-options.rb: Add first rbdbgr option --chdir. Fix - bugs in handling that. app/core.rb DEFAULT_SETTINGS -> + bugs in handling that. app/core.rb DEFAULT_SETTINGS -> CORE_DEFAULT_SETTINGS to avoid constant name clashes. 2010-03-01 rocky @@ -2375,13 +3346,13 @@ processor/command/show_subcmd/debug.rb, profile/irbrc, test/unit/test-app-util.rb: Lots of bug fixes and goodness. app/frame.rb: was listing C params in reverse order. safe_repr each - arg was adding a non-existent optional argument info_subcmd/args.rb: - Fix buggy test for whether params may have changed. Also fix wrong - C param order. Rakefile: forgot to add data directory to - distribution profile/irbrc -> data/irbrc, app/irb.rb: consolidate - files into one directory. Data wins app/util.rb: safe_repr now - matches quotes and can be told what suffix (...) to use rbdbgr.rb: - don't debug inside in debug. + arg was adding a non-existent optional argument + info_subcmd/args.rb: Fix buggy test for whether params may have + changed. Also fix wrong C param order. + Rakefile: forgot to add data directory to distribution profile/irbrc + -> data/irbrc, app/irb.rb: consolidate files into one directory. + Data wins app/util.rb: safe_repr now matches quotes and can be told + what suffix (...) to use rbdbgr.rb: don't debug inside in debug. 2010-02-26 rocky @@ -2459,11 +3430,12 @@ When this is fixed we can do the below. Until then we need to at least remove C calls and returns and possibly other events as well. + 2010-02-23 rocky * app/file.rb, processor/command/info_subcmd/break.rb, processor/validate.rb, test/unit/test-proc-validate.rb: break.rb: - allow showing breakpoint by number. Improve help. app/file.rb: + allow showing breakpoint by number. Improve help. app/file.rb: remove Ruby warning messages validate.rb: add int list routine 2010-02-22 rocky @@ -2474,9 +3446,9 @@ test/functional/test-break.rb, test/functional/test-condition.rb, test/functional/test-delete.rb, test/unit/cmd-helper.rb, test/unit/test-cmd-break.rb: sp.rb: Add ability to change VM stack - entries. frame.rb: Fix bug which was messing up class values inside + entries. frame.rb: Fix bug which was messing up class values inside C functions breakpoint.rb: make message look more like gdb Remove - some Ruby warning messages. main.rb: remove duplicate + some Ruby warning messages. main.rb: remove duplicate load_debugger_commands method 2010-02-20 rocky @@ -2510,7 +3482,7 @@ * app/core.rb, app/display.rb, app/frame.rb, processor/command/display.rb, processor/command/where.rb, processor/display.rb, processor/hook.rb, processor/main.rb: - where.rb, frame.rb: C function class name workaround. display.rb, + where.rb, frame.rb: C function class name workaround. display.rb, hook.rb, main.rb: start display expressions. Not working yet - wait for next commit. @@ -2524,7 +3496,7 @@ * processor/command/info_subcmd/program.rb, processor/command/info_subcmd/return.rb, processor/command/set_subcmd/return.rb: info_subcmd/program.rb: - Don't assume we have an iseq. return.rb: remove C-call again, until + Don't assume we have an iseq. return.rb: remove C-call again, until we can figure out what's wrong. 2010-02-18 rocky @@ -2539,13 +3511,14 @@ processor/command/set_subcmd/return.rb, processor/command/set_subcmd/substitute_subcmd/string.rb, processor/mock.rb: return.rb: Add a way to set a method return - value: "set return". string.rb, different.rb: improve help strings + value: "set return". string.rb, different.rb: improve help strings mock.rb: set ISEQS__ and SCRIPT_ISEQS__ 2010-02-17 rocky * processor/command/info_subcmd/iseq.rb: Bug in running "info iseq" + 2010-02-17 rocky * processor/command/set_subcmd/different.rb, @@ -2585,9 +3558,9 @@ processor/command/enable.rb, processor/load_cmds.rb, processor/main.rb: breakpoint.rb: Better invalid breakpoint number error messages condition.rb: condition closer to working - but still - not operational. main.rb, load_cmds.rb: move declaration of - commands attr_accessor load_cmds.rb: better demo code main.rb: - closer to interpreting breakpoint condition + not operational. main.rb, load_cmds.rb: move declaration of commands + attr_accessor load_cmds.rb: better demo code main.rb: closer to + interpreting breakpoint condition 2010-02-15 rocky @@ -2613,7 +3586,7 @@ 2010-02-15 rocky * README, lib/rbdbgr.rb, processor/command/list.rb: rbdbgr.rb: Add - Debugger.debug singleton. Set return code properly. list.rb: small + Debugger.debug singleton. Set return code properly. list.rb: small bug in listing 2010-02-14 rocky @@ -2664,7 +3637,7 @@ * processor/command/help.rb, processor/validate.rb, test/unit/test-cmd-help.rb: help.rb: Give help on command name for - alias. validate.rb: allow lookup for iseq when there is only one. + alias. validate.rb: allow lookup for iseq when there is only one. test-cmd-help.rb: more extensive testing. 2010-02-12 rocky @@ -2686,7 +3659,7 @@ 2010-02-11 rocky * lib/rbdbgr.rb, profile/irbrc: lib/rbdbgr.rb: Set SCRIPT_ISEQS so - this be used. profile/irbrc: note that you can use 'q' for quit. + this be used. profile/irbrc: note that you can use 'q' for quit. 2010-02-11 rocky @@ -2708,8 +3681,8 @@ * processor/command/set_subcmd/trace.rb, processor/command/show_subcmd/basename.rb, processor/command/show_subcmd/trace.rb, processor/help.rb: - show_subcmd/trace.rb: Add 'show trace'. processor/help.rb: fix bug - in summary help basename.rb: standalone correction. trace.rb: much + show_subcmd/trace.rb: Add 'show trace'. processor/help.rb: fix bug + in summary help basename.rb: standalone correction. trace.rb: much more in the way of describing what's going on in the help. 2010-02-09 rocky @@ -2733,6 +3706,7 @@ processor/main.rb, test/unit/test-proc-hook.rb, test/unit/test-proc-validate.rb: First command hook (autoirb) added. + 2010-02-07 rocky * processor/hook.rb, processor/main.rb, @@ -2749,6 +3723,7 @@ * test/functional/test-delete.rb: Add first delete functional test. + 2010-01-27 rocky * processor/breakpoint.rb, processor/command/delete.rb: Start delete @@ -2780,8 +3755,8 @@ processor/command/info_subcmd/file.rb, test/functional/test-break.rb, test/unit/test-cmd-endisable.rb: Fix bug in info break. Allow bp number to get reset, although what's - really needed is a rework of the bp and manger interfaces. Get - tests working again. + really needed is a rework of the bp and manger interfaces. Get tests + working again. 2009-12-30 rocky @@ -2802,7 +3777,7 @@ * app/core.rb, processor/command/set_subcmd/auto.rb, processor/command/set_subcmd/maxstring.rb, processor/command/set_subcmd/width.rb: maxstring.rb: dry code. More - is needed. width.rb: was buggy - should now work core.rb: add core + is needed. width.rb: was buggy - should now work core.rb: add core event debug setting 2009-12-07 rocky @@ -2820,9 +3795,8 @@ * lib/rbdbgr.rb, processor/command/set_subcmd/substitute_subcmd/string.rb: Make - debugger &block is less broken, or rather broken in another way. - Set substitute allows you to let it figure out what the iseq name - is. + debugger &block is less broken, or rather broken in another way. Set + substitute allows you to let it figure out what the iseq name is. 2009-12-06 rocky @@ -2878,9 +3852,10 @@ test/unit/test-lib-brkpt.rb: lib/irb.rb -> lib/dbgr-irb.rb The name lib/irb.rb causes it to be seen in gem package and conflict with the real irb's irb.rb! For now rename. May however move everything - except rbdbgr.rb out of lib. rbdbgr.rb -> lib/rbdbgr.rb : irb wasn't finding "require 'rbdbgr'" - because rbdbgr seems to be expected to live in lib. Rakefile: Update homepage and make description different from - summary to keep rake happy. + except rbdbgr.rb out of lib. rbdbgr.rb -> lib/rbdbgr.rb : irb + wasn't finding "require 'rbdbgr'" because rbdbgr seems to be + expected to live in lib. Rakefile: Update homepage and make + description different from summary to keep rake happy. 2009-12-06 rocky @@ -2956,8 +3931,8 @@ processor/command/set_subcmd/auto_subcmd/list.rb, processor/command/show_subcmd/auto_subcmd/list.rb, processor/main.rb, processor/mock.rb, test/functional/test-step.rb: - Add set/show auto list. In the process added pre-commands hook. - Pick up SHORT_HELP from help in subcommands. + Add set/show auto list. In the process added pre-commands hook. Pick + up SHORT_HELP from help in subcommands. 2009-11-06 rocky @@ -2985,7 +3960,7 @@ processor/command/list.rb, processor/validate.rb, test/functional/test-break.rb, test/unit/test-cmd-break.rb: Add breakpoint indicators in "list" command. Show line number(s) when a - breakpoint just set. Revise listing to use containers, rather than + breakpoint just set. Revise listing to use containers, rather than file names. 2009-11-04 rocky @@ -2996,8 +3971,20 @@ 2009-11-04 rocky - * : commit 560ef74dd49b8cb587b2e47ca81af82e956e406d Author: rocky - Date: Wed Nov 4 06:08:33 2009 -0500 + Merge branch 'master' of git@github.com:rocky/rbdbgr + +2009-11-04 rocky + + * processor/command/base/subsubmgr.rb, + processor/command/info_subcmd/registers.rb, + processor/command/info_subcmd/registers_subcmd/helper.rb, + processor/command/info_subcmd/registers_subcmd/lfp.rb, + processor/command/info_subcmd/registers_subcmd/pc.rb, + processor/command/info_subcmd/registers_subcmd/sp.rb, + processor/validate.rb: subsubmgr.rb: Fix bug in "help command + subcommand param". validate.rb: bug using wrong hash key. + registers/*: longer help. lfp.rb: check range. I probably have + indexing backwards and allow one too many. Perhaps more later. 2009-11-02 R. Bernstein @@ -3027,8 +4014,8 @@ processor/command/step.rb, processor/main.rb, processor/running.rb, profile/irbrc, test/functional/test-step.rb: Go over some stepping oddities and bugs. Add command NEED_RUNNING: start putting tracking - commands that need a running program. irb -d now sets global - $frame. Fix bug in "finish" command and "set debug skip" now works. + commands that need a running program. irb -d now sets global $frame. + Fix bug in "finish" command and "set debug skip" now works. 2009-10-29 rocky @@ -3065,8 +4052,8 @@ emacs/rbdbg-var.el, emacs/rbdbgr-core.el, emacs/test/test-regexp.el, emacs/test/test-track.el, lib/brkpt.rb, rbdbgr.rb: emacs/*: start to separate buffer-local vars for the - process buffer from the buffer-local vars of the (top-level Ruby) - script buffer. reset: mostly small doc-like changes. + process buffer from the buffer-local vars of the (top-level + Ruby) script buffer. reset: mostly small doc-like changes. 2009-10-26 rocky @@ -3089,8 +4076,8 @@ * emacs/rbdbg-track-mode.el, emacs/rbdbgr-core.el, emacs/rbdbgr-track-mode.el, processor/command/info_subcmd/iseq.rb: - iseq.rb: Show more information in "info seq". emacs/*: Key-bindings workaround in rbdbgr-track-mode and other - fixes. + iseq.rb: Show more information in "info seq". emacs/*: Key-bindings + workaround in rbdbgr-track-mode and other fixes. 2009-10-25 rocky @@ -3107,7 +4094,7 @@ * processor/command/disassemble.rb, processor/command/info_subcmd/iseq.rb: iseq.rb: Show instruction sequence breakpoints disassemble.rb: short by default (option is now - "full") allow '.' for current instruction sequence. + "full") allow '.' for current instruction sequence. 2009-10-24 rocky @@ -3144,13 +4131,14 @@ processor/command/set_subcmd/substitute_subcmd/string.rb, processor/frame.rb, processor/location.rb, processor/main.rb, processor/validate.rb: Add "set substitute string" to map string - eval names into a (temporary) file. emacs: expand regexp to deal + eval names into a (temporary) file. emacs: expand regexp to deal with "via" or "remap" strings. 2009-10-23 R. Bernstein * processor/command/info_subcmd/file.rb: Bug in running "info file" + 2009-10-23 R. Bernstein * processor/command/info_subcmd/iseq.rb, @@ -3160,8 +4148,17 @@ 2009-10-23 R. Bernstein - * : commit 97e43a889e41ba9838e763cd28e394ec7205e0af Author: R. - Bernstein Date: Fri Oct 23 16:02:31 2009 -0400 + Merge branch 'master' of git@github.com:rocky/rbdbgr + +2009-10-23 R. Bernstein + + * processor/command/info_subcmd/registers_subcmd/lfp.rb, + processor/command/info_subcmd/registers_subcmd/pc.rb, + processor/command/info_subcmd/registers_subcmd/sp.rb, + processor/command/set_subcmd/substitute.rb, + processor/command/set_subcmd/substitute_subcmd/path.rb, + processor/main.rb: Add gdb "set substitute path" in rudimentary + form. 2009-10-22 rocky @@ -3173,7 +4170,7 @@ processor/command/info_subcmd/file.rb, processor/main.rb: main.rb, file.rb: Remapping and more generally any file remapped shows up cmd.rb, file.rb: Show breakpoint numbers in the - way numbers are generally handled. in location line and has "info + way numbers are generally handled. in location line and has "info file" properties shown. 2009-10-22 rocky @@ -3212,6 +4209,7 @@ processor/main.rb, processor/validate.rb: Fix various bugs in/off of "disassemble" command, and showing internal debugger traceback, etc. + 2009-10-20 rocky * processor/command/info_subcmd/registers_subcmd/lfp.rb, @@ -3244,7 +4242,7 @@ processor/command/where.rb, processor/default.rb, processor/main.rb: main.rb: Don't crap out on an unhandled exception in running a command. We now have enough of the debugger working where we can - dynamically investicagate and fix things. Add "set/show debug" + dynamically investicagate and fix things. Add "set/show debug" subcommands for turning on/off internal debugger debugging. 2009-10-20 rocky @@ -3296,8 +4294,8 @@ * processor/command/break.rb, processor/main.rb, test/functional/fn_helper.rb, test/functional/test-break.rb: - main.rb: Fix bug in "disable" command. break.rb: Canonicalize name - in container. test/* grow for testing breakpoints. + main.rb: Fix bug in "disable" command. break.rb: Canonicalize name + in container. test/* grow for testing breakpoints. 2009-10-19 rocky @@ -3315,7 +4313,7 @@ processor/command/break.rb, processor/command/enable.rb, processor/running.rb: processor/command: add an "enable" command. processor/{breakpoint,running}.rb: move breakpoint code to a - separate file. processor/command/break.rb: category should be + separate file. processor/command/break.rb: category should be "breakpoint", not "running" lib/brkpt.rb: add enabled= 2009-10-19 R. Bernstein @@ -3334,7 +4332,7 @@ processor/command/info_subcmd/file.rb, processor/command/info_subcmd/frame.rb, processor/command/info_subcmd/program.rb: command/info_sub/break.rb: - Add "info break" command. command/{break.rb,info_sub/program.rb}: + Add "info break" command. command/{break.rb,info_sub/program.rb}: Use instruction sequence names to start to disambiguate locations. lib/break.rb: Add ignore field to breakpoint object. lib/brkptmgr.rb: add more of the useful Enumerable operators to @@ -3379,8 +4377,8 @@ processor/command/set_subcmd/auto_sub/irb.rb, processor/command/set_subcmd/auto_subcmd/eval.rb, processor/command/set_subcmd/auto_subcmd/irb.rb, - processor/command/show_subcmd/auto.rb: Add "info file" command. Fix - "set auto" subcommand. Remove extra \n in "List subcommands" help. + processor/command/show_subcmd/auto.rb: Add "info file" command. Fix + "set auto" subcommand. Remove extra \n in "List subcommands" help. Tidy up code more. 2009-10-17 rocky @@ -3392,14 +4390,14 @@ processor/command/info_subcmd/registers.rb, processor/command/info_subcmd/return.rb, processor/main.rb, processor/mock.rb, processor/msg.rb, processor/running.rb, - test/unit/test-lib-brkptmgr.rb: Lots of little changes... main.rb: + test/unit/test-lib-brkptmgr.rb: Lots of little changes... main.rb: Check breakpoint condition and find breakpoint command/info_subcmd: add PREFIX for future use command/info_subcmd/registers.rb: Minimum abbrev is now "reg" since there is a "return" command/break.rb: "b" is an alias for "break" lib/brkpt.rb: add enabled parameter, stay clear of name "binding" lib/brkptmgr.rb: add a "find" and "size" - commands, and access to list. command/*: complete I/O routine with - msg_nocr; DRY standalone code. running.rb: remove debug code. + commands, and access to list. command/*: complete I/O routine with + msg_nocr; DRY standalone code. running.rb: remove debug code. 2009-10-17 rocky @@ -3414,7 +4412,7 @@ processor/command/show_subcmd/auto_subcmd/eval.rb, processor/command/show_subcmd/auto_subcmd/irb.rb, processor/running.rb: Add a minimal breakpoint command. Add some gem - install workarounds. Redmove need for short help constant in + install workarounds. Redmove need for short help constant in subcommands. 2009-10-17 rocky @@ -3488,8 +4486,9 @@ processor/command/base_subsubmgr.rb, processor/command/help.rb, processor/subcmd.rb: help.rb, base_submgr.rb: Allow regexp matching of command names for help listing. Idea courtesy of Michael Lord - Welles. base_subcmd.rb + above: DRY columnize code brkptmgr.rb: Fix stupid syntax bug subcmd.rb: lookup() add optional parameter to decide on whether to - lookup by regexp or not. + Welles. base_subcmd.rb + above: DRY columnize code brkptmgr.rb: + Fix stupid syntax bug subcmd.rb: lookup() add optional parameter to + decide on whether to lookup by regexp or not. 2009-10-17 rocky @@ -3557,7 +4556,7 @@ processor/command/info_subcmd/registers_subcmd/sp.rb, processor/command/show_subcmd/auto.rb, processor/default.rb, processor/msg.rb: complete "info registers", adding "info register - lfp". Tidy help * output. default.rb: add saferep to truncate long + lfp". Tidy help * output. default.rb: add saferep to truncate long strings. 2009-10-14 rocky @@ -3579,8 +4578,8 @@ processor/command/show_subcmd/auto_subcmd/irb.rb, processor/command/show_subcmd/autoeval.rb, processor/command/show_subcmd/autoirb.rb: sub commands of 'show - auto' works, more or less. Remove 'show autoeval' and 'show - autoirb' in favor of 'show auto eval' and 'show auto irb'. + auto' works, more or less. Remove 'show autoeval' and 'show autoirb' + in favor of 'show auto eval' and 'show auto irb'. 2009-10-13 R. Bernstein @@ -3631,8 +4630,8 @@ processor/command/info_subcmd/pc.rb, processor/command/info_subcmd/registers.rb: Add "info registers" in the spirit of gdb. Remove "info pc" as this is now covered by "info - registers". frame.rb: now shows: manditory parameters after - optional ones. + registers". frame.rb: now shows: manditory parameters after optional + ones. 2009-09-30 rocky @@ -3659,7 +4658,7 @@ processor/command/info_subcmd/return.rb, processor/command/info_subcmd/sp.rb, test/functional/.gitignore, test/unit/test-cmd-kill.rb: pc.rb, sp.rb: add "info pc" and "info - sp" commands. info_subcmd/*.rb: remove SHORT_HELP which is set by + sp" commands. info_subcmd/*.rb: remove SHORT_HELP which is set by base class. 2009-09-29 rocky @@ -3685,12 +4684,13 @@ * test/functional/test-next.rb: Add "next" command functional test. + 2009-09-27 rocky * lib/frame.rb, processor/command/finish.rb, processor/command/step.rb, processor/main.rb, processor/running.rb, test/functional/test-step.rb: Add "finish" command. Fix bugs in - stepping to specific events. Add event names for all events: add + stepping to specific events. Add event names for all events: add switch, coverage and vm. 2009-09-27 rocky @@ -3702,14 +4702,14 @@ * interface/base_intf.rb, interface/script.rb, interface/user.rb, io/input.rb, processor/command/list.rb, processor/main.rb, processor/validate.rb, rbdbgr.rb, test/functional/test-step.rb: Null - return on interactive input now uses last command. Various code + return on interactive input now uses last command. Various code cleanups mostly on interfaces. More functional tests. 2009-09-26 rocky * lib/file.rb, processor/command/list.rb, processor/main.rb, processor/validate.rb: List function-name works now. list file:line - works too. Don't show file text if there's nothing to show. + works too. Don't show file text if there's nothing to show. 2009-09-26 rocky @@ -3719,7 +4719,7 @@ bin/rbdbgr run.rb: Move Rbdbgr module to a module list.rb: bang on some more restart.rb: Add Ruby interpreter if $0 is not executable mock.rb: remove debug statement rbdbgr.rb: Add :set_restart option - which is less cumbersome than using :restart_argv + which is less cumbersome than using :restart_argv 2009-09-26 rocky @@ -3732,7 +4732,7 @@ * processor/command/info_subcmd/frame.rb, processor/frame.rb: processor/info_subcmd/frame.rb: DRY code processor/frame.rb: - offset2lines semantic change in rb-threadframe. reduce bogus + offset2lines semantic change in rb-threadframe. reduce bogus behavior in standalone code. 2009-09-26 rocky @@ -3742,10 +4742,12 @@ processor/mock.rb, processor/validate.rb, test/unit/test-proc-frame.rb, test/unit/test-proc-validate.rb: list.rb: Hammer on "list" command a little. Needs a lot more work - though. validate.rb: Use confirm from interface in command processor. defaults.rb: Add defaults for "basename" and "autolist" (neither is - setable/showable yet). mock.rb: Add Debugger::Core mock which reduces bogusness in some - unit tests (proc-validate, proc-frame) file.rb Speaking of bogusness, add parse location routine which - doesn't work yet. + though. validate.rb: Use confirm from interface in command + processor. defaults.rb: Add defaults for "basename" and "autolist" + (neither is setable/showable yet). mock.rb: Add Debugger::Core mock + which reduces bogusness in some unit tests (proc-validate, + proc-frame) file.rb Speaking of bogusness, add parse location + routine which doesn't work yet. 2009-09-25 rocky @@ -3777,7 +4779,8 @@ * interface/base_intf.rb, test/functional/fn_helper.rb, test/functional/test-step.rb: base_intf.rb: use only I/O functions - we define. Was missing the newline. More work towards getting functional testing working. + we define. Was missing the newline. More work towards getting + functional testing working. 2009-09-24 R. Bernstein @@ -3800,20 +4803,21 @@ * io/input.rb, rbdbgr.rb, test/functional/fn_helper.rb, test/unit/test-intf-user.rb, test/unit/test-io-input.rb, test/unit/test-user.rb: input.rb: don't assume input has a tty? - method. rbdbgr.rb: Allow one to pass in the input and output - descriptors More and better unit tests. + method. rbdbgr.rb: Allow one to pass in the input and output + descriptors More and better unit tests. 2009-09-23 R. Bernstein * io/input.rb, test/unit/test-io-input.rb: :line_edit only works if - input is a tty. Add trivial unit test of io/input. + input is a tty. Add trivial unit test of io/input. 2009-09-23 R. Bernstein * interface/script.rb, interface/user.rb, io/input.rb, io/string_array.rb, processor/main.rb, test/unit/test-user.rb: Hook user/script interfaces to use new IO-based io/input. string_array - now (probably) is usable. main.rb eof is on the interface's input, not the interface. + now (probably) is usable. main.rb eof is on the interface's input, + not the interface. 2009-09-23 R. Bernstein @@ -3825,7 +4829,7 @@ * interface/base_intf.rb, interface/script.rb, interface/user.rb, io/base_io.rb, io/input.rb, processor/main.rb: input.rb: closer to - being usuable. main.rb: Add end and unknown as other unmaskable + being usuable. main.rb: Add end and unknown as other unmaskable events 2009-09-23 rocky @@ -3868,7 +4872,7 @@ processor/command/source.rb, processor/command/step.rb, processor/command/up.rb, processor/command/where.rb, processor/mock.rb, processor/subcmd.rb: DRY code with respect to - mock setup. rake :check => :check:lib :check:commands, etc. + mock setup. rake :check => :check:lib :check:commands, etc. 2009-09-22 rocky @@ -3877,16 +4881,19 @@ processor/command/irb.rb, processor/command/up.rb, processor/command/where.rb, processor/frame.rb, processor/main.rb, processor/running.rb: Fix bugs in suffix handling for step/next - commands. "last position" includes the stack size. frame_setup() - can figure out the thread, so no need to pass that. + commands. "last position" includes the stack size. frame_setup() can + figure out the thread, so no need to pass that. 2009-09-21 rocky * processor/command/set_subcmd/events.rb, processor/main.rb, processor/msg.rb: Correct process_command_and_quit? to do the right thing on interface EOF. Also, it now understands comments and how - to repeat the last command on the empty string. This removes bugs in stepping on a "source" command and the - duplicate stepping when leaving irb. events.rb: allow commas to end event names, i.e. set events line, call, return as well as: set events line call return + to repeat the last command on the empty string. This removes bugs + in stepping on a "source" command and the duplicate stepping when + leaving irb. events.rb: allow commas to end event names, i.e. set + events line, call, return as well as: set events line call return + 2009-09-21 R. Bernstein @@ -3906,7 +4913,10 @@ processor/mock.rb, processor/running.rb, rbdbgr.rb: Add custom irb profile for rbdbgr irb sessions. Running processor/command/irb.rb now runs irb which can be used to test the custom profile. Added irb - command 'n' for next. DRY step/next suffix detection code. Set defaults more for normal users: set autoeval on set events: remove instruction stepping set different on Did I mention that "next" now works? + command 'n' for next. DRY step/next suffix detection code. Set + defaults more for normal users: set autoeval on set events: + remove instruction stepping set different on Did I mention that + "next" now works? 2009-09-20 rocky @@ -3925,7 +4935,8 @@ * processor/command/base_cmd.rb, processor/command/source.rb, processor/command/step.rb, processor/main.rb, processor/mock.rb, processor/msg.rb, rbdbgr.rb: Pretty close to having a working - "source" command - needs a little more work on eof condition. To that end the, interface is now an array of interfaces. + "source" command - needs a little more work on eof condition. To + that end the, interface is now an array of interfaces. 2009-09-18 rocky @@ -3957,6 +4968,7 @@ processor/running.rb: Add set/show subcommand "set autoirb". Separate "running"-category code from the various debugger commands. + 2009-09-17 rockyb * bin/rbdbgr, lib/irb.rb: Use excluded correctly. Disable @@ -4035,7 +5047,7 @@ processor/command/set_subcmd/traceset.rb, processor/command/show_subcmd/events.rb, processor/command/show_subcmd/traceset.rb: set/show traceset -> - set/show event info line -> info frame Minor other corrections. + set/show event info line -> info frame Minor other corrections. 2009-09-12 rocky @@ -4070,9 +5082,9 @@ processor/command/step.rb, processor/default.rb, processor/main.rb, test/unit/test-bin-rbdbgr.rb, test/unit/test-cmd-help.rb, test/unit/test-cmd-step.rb: Add ability to step by different - position: set/show different and s[tep]{+,-}. Add unit test for step command which in the process found a bug in - handling "step" as well as showing how to improve unit test for the - help command. + position: set/show different and s[tep]{+,-}. Add unit test for + step command which in the process found a bug in handling "step" as + well as showing how to improve unit test for the help command. 2009-09-10 R. Bernstein @@ -4091,7 +5103,7 @@ 2009-09-09 rocky * Rakefile, bin/rbdbgr: rbdbgr: Set restart args correclty. I have a - feeling I will be using this a lot. Rakefile: start work to make a + feeling I will be using this a lot. Rakefile: start work to make a gem. Doesn't work yet though. 2009-09-09 rocky @@ -4101,17 +5113,20 @@ processor/command/base_subsubmgr.rb, processor/command/show_subcmd/trace.rb, processor/main.rb, processor/mock.rb: rbdbgr: save/set/restore $0. Exclude - debug_program. Pass in debugger object. Try using $rbdbgr for - global debugger variable. Start sub commands of sub commands. Not working yet. Define/use some processor attr_reader's to remove ugly - instance_variable_get's. + debug_program. Pass in debugger object. Try using $rbdbgr + for global debugger variable. Start sub commands of sub commands. + Not working yet. Define/use some processor attr_reader's to remove + ugly instance_variable_get's. 2009-09-09 R. Bernstein * Rakefile, processor/command/base_subcmd.rb, processor/command/base_submgr.rb, processor/command/kill.rb, processor/mock.rb, processor/msg.rb, processor/subcmd.rb, rbdbgr.rb: - Start using user inteface from command processor. Add rake tasks to be able to run all pieces of the debugger - individually (tasks check:lib, check:commands, and check:processor). Kill deal with failed kill via Errno::ESRCH. + Start using user inteface from command processor. Add rake tasks to + be able to run all pieces of the debugger individually (tasks + check:lib, check:commands, and check:processor). Kill deal with + failed kill via Errno::ESRCH. 2009-09-09 rocky @@ -4125,8 +5140,9 @@ 2009-09-08 rocky * bin/rbdbgr, interface/base_intf.rb, interface/user.rb: - interface/*: DRY code a little bin/rbdbgr: Scope variables better, make routines in rbdbgr more - unit testable partially by allowing rbdbgr to be loaded/required. + interface/*: DRY code a little bin/rbdbgr: Scope variables better, + make routines in rbdbgr more unit testable partially by allowing + rbdbgr to be loaded/required. 2009-09-08 R. Bernstein @@ -4136,8 +5152,11 @@ 2009-09-08 rocky - * : commit 1920a02cb99f31db9052d194d711d1e0df8670d8 Author: rocky - Date: Tue Sep 8 08:02:55 2009 -0400 + Merge branch 'master' of git@github.com:rocky/rbdbgr + +2009-09-08 rocky + + * Rakefile: Default task for now is test. 2009-09-08 rocky @@ -4289,8 +5308,8 @@ * emacs/rbdbg-file.el, emacs/rbdbg-loc.el, emacs/rbdbg-lochist.el, emacs/rbdbg-track.el, emacs/test/test-loc.el: Pretty much a working comint hook. I can't believe how something this simple was made so - complicated. And we don't need no stinking buffer in a location object - An Emacs - mark contains a reference to a buffer. + complicated. And we don't need no stinking buffer in a location + object - An Emacs mark contains a reference to a buffer. 2009-08-25 rockyb @@ -4327,7 +5346,8 @@ emacs/rbdbg-lochist.el, emacs/rbdbg-locring.el, emacs/test/.gitignore, emacs/test/behave.el, emacs/test/test-loc.el, emacs/test/test-locring.el: Start rewriting - Emacs/Debugger interaction code. From scratch. This doesn't do anything useful yet. + Emacs/Debugger interaction code. From scratch. This doesn't do + anything useful yet. 2009-08-23 rocky @@ -4354,10 +5374,11 @@ processor/command/show_subcmd/traceset.rb, processor/command/show_subcmd/width.rb, processor/command/step.rb, processor/command/up.rb, processor/command/where.rb, - processor/mock.rb, rbdbgr.rb: Add a "restart" command. We can now debug debugger commands; debugger writers: eat your heart - out! DRY debugger-command demo code by putting more of the boilerplate - code into mock.rb More demoing done added through the advanced magic - of loops. + processor/mock.rb, rbdbgr.rb: Add a "restart" command. We can now + debug debugger commands; debugger writers: eat your heart out! DRY + debugger-command demo code by putting more of the boilerplate code + into mock.rb More demoing done added through the advanced magic of + loops. 2009-08-21 rocky @@ -4371,8 +5392,8 @@ * lib/core.rb, processor/command/disassemble.rb, processor/main.rb: core.rb: trace vm instructions - Yeah baby! disassemble.rb: show - disassembly for *anything* that responds to disasm better error - message for being in C functions. main.rb: add more even icons and + disassembly for *anything* that responds to disasm better error + message for being in C functions. main.rb: add more even icons and show even when we don't have an icon. 2009-08-21 R. Bernstein @@ -4386,8 +5407,12 @@ 2009-08-21 R. Bernstein - * : commit 3696fa2f4dbc70e7a81e12dc5194d77208bb3de6 Author: R. - Bernstein Date: Fri Aug 21 09:20:29 2009 -0400 + Merge branch 'master' of git@github.com:rocky/rbdbgr + +2009-08-21 R. Bernstein + + * lib/core.rb, processor/main.rb, rbdbgr.rb: Add more icons. And a + class test. 2009-08-20 rocky @@ -4399,7 +5424,7 @@ * lib/core.rb, rbdbgr.rb: Add event after debugger-call debugging. Don't show stopping points inside debugger method for when - :immediate => true It's almost looking like a real debugger. + :immediate => true It's almost looking like a real debugger. 2009-08-18 rocky @@ -4411,6 +5436,7 @@ * processor/command/step.rb: Add step command - this time, for sure! + 2009-08-18 rocky * lib/core.rb, processor/command/continue.rb, @@ -4483,7 +5509,7 @@ processor/msg.rb, processor/validate.rb, rbdbgr.rb, test/unit/test-proc-validate.rb: Add a 'kill' command - don't know how I lived this long without it! Add confirm method. Use full - sentences in command messages. Start testing validation routines. + sentences in command messages. Start testing validation routines. Nuke trace hook until I figure out the garbage collection segv. I'll be back! @@ -4499,8 +5525,14 @@ 2009-08-08 rocky - * : commit 0fedb641a33656b55f2020340f21872a3160c529 Author: rocky - Date: Wed Aug 12 20:22:52 2009 -0400 + Merge branch 'master' of git@github.com:rocky/rbdbgr Conflicts: + processor/main.rb Conflicts: processor/main.rb + +2009-08-12 rocky + + * processor/command/exit.rb, processor/command/help.rb, + processor/command/where.rb, processor/main.rb, + test/unit/test-proc-main.rb: I hate conflicted merges 2009-08-08 rocky @@ -4510,8 +5542,15 @@ 2009-08-08 rocky - * : commit cdcfba71a1e69d3158faa475f4f616287bb2afb3 Author: R. - Bernstein Date: Wed Aug 12 13:06:18 2009 -0400 + Merge branch 'master' of git@github.com:rocky/rbdbgr Conflicts: + processor/command/exit.rb processor/command/help.rb + processor/command/where.rb processor/main.rb + test/unit/test-proc-main.rb + +2009-08-12 R. Bernstein + + * processor/command/base_subcmd.rb: Playing switch-board operator. + You know, delegation not inheritance 2009-08-12 rockyb @@ -4551,7 +5590,7 @@ processor/command/set_subcmd/width.rb, processor/command/show_subcmd/.gitignore, processor/main.rb: Debugger::Subcommand is a subclass of Debugger::Command - DRYs code - a little bit. Add undefined command message used when set autoeval + a little bit. Add undefined command message used when set autoeval is off. 2009-08-08 rocky @@ -4655,7 +5694,7 @@ processor/main.rb, processor/mock.rb, rbdbgr.rb, test/unit/test-cmd-help.rb, test/unit/test-cmdproc.rb, test/unit/test-proc-main.rb: Separate Debugger, Debugger::Core and - Debugger::CmdProcessor settings. Fix bugs in "where" command. Add + Debugger::CmdProcessor settings. Fix bugs in "where" command. Add ruby-debug stack_trace_on_error option. 2009-08-05 rocky @@ -4665,8 +5704,10 @@ processor/command/where.rb, processor/mock.rb, processor/validate.rb, rbdbgr.rb, test/unit/test-proc-frame.rb: Add access to (top-)level debugger settings - help uses "width" setting - of this now. Start a mock Debugger to help runing/testing individual commands - standalone. Fix bugs in get_int of validate. "where" now sets a max int value. Probably some other things as well. Whew. + of this now. Start a mock Debugger to help runing/testing + individual commands standalone. Fix bugs in get_int of validate. + "where" now sets a max int value. Probably some other things as + well. Whew. 2009-08-04 rocky @@ -4681,7 +5722,7 @@ processor/command/help.rb, processor/command/up.rb, processor/command/where.rb: API change requires that we can no longer create a Debugger::Core object without a Debugger object. - Adjust command standalone demo for this. Todo: create a common mock + Adjust command standalone demo for this. Todo: create a common mock helper module. 2009-08-04 rocky @@ -4691,8 +5732,9 @@ processor/frame.rb, rbdbgr.rb, test/unit/test-cmd-help.rb, test/unit/test-cmdproc.rb, test/unit/test-proc-frame.rb: Bug fix for negative positioning in frame command. help doc corrections in - up/down. Start adding debugger settings. In doing so we also start start - linking together core, command_processor and debugger objects. + up/down. Start adding debugger settings. In doing so we also start + start linking together core, command_processor and debugger objects. + 2009-08-03 rocky @@ -4754,7 +5796,8 @@ 2009-07-30 rocky * lib/frame.rb: Don't use ThreadFrame#caller_method but - eval('self.class', frame.binding) instead. Add stack frame numbers to stack listing. + eval('self.class', frame.binding) instead. Add stack frame numbers + to stack listing. 2009-07-28 rocky @@ -4781,7 +5824,7 @@ * processor/cmdproc.rb, processor/command/help.rb, processor/command/where.rb: Get "where" command to a point where it - is minimally useful. Start "help" command. + is minimally useful. Start "help" command. 2009-07-25 rocky @@ -4810,10 +5853,10 @@ * lib/core.rb, lib/frame.rb, lib/stack.rb, processor/cmdproc.rb, processor/command/base_cmd.rb, processor/command/exit.rb, processor/command/where.rb, rbdbgr.rb: where.rb: now to the state - where it does something remotely useful. process_command_and_quit? + where it does something remotely useful. process_command_and_quit? doesn't try to run a comand after running it cmdproc.rb: set up - access from commmand to core and itself. rbdbgr.rb: add debugger() - method. exit.rb: fix bug in calling exit without args. + access from commmand to core and itself. rbdbgr.rb: add debugger() + method. exit.rb: fix bug in calling exit without args. 2009-07-18 rocky @@ -4878,3 +5921,4 @@ * Baby steps toward a real debugger. Hah - Florian, I beat you to it! + diff --git a/NEWS b/NEWS index f16380c..97c104e 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,18 @@ +March 15, 2011 (0.0.6) +- Revise breakpoint location parsing + * Add: break if/unless + * Add: step until + * VM offsets are now specified via @ rather than o or O + * Filenames can be quoted and blanks and characters inside escaped +- Document command syntax by adding it as a new category with sub help +- More controlled parsing of method names +- Add eval (no args) and eval? to run current source line or source line + eval? strips: + * leading "if", "elsif", "while", "until" "return" or "case", or "unless" + * trailing "then", "do" +- Save and restore some debugger state across a restart +- Redo command completion + Feb 15, 2011 (0.0.5) - "disassemble" command: allow disassembly of specified line numbers - GNU Readline: