From e35f1972a41812b7f19b57e781807d6572d868e3 Mon Sep 17 00:00:00 2001 From: rocky Date: Tue, 12 Nov 2024 20:31:59 -0500 Subject: [PATCH] Get ready for release 1.3.0 --- ChangeLog-spell-corrected.diff | 826 ++++++++++++++++++ NEWS.md | 20 +- README.rst | 52 +- ...-versions.sh => check-3.3-3.5-versions.sh} | 14 +- admin-tools/check-3.6-3.10-versions.sh | 7 +- admin-tools/check-newest-versions.sh | 7 +- admin-tools/pyenv-3.3-3.5-versions | 2 +- admin-tools/setup-master.sh | 3 +- admin-tools/setup-python-3.0.sh | 3 +- docs/commands/set/asmfmt.rst | 4 +- docs/commands/set/events.rst | 4 +- docs/commands/show/asmfmt.rst | 4 +- docs/commands/stack/frame.rst | 2 +- trepan/processor/command/info_subcmd/frame.py | 8 +- trepan/version.py | 2 +- 15 files changed, 914 insertions(+), 44 deletions(-) create mode 100644 ChangeLog-spell-corrected.diff rename admin-tools/{check-3.2-3.5-versions.sh => check-3.3-3.5-versions.sh} (63%) diff --git a/ChangeLog-spell-corrected.diff b/ChangeLog-spell-corrected.diff new file mode 100644 index 00000000..52587eef --- /dev/null +++ b/ChangeLog-spell-corrected.diff @@ -0,0 +1,826 @@ +--- ChangeLog 2024-11-13 09:22:50.948319982 -0500 ++++ ChangeLog-spell-corrected 2024-11-13 09:22:29.986540128 -0500 +@@ -4,7 +4,7 @@ + admin-tools/setup-python-3.0.sh, docs/commands/set/asmfmt.rst, + docs/commands/set/events.rst, docs/commands/show/asmfmt.rst, + docs/commands/stack/frame.rst, +- trepan/processor/command/info_subcmd/frame.py, trepan/version.py: ++ trepan/processor/command/info_subcmd/frame.py, trepan/version.py: + Get ready for release 1.3.0 + + 2024-11-12 rocky +@@ -61,7 +61,7 @@ + 2024-11-11 R. Bernstein + + * docs/entry-exit.rst, pyproject.toml, trepan/__main__.py, +- trepan/api.py, trepan/client.py, trepan/processor/cmdproc.py: ++ trepan/api.py, trepan/client.py, trepan/processor/cmdproc.py: + Supoprt 3.7+ breakpoint() call (#63) + + 2024-11-11 rocky +@@ -95,7 +95,7 @@ + trepan/processor/command/info_subcmd/locals.py, + trepan/processor/command/info_subcmd/macro.py, + trepan/processor/command/info_subcmd/signals.py, +- trepan/processor/command/unalias.py, trepan/processor/complete.py: ++ trepan/processor/command/unalias.py, trepan/processor/complete.py: + Note "complete" is GNU-Readline complete + + 2024-11-10 R. Bernstein +@@ -184,7 +184,7 @@ + + 2024-10-14 rocky + +- * admin-tools/setup-python-3.3.sh, admin-tools/setup-python-3.6.sh: ++ * admin-tools/setup-python-3.3.sh, admin-tools/setup-python-3.6.sh: + Admnisitrivia + + 2024-10-09 rocky +@@ -213,7 +213,7 @@ + make-dist-3.3-3.5.sh}, admin-tools/merge-for-3.0.sh, + admin-tools/{merge-for-3.2.sh => merge-for-3.3.sh}, + admin-tools/{pyenv-3.2-3.5-versions => pyenv-3.3-3.5-versions}, +- admin-tools/{setup-python-3.2.sh => setup-python-3.3.sh}: ++ admin-tools/{setup-python-3.2.sh => setup-python-3.3.sh}: + Administrivia + + 2024-10-09 rocky +@@ -252,7 +252,7 @@ + + 2024-09-29 rocky + +- * trepan/lib/core.py, trepan/processor/command/info_subcmd/frame.py: ++ * trepan/lib/core.py, trepan/processor/command/info_subcmd/frame.py: + Small changes... to "info frame" and trace_hook debugging + + 2024-09-29 rocky +@@ -290,9 +290,9 @@ + + * trepan/processor/command/load.py: expand load to handle top-level + modules... Previously we only allowed a single module with a single command. +- Now we can put serveral commands/modules under a single ++ Now we can put several commands/modules under a single + package/module. For example we handle "load trepan3k_mathics3" in addition to the +- previouly supported "load mathics3k_mathics3.printelement" ++ previously supported "load mathics3k_mathics3.printelement" + + 2024-09-22 rocky + +@@ -362,7 +362,7 @@ + + 2024-09-21 rocky + +- * admin-tools/pyenv-3.6-3.10-versions, test/functional/test_step.py: ++ * admin-tools/pyenv-3.6-3.10-versions, test/functional/test_step.py: + Changes for 3.6-3.10 branch + + 2024-09-21 R. Bernstein +@@ -396,7 +396,7 @@ + * Makefile, test/integration/test-highlight.py, + test/integration/test-noscript.py, + test/integration/test_highlight.py, +- test/integration/test_noscript.py, test/integration/test_step.py: ++ test/integration/test_noscript.py, test/integration/test_step.py: + Get integration tests working again + + 2024-09-15 rocky +@@ -486,7 +486,7 @@ + + 2024-08-28 rocky + +- * admin-tools/setup-python-3.0.sh, admin-tools/setup-python-3.6.sh: ++ * admin-tools/setup-python-3.0.sh, admin-tools/setup-python-3.6.sh: + Administrivia + + 2024-08-26 rocky +@@ -552,7 +552,7 @@ + + 2024-08-25 rocky + +- * trepan/processor/cmdproc.py, trepan/processor/command/frame.py: ++ * trepan/processor/cmdproc.py, trepan/processor/command/frame.py: + small tweaks... Use thread.getName -> name since former is deprecated I messed up in + comment on what curindex represents Initialize position_str + +@@ -573,7 +573,7 @@ + 2024-08-24 rocky + + * trepan/lib/format.py, trepan/lib/stack.py, +- trepan/processor/command/frame.py, trepan/processor/frame.py: ++ trepan/processor/command/frame.py, trepan/processor/frame.py: + Modernize a little ... more f-strings, more import from's, add more annotations + + 2024-08-24 rocky +@@ -679,7 +679,7 @@ + + 2024-07-25 rocky + +- * trepan/processor/command/p.py, trepan/processor/command/pp.py: ++ * trepan/processor/command/p.py, trepan/processor/command/pp.py: + Misc + + 2024-07-25 rocky +@@ -699,12 +699,12 @@ + + * admin-tools/make-dist-3.0-3.1.sh, + admin-tools/make-dist-3.2-3.5.sh, admin-tools/setup-master.sh, +- admin-tools/setup-python-3.0.sh, admin-tools/setup-python-3.6.sh: ++ admin-tools/setup-python-3.0.sh, admin-tools/setup-python-3.6.sh: + Administrivia + + 2024-07-22 rocky + +- * admin-tools/setup-master.sh, admin-tools/setup-python-3.6.sh: ++ * admin-tools/setup-master.sh, admin-tools/setup-python-3.6.sh: + Administrivia + + 2024-07-22 rocky +@@ -783,7 +783,7 @@ + * docs/commands/data/disassemble.rst, trepan/lib/bytecode.py, + trepan/lib/default.py, trepan/lib/format.py, + trepan/processor/command/disassemble.py: Fix some of the funky +- terminal highight problems.. more remain. Doc asmft ++ terminal highlight problems.. more remain. Doc asmft + + 2024-03-06 rocky + +@@ -835,14 +835,14 @@ + + 2024-02-11 rocky + +- * admin-tools/{check-newer-versions.sh => check-newest-versions.sh}: ++ * admin-tools/{check-newer-versions.sh => check-newest-versions.sh}: + Rename check program to something better + + 2024-02-11 rocky + + * test/functional/test_break.py, test/functional/test_finish.py, + test/functional/test_jump.py, test/functional/test_sig.py, +- test/functional/test_skip.py: Remove exectuable mode bit ++ test/functional/test_skip.py: Remove executable mode bit + + 2024-02-11 rocky + +@@ -888,12 +888,12 @@ + + 2024-02-05 rocky + +- * __pkginfo__.py, test/unit/test_api.py: 3.10 compatability and ++ * __pkginfo__.py, test/unit/test_api.py: 3.10 comparability and + uncompyle6 selection + + 2024-02-05 rocky + +- * test/functional/test-next.py, test/functional/test_next.py: ++ * test/functional/test-next.py, test/functional/test_next.py: + Convert test_next.py + + 2024-02-04 rocky +@@ -984,7 +984,7 @@ + test/unit/inout/test_inout_input.py, + test/unit/processor/test_proc_subcmd.py, test/unit/test-fifo.py, + test/unit/test-inout-input.py, test/unit/test-subcmd.py, +- trepan/processor/command/set_subcmd/style.py: Convert remainging ++ trepan/processor/command/set_subcmd/style.py: Convert remaining + unit tests ... and reduce nose dependency. + + 2024-01-28 rocky +@@ -1050,7 +1050,7 @@ + * test/unit/processor/command/test_cmd_alias.py, + test/unit/processor/command/test_cmd_info_files.py, + test/unit/processor/command/test_cmd_list.py, +- test/unit/test-cmd-alias.py, trepan/processor/command/alias.py: ++ test/unit/test-cmd-alias.py, trepan/processor/command/alias.py: + Convert "alias" unit test to pytest + + 2024-01-23 rocky +@@ -1075,7 +1075,7 @@ + + 2024-01-16 rocky + +- * test/unit/lib/test_lib_stack.py, test/unit/lib/test_lib_thread.py: ++ * test/unit/lib/test_lib_stack.py, test/unit/lib/test_lib_thread.py: + Lint more + + 2024-01-16 rocky +@@ -1159,7 +1159,7 @@ + test/unit/test_cmd_break.py, test/unit/test_cmd_finish.py, + test/unit/test_cmd_run.py, test/unit/test_lib_bytecode.py, + test/unit/test_quit.py, trepan/interfaces/user.py, +- trepan/processor/command/quit.py, trepan/processor/command/run.py: ++ trepan/processor/command/quit.py, trepan/processor/command/run.py: + More unit tests converted to pytest + + 2024-01-15 rocky +@@ -1182,7 +1182,7 @@ + trepan/lib/default.py, trepan/lib/deparse.py, + trepan/lib/disassemble.py, trepan/lib/file.py, + trepan/lib/format.py, trepan/lib/pp.py, trepan/lib/printing.py, +- trepan/lib/sighandler.py, trepan/lib/stack.py, trepan/lib/thred.py: ++ trepan/lib/sighandler.py, trepan/lib/stack.py, trepan/lib/thred.py: + Another pass over trepan/lib + + 2024-01-14 rocky +@@ -1216,7 +1216,7 @@ + + 2024-01-14 rocky + +- * test/unit/test-completion.py, test/unit/test_completion.py: ++ * test/unit/test-completion.py, test/unit/test_completion.py: + Another test converted + + 2024-01-14 rocky +@@ -1273,12 +1273,12 @@ + + 2023-12-17 rocky + +- * .gitignore, test/unit/test-lib-sig.py, trepan/lib/sighandler.py: ++ * .gitignore, test/unit/test-lib-sig.py, trepan/lib/sighandler.py: + Small lint corrections + + 2023-09-04 rocky + +- * admin-tools/pyenv-newer-versions, admin-tools/setup-master.sh: ++ * admin-tools/pyenv-newer-versions, admin-tools/setup-master.sh: + Bump testing versions + + 2023-09-04 rocky +@@ -1292,13 +1292,13 @@ + + 2023-07-01 rocky + +- * admin-tools/setup-master.sh, admin-tools/setup-python-3.2.sh: ++ * admin-tools/setup-master.sh, admin-tools/setup-python-3.2.sh: + Checkout of 3.2 branch was missing pyficache and xdis + + 2023-06-10 rocky + + * .pre-commit-config.yaml, admin-tools/pyenv-newer-versions, +- admin-tools/setup-master.sh, trepan/processor/command/deparse.py: ++ admin-tools/setup-master.sh, trepan/processor/command/deparse.py: + Bump testing package versions + + 2023-06-10 rocky +@@ -1602,7 +1602,7 @@ + + 2021-11-25 rocky + +- * admin-tools/pyenv-newer-versions, trepan/processor/cmdfns.py: ++ * admin-tools/pyenv-newer-versions, trepan/processor/cmdfns.py: + Remove PYTHON_VERSION + + 2021-11-19 rocky +@@ -1620,7 +1620,7 @@ + + 2021-10-30 rocky + +- * admin-tools/setup-master.sh, admin-tools/setup-python-3.2.sh: ++ * admin-tools/setup-master.sh, admin-tools/setup-python-3.2.sh: + Admnistrivia + + 2021-10-30 R. Bernstein +@@ -1647,7 +1647,7 @@ + + * __pkginfo__.py, docs/conf.py, setup.py, + trepan/lib/disassemble.py, trepan/lib/stack.py, +- trepan/processor/command/deparse.py, trepan/processor/location.py: ++ trepan/processor/command/deparse.py, trepan/processor/location.py: + More newer xdis compatibility + + 2021-09-30 rocky +@@ -1737,7 +1737,7 @@ + + 2021-06-23 rocky + +- * trepan/version.py: Black shoudn't format version.py ++ * trepan/version.py: Black shouldn't format version.py + + 2021-06-23 rocky + +@@ -1810,7 +1810,7 @@ + + 2021-03-15 rocky + +- * admin-tools/how-to-make-a-release.md, trepan/processor/cmdproc.py: ++ * admin-tools/how-to-make-a-release.md, trepan/processor/cmdproc.py: + Fix bug encountered in `set patmap` The code is I think a holdover from some earlier code that no longer + exists. + +@@ -1820,7 +1820,7 @@ + admin-tools/how-to-make-a-release.md, admin-tools/pyenv-versions, + setup.py, tox.ini, trepan/__init__.py, trepan/__main__.py, + trepan/client.py, trepan/processor/command/__init__.py, +- trepan/processor/command/set_subcmd/tempdir.py, trepan/version.py: ++ trepan/processor/command/set_subcmd/tempdir.py, trepan/version.py: + Get ready for release 1.2.3 + + 2021-01-24 rocky +@@ -2019,7 +2019,7 @@ + + 2020-06-16 rocky + +- * trepan/processor/cmdbreak.py, trepan/processor/location.py: ++ * trepan/processor/cmdbreak.py, trepan/processor/location.py: + breakpoint-handling fixes... have to back off adding function into breakpoint structure. + Location is returning an "int" sometimes. Need to investigate, but + for now... +@@ -2127,14 +2127,14 @@ + test/unit/test-cmdbreak.py, trepan/lib/breakpoint.py, + trepan/processor/cmdbreak.py, trepan/processor/command/break.py, + trepan/processor/command/info_subcmd/line.py, +- trepan/processor/location.py, trepan/processor/parse/semantics.py: ++ trepan/processor/location.py, trepan/processor/parse/semantics.py: + Start adding/reporting code offsets in debugger + + 2020-06-11 rocky + + * .circleci/config.yml, .travis.yml, __pkginfo__.py, +- requirements.txt, trepan/processor/command/info_subcmd/line.py: +- Expanded xdis line/offset in "info line"... using information from xdis. We can now describe * What other offsets are stoppable for that line * what function the line is in * The starting offset and how many intructions are in the line ++ requirements.txt, trepan/processor/command/info_subcmd/line.py: ++ Expanded xdis line/offset in "info line"... using information from xdis. We can now describe * What other offsets are stoppable for that line * what function the line is in * The starting offset and how many instructions are in the line + + 2020-06-10 rocky + +@@ -2199,7 +2199,7 @@ + * trepan/api.py, trepan/processor/command/base_cmd.py, + trepan/processor/command/continue.py, + trepan/processor/command/deparse.py, +- trepan/processor/command/next.py, trepan/processor/command/show.py: ++ trepan/processor/command/next.py, trepan/processor/command/show.py: + Blacken and update trepan.api DRY, DebuggerCommand class vars initialization + + 2020-06-04 rocky +@@ -2359,7 +2359,7 @@ + 2020-05-14 rocky + + * trepan/inout/base.py, trepan/inout/output.py, +- trepan/lib/default.py, trepan/lib/pp.py, trepan/lib/printing.py: ++ trepan/lib/default.py, trepan/lib/pp.py, trepan/lib/printing.py: + Blacken and lint some files + + 2020-05-14 rocky +@@ -2376,7 +2376,7 @@ + + 2020-05-13 rocky + +- * README.rst, docs/commands/show/autopc.rst, docs/features.rst: ++ * README.rst, docs/commands/show/autopc.rst, docs/features.rst: + Update Docs yet again. + + 2020-05-13 rocky +@@ -2433,7 +2433,7 @@ + + * test/unit/test-lib-format.py, trepan/lib/deparse.py, + trepan/processor/command/continue.py, +- trepan/processor/command/quit.py, trepan/processor/command/step.py: ++ trepan/processor/command/quit.py, trepan/processor/command/step.py: + Misc modernization & skip a test... Something in reflowing adds spaces. Don't need/want to deal with + that now. + +@@ -2532,7 +2532,7 @@ + 2020-04-24 rocky + + * .circleci/config.yml, .travis.yml, __pkginfo__.py: Bump xdis +- version now that a new verison is out ++ version now that a new version is out + + 2020-04-22 R. Bernstein + +@@ -2569,7 +2569,7 @@ + + 2020-03-16 rocky + +- * __pkginfo__.py, admin-tools/how-to-make-a-release.md, setup.py: ++ * __pkginfo__.py, admin-tools/how-to-make-a-release.md, setup.py: + Administrivia release-type fixes + + 2020-03-16 rocky +@@ -2600,7 +2600,7 @@ + + 2019-11-16 rocky + +- * admin-tools/pyenv-newer-versions, admin-tools/setup-master.sh: ++ * admin-tools/pyenv-newer-versions, admin-tools/setup-master.sh: + Administriva - bump testing versions + + 2019-11-11 rocky +@@ -2647,11 +2647,11 @@ + + 2019-09-30 rocky + +- * docs/entry-exit.rst: extry/exit Doc python doc fix ++ * docs/entry-exit.rst: entry/exit Doc python doc fix + + 2019-09-30 rocky + +- * docs/entry-exit.rst, trepan/api.py, trepan/processor/cmdproc.py: ++ * docs/entry-exit.rst, trepan/api.py, trepan/processor/cmdproc.py: + Misc IPython-related and doc fixes + + 2019-09-30 rocky +@@ -2838,7 +2838,7 @@ + 2018-06-02 JimmyG + + * trepan/options.py: keep it from sourcing twice, if the +- startup-profile has alreay setup. trepan.api.debug(start_opts={'startup-profile': ++ startup-profile has already setup. trepan.api.debug(start_opts={'startup-profile': + ['$HOME/.config/trepanpy/profile']}) + + 2018-06-01 rocky +@@ -3005,7 +3005,7 @@ + + 2018-03-21 rocky + +- * trepan/lib/disassemble.py, trepan/processor/command/deparse.py: ++ * trepan/lib/disassemble.py, trepan/processor/command/deparse.py: + Python sourcecode lines go into 1,000s... So save 4 places for these. + + 2018-03-13 rocky +@@ -3052,7 +3052,7 @@ + + 2018-02-16 rocky + +- * __pkginfo__.py, setup.py, trepan/processor/command/disassemble.py: ++ * __pkginfo__.py, setup.py, trepan/processor/command/disassemble.py: + disassemble improvements + + 2018-02-11 rocky +@@ -3143,7 +3143,7 @@ + + * trepan/lib/deparse.py, trepan/lib/disassemble.py, + trepan/processor/cmdfns.py, trepan/processor/cmdproc.py: Start +- deparse line remaping ++ deparse line remapping + + 2018-01-22 rocky + +@@ -3160,7 +3160,7 @@ + + 2018-01-21 rocky + +- * admin-tools/how-to-make-a-release.md, admin-tools/make-dist.sh: ++ * admin-tools/how-to-make-a-release.md, admin-tools/make-dist.sh: + Admin tweak + + 2018-01-21 rocky +@@ -3191,7 +3191,7 @@ + + 2018-01-19 rocky + +- * trepan/processor/cmdbreak.py, trepan/processor/command/break.py: ++ * trepan/processor/cmdbreak.py, trepan/processor/command/break.py: + Add force option on break + + 2018-01-18 rocky +@@ -3419,7 +3419,7 @@ + 2017-08-10 rocky + + * celery/README.md, celery/{trepan.py => ctrepan.py}, +- trepan/interfaces/client.py, trepan/processor/command/python.py: ++ trepan/interfaces/client.py, trepan/processor/command/python.py: + Bang on celery remote debugging and... Improve exception handling when going into python: don't go into + post-mortem debugging. + +@@ -3450,7 +3450,7 @@ + 2017-08-04 rocky + + * celery/trepan.py, trepan/inout/tcpserver.py, +- trepan/interfaces/server.py, trepan/processor/command/python.py: ++ trepan/interfaces/server.py, trepan/processor/command/python.py: + Bang on remote execution more + + 2017-08-03 rocky +@@ -3574,7 +3574,7 @@ + trepan/processor/command/info_subcmd/pc.py, + trepan/processor/command/info_subcmd/program.py, + trepan/processor/command/kill.py, trepan/version.py: Sync with +- trepan2 and bump version Get ready for releae 0.7.4 * Go over documentation * disassemble: show function header when given a frame pointer * make sure we use later uncompyle6 and xdis ++ trepan2 and bump version Get ready for release 0.7.4 * Go over documentation * disassemble: show function header when given a frame pointer * make sure we use later uncompyle6 and xdis + + 2017-06-01 rocky + +@@ -3615,7 +3615,7 @@ + + * .gitignore, MANIFEST.in, setup.py, + test/data/highlight-pyp35.right, test/data/macro-pypy35.right, +- test/integration/.gitignore, trepan/__init__.py, trepan/api.py: ++ test/integration/.gitignore, trepan/__init__.py, trepan/api.py: + Revise packaging and Administrivia + + 2017-05-10 rocky +@@ -3736,7 +3736,7 @@ + + 2016-11-12 rocky + +- * trepan/processor/cmdproc.py, trepan/processor/command/list.py: ++ * trepan/processor/cmdproc.py, trepan/processor/command/list.py: + Workaround check_path_with_frame problems + + 2016-11-12 rocky +@@ -3745,7 +3745,7 @@ + + 2016-11-12 rocky + +- * trepan/processor/cmdproc.py, trepan/processor/command/list.py: ++ * trepan/processor/cmdproc.py, trepan/processor/command/list.py: + Ease into source file checking against code + + 2016-11-12 rocky +@@ -3787,7 +3787,7 @@ + + 2016-10-06 rocky + +- * .travis.yml, setup.py, trepan/{VERSION.py => version.py}: ++ * .travis.yml, setup.py, trepan/{VERSION.py => version.py}: + Administrivia and Travis * setup.py, version.py: Don't use exec. * .travis.yml: Add "python ./setup.py develop" + + 2016-10-06 rocky +@@ -3811,7 +3811,7 @@ + + * trepan/processor/command/display.py, + trepan/processor/command/set_subcmd/highlight.py: display +- expresssion and highlight changes... * show display expression after setting it * clear source-code cache after setting highlight ++ expression and highlight changes... * show display expression after setting it * clear source-code cache after setting highlight + + 2016-07-26 rocky + +@@ -3863,7 +3863,7 @@ + 2016-05-01 rocky + + * Makefile, trepan/inout/tcpclient.py, trepan/inout/tcpfns.py, +- trepan/inout/tcpserver.py, trepan/processor/command/disassemble.py: ++ trepan/inout/tcpserver.py, trepan/processor/command/disassemble.py: + flake8 crap + + 2016-05-01 rocky +@@ -3902,7 +3902,7 @@ + + 2016-01-13 rocky + +- * tox.ini, trepan/bwprocessor/main.py, trepan/lib/sighandler.py: ++ * tox.ini, trepan/bwprocessor/main.py, trepan/lib/sighandler.py: + Squelch flake8 complaints + + 2016-01-13 rocky +@@ -4024,7 +4024,7 @@ + + 2015-12-20 rocky + +- * test/example/gcd-dbgcall.py, trepan/processor/command/deparse.py: ++ * test/example/gcd-dbgcall.py, trepan/processor/command/deparse.py: + Add deparse command + + 2015-12-18 rocky +@@ -4065,7 +4065,7 @@ + + 2015-12-06 rocky + +- * README.rst, trepan/lib/stack.py, trepan/processor/cmdproc.py: ++ * README.rst, trepan/lib/stack.py, trepan/processor/cmdproc.py: + Small thiungs. Sync code with python2 + + 2015-12-02 rocky +@@ -4141,7 +4141,7 @@ + 2015-11-28 rocky + + * bin/trepan3k, trepan/lib/format.py, trepan/lib/printing.py, +- trepan/options.py: options.py: Move configiration loation to ++ trepan/options.py: options.py: Move configuration loation to + ~/.config. Add hook for python code format.py: and dark/light + reversed. Customize colorstyle more printing.py: address Python2/3 + incompatibility bin/trepan3k: invocation convenience script +@@ -4209,7 +4209,7 @@ + + * NEWS, README.rst, trepan/VERSION.py, + trepan/processor/command/exit.py, trepan/processor/command/kill.py, +- trepan/processor/command/mock.py, trepan/processor/command/quit.py: ++ trepan/processor/command/mock.py, trepan/processor/command/quit.py: + Get ready for release 0.5.3 + + 2015-09-23 rocky +@@ -4333,7 +4333,7 @@ + trepan/processor/command/show_subcmd/aliases.py, + trepan/processor/command/show_subcmd/autoeval.py, + trepan/processor/command/skip.py, trepan/processor/command/step.py, +- trepan/processor/command/up.py, trepan/processor/command/whatis.py: ++ trepan/processor/command/up.py, trepan/processor/command/whatis.py: + Go over command docstrings. Sync with trepan2 + + 2015-05-29 rocky +@@ -4347,7 +4347,7 @@ + 2015-05-29 rocky + + * README.rst, trepan/lib/eval.py, trepan/post_mortem.py, +- trepan/processor/command/bpy.py, trepan/processor/command/python.py: ++ trepan/processor/command/bpy.py, trepan/processor/command/python.py: + Add bpython shell. eval? of for VAR in EXPR: is EXPR + + 2015-05-27 rocky +@@ -4386,7 +4386,7 @@ + + * NEWS, trepan/lib/file.py, trepan/processor/command/break.py, + trepan/processor/command/info_subcmd/files.py, +- trepan/processor/command/tbreak.py, trepan/processor/complete.py: ++ trepan/processor/command/tbreak.py, trepan/processor/complete.py: + Add line completion on tbreak and break + + 2015-05-19 rocky +@@ -4402,7 +4402,7 @@ + trepan/processor/command/info_subcmd/program.py, + trepan/processor/command/info_subcmd/signals.py, + trepan/processor/command/info_subcmd/threads.py: Add "info *" and +- "info arg1, arg2". Update docs Add "info frame *number* set/sheck ++ "info arg1, arg2". Update docs Add "info frame *number* set/check + max args in subcommands + + 2015-05-17 rocky +@@ -4456,7 +4456,7 @@ + trepan/processor/command/display.py, + trepan/processor/command/pp.py, trepan/processor/command/pr.py, + trepan/processor/command/pydocx.py, +- trepan/processor/command/whatis.py, trepan/processor/complete.py: ++ trepan/processor/command/whatis.py, trepan/processor/complete.py: + Add identifier completions on pp, pr, pydocx, and debug Some + commands include builtins and some do not + +@@ -4468,7 +4468,7 @@ + trepan/processor/command/disable.py, + trepan/processor/command/enable.py, + trepan/processor/command/info_subcmd/break.py, +- trepan/processor/complete.py: Add compeltion for breakpoint numbers ++ trepan/processor/complete.py: Add completion for breakpoint numbers + + 2015-05-16 rocky + +@@ -4483,7 +4483,7 @@ + + * trepan/processor/cmdproc.py, + trepan/processor/command/info_subcmd/frame.py: cmdproc.py: +- list_lineno for post_mortem frame.py: python3 never has execption ++ list_lineno for post_mortem frame.py: python3 never has exception + info + + 2015-05-15 rocky +@@ -4526,7 +4526,7 @@ + + 2015-05-15 rocky + +- * __pkginfo__.py, trepan/debugger.py, trepan/processor/cmdproc.py: ++ * __pkginfo__.py, trepan/debugger.py, trepan/processor/cmdproc.py: + Correct remapping. Need new version of pifycache though + + 2015-05-14 rocky +@@ -4572,7 +4572,7 @@ + + 2015-05-01 rocky + +- * trepan/processor/cmdproc.py, trepan/processor/command/ipython.py: ++ * trepan/processor/cmdproc.py, trepan/processor/command/ipython.py: + Lint errors + + 2015-05-01 rocky +@@ -4637,11 +4637,11 @@ + + 2015-04-06 rocky + +- * README.rst: README.rst link correcton ++ * README.rst: README.rst link correction + + 2015-04-06 rocky + +- * README.rst, trepan/VERSION.py: README.rst link correcton ++ * README.rst, trepan/VERSION.py: README.rst link correction + + 2015-04-06 rocky + +@@ -4675,7 +4675,7 @@ + + 2015-04-06 rocky + +- * test/integration/test-general.py, test/integration/test-macro.py: ++ * test/integration/test-general.py, test/integration/test-macro.py: + Travis 8th try + + 2015-04-06 rocky +@@ -4696,7 +4696,7 @@ + + 2015-04-06 rocky + +- * .travis.yml, requirements-dev.txt, test/functional/test-skip.py: ++ * .travis.yml, requirements-dev.txt, test/functional/test-skip.py: + Travis 3rd try + + 2015-04-06 rocky +@@ -4914,8 +4914,8 @@ + + * test/data/macro.right, test/data/step.right, test/example/gcd.py, + test/functional/fn_helper.py, trepan/options.py: Remove trepan2-client from console_scripts (Georg Brandl) +- Integeration test output changes due to running into defaultoutput +- encoding. FIXME down the line. Setup file name creation wrong becase ++ Integration test output changes due to running into defaultoutput ++ encoding. FIXME down the line. Setup file name creation wrong because + debugger name is "trepan" not trepan3k. + + 2015-04-04 rocky +@@ -5087,7 +5087,7 @@ + trepan/processor/command/undisplay.py, + trepan/processor/complete.py, trepan/processor/frame.py, + trepan/processor/subcmd.py, trepan/processor/trace.py, +- trepan/vprocessor.py: First attempt to syncronize with trepan2 from ++ trepan/vprocessor.py: First attempt to synchronize with trepan2 from + 6 months ago. + + 2014-07-04 Rocky Bernstein +@@ -5126,7 +5126,7 @@ + 2014-02-03 Rocky Bernstein + + * test/functional/fn_helper.py, trepan/cli.py, trepan/client.py, +- trepan/options.py, trepan/processor/command/info_subcmd/files.py: ++ trepan/options.py, trepan/processor/command/info_subcmd/files.py: + Start work on --host and --port options for remote execution. + + 2013-11-30 Rocky Bernstein +@@ -5333,7 +5333,7 @@ + + * trepan/io/fifoclient.py, trepan/io/fifoserver.py, + trepan/io/input.py, trepan/io/output.py, trepan/io/scriptin.py, +- trepan/io/tcpclient.py, trepan/io/tcpserver.py, trepan/lib/eval.py: ++ trepan/io/tcpclient.py, trepan/io/tcpserver.py, trepan/lib/eval.py: + Fix macro processing error messages better. pyflakes io directory. + + 2013-03-23 Rocky Bernstein +@@ -5441,7 +5441,7 @@ + 2013-03-22 Rocky Bernstein + + * test/unit/test-disassemble.py, trepan/io/stringarray.py, +- trepan/lib/disassemble.py, trepan/processor/command/disassemble.py: ++ trepan/lib/disassemble.py, trepan/processor/command/disassemble.py: + Fix bugs in disassemble command and add test for it. + + 2013-03-22 Rocky Bernstein +@@ -5649,7 +5649,7 @@ + 2013-03-13 Rocky Bernstein + + * trepan/processor/command/display.py, +- trepan/processor/command/eval.py: Knock off another two debuger ++ trepan/processor/command/eval.py: Knock off another two debugger + commands + + 2013-03-13 Rocky Bernstein +@@ -5669,7 +5669,7 @@ + 2013-03-12 Rocky Bernstein + + * trepan/processor/cmdproc.py, trepan/processor/command/down.py, +- trepan/processor/command/frame.py, trepan/processor/command/up.py: ++ trepan/processor/command/frame.py, trepan/processor/command/up.py: + Add "up", "down" and "frame" commands + + 2013-03-12 Rocky Bernstein +@@ -5690,12 +5690,12 @@ + trepan/processor/cmdproc.py, trepan/processor/command/backtrace.py, + trepan/processor/command/continue.py, + trepan/processor/command/help.py, trepan/processor/command/list.py, +- trepan/processor/command/next.py, trepan/processor/command/step.py: ++ trepan/processor/command/next.py, trepan/processor/command/step.py: + Debugger starts working! Start to fill in the vast number commands. + + 2013-03-11 rocky + +- * trepan/api.py, trepan/post_mortem.py, trepan/processor/cmdproc.py: ++ * trepan/api.py, trepan/post_mortem.py, trepan/processor/cmdproc.py: + Add api and post-mortem + + 2013-03-11 Rocky Bernstein +@@ -5749,7 +5749,7 @@ + + * test/unit/cmdhelper.py, trepan/interface.py, + trepan/interfaces/__init__.py, trepan/interfaces/user.py: Start +- converting interface code, and user inteface in particular. ++ converting interface code, and user interface in particular. + + 2013-03-07 rocky + +@@ -5782,14 +5782,14 @@ + * .gitignore, Makefile, test/unit/test-io-input.py, + trepan/__init__.py, trepan/io/__init__.py, trepan/io/{dbg_input.py + => input.py}, trepan/io/{dbg_output.py => output.py}, +- trepan/io/scriptin.py, trepan/lib/__init__.py, trepan/misc.py: ++ trepan/io/scriptin.py, trepan/lib/__init__.py, trepan/misc.py: + dbg_{input,output} -> {input,output}. misc.py, __init__.py: start to +- simplfy and DRY code ++ simplify and DRY code + + 2013-02-24 rocky + + * .gitignore, Makefile, NEWS, README.txt, __init__.py, +- __pkginfo__.py, make-check-filter.py, setup.py, trepan/VERSION.py: ++ __pkginfo__.py, make-check-filter.py, setup.py, trepan/VERSION.py: + Package Administrivia + + 2013-02-24 rocky +@@ -5802,4 +5802,3 @@ + 2013-02-24 rocky + + * Convert more stuff +- diff --git a/NEWS.md b/NEWS.md index 82e265e6..27fb261c 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,7 +1,23 @@ -1.2.11 2024-077-22 +1.3.0 2024-11-13 +================ + +* Less overhead and faster execution of "continue" and "next" (when + possible) using improvements recently made to pytracer. +* Support prompt-toolkit as an input interface. This is now the default + on newer Pythons. Command completion is less featurefull than GNU readline + but that will get addressed over time. +* Add "load" command to support trepan3k plugins from a Python package +* Add thread name to "info frame" +* Add "reload" command to reload a debugger command. + This allows making changes to the debugger while debugging +* Improve disassembly output - better tagging and use of xdis extended format +* Modernize style with more type annotations and flynt-converted f-strings +* Support up to Python 3.13 (with some help from xdis) + +1.2.11 2024-07-22 ================== -Add `set/show asmfmt` Improve disassembler formatting; allow all of the assembler formats that exits +Add `set/show asmfmt` Improve disassembler formatting; allow all of the assembler formats that exists Track xdis API changes. The usual lint and bug fixes diff --git a/README.rst b/README.rst index 5189691e..596ea244 100644 --- a/README.rst +++ b/README.rst @@ -24,7 +24,7 @@ reliable operations. A command-line interface (CLI) is provided as well as remote access interface over TCP/IP. -See the entry_exit_ for the various ways you can enter the debugger. +See the entry-exit_ for the various ways you can enter the debugger. This code supports versions of Python back to version 3.0 using different *git* branches. See trepan2_ for the same code modified to @@ -62,7 +62,7 @@ instructions. I am slowly working on that though. We use information in Python's code object line number table in byte to understand which lines are breakpointable, and in which module or -function the line appears in. Use info_line_ to see this +function the line appears in. Use info-line_ to see this information. Most if not all other debuggers do go to such lengths, and as a result, it is possible to request stopping on a line number that can never occur without complaint. @@ -90,19 +90,19 @@ or ``exec``'d code.* But if you happen to know where the source code is located, you can associate a file source code with the current name listed in the -bytecode. See the set_substitute_ command for details here. +bytecode. See the set-substitute_ command for details here. Source-code Syntax Colorization ------------------------------- Terminal source code is colorized via pygments_. And with that, you can set the pygments color style, e.g. "colorful", "paraiso-dark". See -set_style_ . Furthermore, we make use of terminal bold and emphasized -text in debugger output and help text. Of course, you can also turn -this off. You can use your own -pygments_style_, provided you have a terminal that supports 256 -colors. If your terminal supports the basic ANSI color sequences only, -we support that too in both dark and light themes. +set-style_ . Furthermore, we make use of terminal bold +and emphasized text in debugger output and help text. Of course, you +can also turn this off. You can use your own pygments_style_, provided +you have a terminal that supports 256 colors. If your terminal +supports the basic ANSI color sequences only, we support that too in +both dark and light themes. Command Completion @@ -121,7 +121,24 @@ Terminal Handling ----------------- We can adjust debugger output depending on the line width of your -terminal. If it changes, or you want to adjust it, see set_width_. +terminal. If it changes, or you want to adjust it, see set-width_. + +Signal Handling +----------------- + +Following *gdb*, we provide its rich set of signal handling. From the *gdb* documentation: + + GDB has the ability to detect any occurrence of a signal in your program. You can tell GDB in advance what to do for each kind of signal. + +Better Support for Thread Debugging +------------------------------------ + +When you are stopped inside a thread, the thread name is shown to make +this fact more clear and you can see and switch between frames in +different threads. See frame_ for more information. + +And following *gdb*, you can list the threads too. See info-threads_ for more information. + Smart Eval ---------- @@ -232,7 +249,7 @@ We do more in the way of looking at the byte codes to give better information. T ``MAKE_FUNCTION`` or ``BUILD_CLASS``.) Even without "deparsing" mentioned above, the ability to disassemble -where the PC is currently located (see `info pc `_), by line +where the PC is currently located (see info-pc_), by line number range or byte-offset range lets you tell exactly where you are and code is getting run. @@ -314,7 +331,7 @@ See Also .. _trepanning: https://rubygems.org/gems/trepanning .. _debuggers: https://metacpan.org/pod/Devel::Trepan .. _this: https://bashdb.sourceforge.net/pydb/features.html -.. _entry_exit: https://python3-trepan.readthedocs.io/en/latest/entry-exit.html +.. _entry-exit: https://python3-trepan.readthedocs.io/en/latest/entry-exit.html .. _trepanxpy: https://pypi.python.org/pypi/trepanxpy .. |downloads| image:: https://img.shields.io/pypi/dd/trepan3k.svg :target: https://pypi.python.org/pypi/trepan3k/ @@ -325,10 +342,13 @@ See Also :target: https://pypi.python.org/pypi/trepan3k :alt: License .. _deparse: https://python3-trepan.readthedocs.io/en/latest/commands/data/deparse.html -.. _info_line: https://python3-trepan.readthedocs.io/en/latest/commands/info/line.html -.. _set_style: https://python3-trepan.readthedocs.org/en/latest/commands/set/style.html -.. _set_substitute: https://python3-trepan.readthedocs.org/en/latest/commands/set/substitute.html -.. _set_width: https://python3-trepan.readthedocs.org/en/latest/commands/set/width.html +.. _info-line: https://python3-trepan.readthedocs.io/en/latest/commands/info/line.html +.. _info-pc: https://python3-trepan.readthedocs.io/en/latest/commands/info/pc.html +.. _info-threads: https://python3-trepan.readthedocs.io/en/latest/commands/info/threads.html +.. _frame: https://python3-trepan.readthedocs.io/en/latest/commands/stack/frame.html +.. _set-style: https://python3-trepan.readthedocs.org/en/latest/commands/set/style.html +.. _set-substitute: https://python3-trepan.readthedocs.org/en/latest/commands/set/substitute.html +.. _set-width: https://python3-trepan.readthedocs.org/en/latest/commands/set/width.html .. _eval: https://python3-trepan.readthedocs.org/en/latest/commands/data/eval.html .. _step: https://python3-trepan.readthedocs.org/en/latest/commands/running/step.html .. _subst: https://python3-trepan.readthedocs.io/en/latest/commands/set/substitute.html diff --git a/admin-tools/check-3.2-3.5-versions.sh b/admin-tools/check-3.3-3.5-versions.sh similarity index 63% rename from admin-tools/check-3.2-3.5-versions.sh rename to admin-tools/check-3.3-3.5-versions.sh index 66fd19df..a65005e1 100755 --- a/admin-tools/check-3.2-3.5-versions.sh +++ b/admin-tools/check-3.3-3.5-versions.sh @@ -1,18 +1,20 @@ #!/bin/bash function finish { - cd $owd + cd $trepan3k_owd } # FIXME put some of the below in a common routine -owd=$(pwd) -trap finish EXIT +trepan3k_owd=$(pwd) +# trap finish EXIT cd $(dirname ${BASH_SOURCE[0]}) -if ! source ./pyenv-3.2-3.5-versions ; then +if ! source ./pyenv-3.3-3.5-versions ; then exit $? fi -. ./setup-python-3.2.sh +if ! source ./setup-python-3.3.sh ; then + exit $? +fi cd .. for version in $PYVERSIONS; do @@ -24,4 +26,6 @@ for version in $PYVERSIONS; do if ! make check; then exit $? fi + echo === $version === done +finish diff --git a/admin-tools/check-3.6-3.10-versions.sh b/admin-tools/check-3.6-3.10-versions.sh index fdc33006..e46e1eac 100755 --- a/admin-tools/check-3.6-3.10-versions.sh +++ b/admin-tools/check-3.6-3.10-versions.sh @@ -1,11 +1,11 @@ #!/bin/bash function finish { - cd $owd + cd $trepan3k_owd } # FIXME put some of the below in a common routine -owd=$(pwd) -trap finish EXIT +trepan3k_owd=$(pwd) +# trap finish EXIT cd $(dirname ${BASH_SOURCE[0]}) if ! source ./pyenv-3.6-3.10-versions ; then @@ -24,4 +24,5 @@ for version in $PYVERSIONS; do if ! make check; then exit $? fi + echo === $version === done diff --git a/admin-tools/check-newest-versions.sh b/admin-tools/check-newest-versions.sh index 7cd37f22..24faba92 100755 --- a/admin-tools/check-newest-versions.sh +++ b/admin-tools/check-newest-versions.sh @@ -1,11 +1,11 @@ #!/bin/bash function finish { - cd $owd + cd $trepan3k_owd } # FIXME put some of the below in a common routine -owd=$(pwd) -trap finish EXIT +trepan3k_owd=$(pwd) +# trap finish EXIT cd $(dirname ${BASH_SOURCE[0]}) if ! source ./pyenv-newer-versions ; then @@ -24,4 +24,5 @@ for version in $PYVERSIONS; do if ! make check; then exit $? fi + echo === $version === done diff --git a/admin-tools/pyenv-3.3-3.5-versions b/admin-tools/pyenv-3.3-3.5-versions index 3f83a596..e5792c2a 100644 --- a/admin-tools/pyenv-3.3-3.5-versions +++ b/admin-tools/pyenv-3.3-3.5-versions @@ -5,4 +5,4 @@ if [[ $0 == ${BASH_SOURCE[0]} ]] ; then echo "This script should be *sourced* rather than run directly through bash" exit 1 fi -export PYVERSIONS='3.2.6 3.5.10 3.3.7 3.4.10 pypy3.5-7.0.0' +export PYVERSIONS='3.5 3.3 3.4 pypy3.5-7.0.0' diff --git a/admin-tools/setup-master.sh b/admin-tools/setup-master.sh index 5d77f1de..f424bad0 100755 --- a/admin-tools/setup-master.sh +++ b/admin-tools/setup-master.sh @@ -12,8 +12,7 @@ mydir=$(dirname $bs) trepan3k_owd=$(pwd) cd $mydir . ./checkout_common.sh -fulldir=$(readlink -f $mydir) -(cd $fulldir/.. && \ +(cd $mydir/.. && \ setup_version python-uncompyle6 master && \ setup_version python-xdis master && \ setup_version python-filecache master && \ diff --git a/admin-tools/setup-python-3.0.sh b/admin-tools/setup-python-3.0.sh index c60beea9..0a3e0562 100755 --- a/admin-tools/setup-python-3.0.sh +++ b/admin-tools/setup-python-3.0.sh @@ -14,8 +14,7 @@ trepan3k_owd=$(pwd) mydir=$(dirname $bs) cd $mydir . ./checkout_common.sh -fulldir=$(readlink -f $mydir) -(cd $fulldir/.. && \ +(cd $mydir/.. && \ setup_version python-uncompyle6 python-3.0 \ setup_version python-filecache python-3.0 && \ setup_version shell-term-background python-3.0 && \ diff --git a/docs/commands/set/asmfmt.rst b/docs/commands/set/asmfmt.rst index fb88979d..1367b7b1 100644 --- a/docs/commands/set/asmfmt.rst +++ b/docs/commands/set/asmfmt.rst @@ -21,8 +21,8 @@ Set the style of format to use in disassembly: ``bytes`` format along with *extended* format -Examples: -+++++++++ +Frame Examples: ++++++++++++++++ :: set asmfmt extended # this is the default diff --git a/docs/commands/set/events.rst b/docs/commands/set/events.rst index a4473f3d..38e4362f 100644 --- a/docs/commands/set/events.rst +++ b/docs/commands/set/events.rst @@ -23,8 +23,8 @@ Sets the events that the debugger will stop on. Event names are: Changing trace event filters works independently of turning on or off tracing-event printing. -Examples: -+++++++++ +Set Events Examples: +++++++++++++++++++++ :: diff --git a/docs/commands/show/asmfmt.rst b/docs/commands/show/asmfmt.rst index ea06b08c..905fedd3 100644 --- a/docs/commands/show/asmfmt.rst +++ b/docs/commands/show/asmfmt.rst @@ -8,8 +8,8 @@ Show Asmfmt Show the disassembly format style used in the ``disassemble`` command. -Example: -++++++++ +Show asmfmt Example: +++++++++++++++++++++ :: show asmfmt diff --git a/docs/commands/stack/frame.rst b/docs/commands/stack/frame.rst index 8216d16e..4d6cefb7 100644 --- a/docs/commands/stack/frame.rst +++ b/docs/commands/stack/frame.rst @@ -4,7 +4,7 @@ Frame (absolute frame positioning) ---------------------------------- -**frame** [*thread-Name*|*thread-number*] [*frame-number*] +**frame** [ *thread-name* | *thread-number* ] [ *frame-number* ] Change the current frame to frame *frame-number* if specified, or the current frame, 0, if no frame number specified. diff --git a/trepan/processor/command/info_subcmd/frame.py b/trepan/processor/command/info_subcmd/frame.py index b119adca..2155f504 100644 --- a/trepan/processor/command/info_subcmd/frame.py +++ b/trepan/processor/command/info_subcmd/frame.py @@ -19,7 +19,10 @@ from pyficache import getline, highlight_string from trepan.lib.complete import complete_token +from trepan.lib.format import Function, format_token + from trepan.lib.stack import format_function_name +from trepan.lib.thred import current_thread_name from trepan.processor import frame as Mframe from trepan.processor.print import format_code, format_frame @@ -111,7 +114,7 @@ def run(self, args): frame_num = proc.curindex mess = ( - "Frame %d" % Mframe.frame_num(proc, frame_num) + f"Frame {Mframe.frame_num(proc, frame_num)}" if frame_num is not None and proc.stack is not None else "Frame Info" ) @@ -124,6 +127,8 @@ def run(self, args): formatted_func_signature = highlight_string(func_args, style=style).strip() self.msg(f" function args: {formatted_func_signature}") + formatted_thread_name = format_token(Function, current_thread_name(), style=style) + self.msg(f" thread: {formatted_thread_name}") # signature = highlight_string(inspect.signature(frame)) # self.msg(f" signature : {signature}") @@ -145,7 +150,6 @@ def run(self, args): self.msg(f" code: {format_code(code, style)}") self.msg(f" previous frame: {format_frame(frame.f_back, style)}") self.msg(f" tracing function: {frame.f_trace}") - if is_verbose: for name, field in [ ("Globals", "f_globals"), diff --git a/trepan/version.py b/trepan/version.py index 4bc33fcf..1f683a40 100644 --- a/trepan/version.py +++ b/trepan/version.py @@ -5,4 +5,4 @@ # debugger version number. # fmt: off -__version__="1.3.0.dev" # noqa +__version__="1.3.0" # noqa