Skip to content

Commit 71ae537

Browse files
committed
Get ready for release 1.3.0
1 parent 604a852 commit 71ae537

File tree

9 files changed

+53
-30
lines changed

9 files changed

+53
-30
lines changed

README.rst

Lines changed: 37 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ reliable operations.
2424
A command-line interface (CLI) is provided as well as remote access
2525
interface over TCP/IP.
2626

27-
See the entry_exit_ for the various ways you can enter the debugger.
27+
See the entry-exit_ for the various ways you can enter the debugger.
2828

2929
This code supports versions of Python back to version 3.0 using
3030
different *git* branches. See trepan2_ for the same code modified to
@@ -62,7 +62,7 @@ instructions. I am slowly working on that though.
6262

6363
We use information in Python's code object line number table in byte
6464
to understand which lines are breakpointable, and in which module or
65-
function the line appears in. Use info_line_ to see this
65+
function the line appears in. Use info-line_ to see this
6666
information. Most if not all other debuggers do go to such lengths,
6767
and as a result, it is possible to request stopping on a line number
6868
that can never occur without complaint.
@@ -90,19 +90,19 @@ or ``exec``'d code.*
9090

9191
But if you happen to know where the source code is located, you can
9292
associate a file source code with the current name listed in the
93-
bytecode. See the set_substitute_ command for details here.
93+
bytecode. See the set-substitute_ command for details here.
9494

9595
Source-code Syntax Colorization
9696
-------------------------------
9797

9898
Terminal source code is colorized via pygments_. And with that, you
9999
can set the pygments color style, e.g. "colorful", "paraiso-dark". See
100-
set_style_ . Furthermore, we make use of terminal bold and emphasized
101-
text in debugger output and help text. Of course, you can also turn
102-
this off. You can use your own
103-
pygments_style_, provided you have a terminal that supports 256
104-
colors. If your terminal supports the basic ANSI color sequences only,
105-
we support that too in both dark and light themes.
100+
set-style_ . Furthermore, we make use of terminal bold
101+
and emphasized text in debugger output and help text. Of course, you
102+
can also turn this off. You can use your own pygments_style_, provided
103+
you have a terminal that supports 256 colors. If your terminal
104+
supports the basic ANSI color sequences only, we support that too in
105+
both dark and light themes.
106106

107107

108108
Command Completion
@@ -121,7 +121,25 @@ Terminal Handling
121121
-----------------
122122

123123
We can adjust debugger output depending on the line width of your
124-
terminal. If it changes, or you want to adjust it, see set_width_.
124+
terminal. If it changes, or you want to adjust it, see set-width_.
125+
126+
Signal Handling
127+
-----------------
128+
129+
Following *gdb*, we provide its rich set of signal handling. From the *gdb* documentation:
130+
131+
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.
132+
133+
Better Support for Thread Debugging
134+
------------------------------------
135+
136+
When you are stopped inside a thread, the thread name is shown to make
137+
this fact more clear and you can see and switch between frames in
138+
different threads. See frame_ for more information.
139+
140+
And following *gdb*, you can list the threads too. See `info threads
141+
<info-threads>`_ for more information.
142+
125143

126144
Smart Eval
127145
----------
@@ -232,7 +250,7 @@ We do more in the way of looking at the byte codes to give better information. T
232250
``MAKE_FUNCTION`` or ``BUILD_CLASS``.)
233251

234252
Even without "deparsing" mentioned above, the ability to disassemble
235-
where the PC is currently located (see `info pc <info_pc>`_), by line
253+
where the PC is currently located (see info-pc_), by line
236254
number range or byte-offset range lets you tell exactly where you are
237255
and code is getting run.
238256

@@ -314,7 +332,7 @@ See Also
314332
.. _trepanning: https://rubygems.org/gems/trepanning
315333
.. _debuggers: https://metacpan.org/pod/Devel::Trepan
316334
.. _this: https://bashdb.sourceforge.net/pydb/features.html
317-
.. _entry_exit: https://python3-trepan.readthedocs.io/en/latest/entry-exit.html
335+
.. _entry-exit: https://python3-trepan.readthedocs.io/en/latest/entry-exit.html
318336
.. _trepanxpy: https://pypi.python.org/pypi/trepanxpy
319337
.. |downloads| image:: https://img.shields.io/pypi/dd/trepan3k.svg
320338
:target: https://pypi.python.org/pypi/trepan3k/
@@ -325,10 +343,13 @@ See Also
325343
:target: https://pypi.python.org/pypi/trepan3k
326344
:alt: License
327345
.. _deparse: https://python3-trepan.readthedocs.io/en/latest/commands/data/deparse.html
328-
.. _info_line: https://python3-trepan.readthedocs.io/en/latest/commands/info/line.html
329-
.. _set_style: https://python3-trepan.readthedocs.org/en/latest/commands/set/style.html
330-
.. _set_substitute: https://python3-trepan.readthedocs.org/en/latest/commands/set/substitute.html
331-
.. _set_width: https://python3-trepan.readthedocs.org/en/latest/commands/set/width.html
346+
.. _info-line: https://python3-trepan.readthedocs.io/en/latest/commands/info/line.html
347+
.. _info-pc: https://python3-trepan.readthedocs.io/en/latest/commands/info/pc.html
348+
.. _info-threads: https://python3-trepan.readthedocs.io/en/latest/commands/info/threads.html
349+
.. _frame: https://python3-trepan.readthedocs.io/en/latest/commands/stack/frame.html
350+
.. _set-style: https://python3-trepan.readthedocs.org/en/latest/commands/set/style.html
351+
.. _set-substitute: https://python3-trepan.readthedocs.org/en/latest/commands/set/substitute.html
352+
.. _set-width: https://python3-trepan.readthedocs.org/en/latest/commands/set/width.html
332353
.. _eval: https://python3-trepan.readthedocs.org/en/latest/commands/data/eval.html
333354
.. _step: https://python3-trepan.readthedocs.org/en/latest/commands/running/step.html
334355
.. _subst: https://python3-trepan.readthedocs.io/en/latest/commands/set/substitute.html

admin-tools/setup-master.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ mydir=$(dirname $bs)
1212
trepan3k_owd=$(pwd)
1313
cd $mydir
1414
. ./checkout_common.sh
15-
fulldir=$(readlink -f $mydir)
16-
(cd $fulldir/.. && \
15+
(cd $mydir/.. && \
1716
setup_version python-uncompyle6 master && \
1817
setup_version python-xdis master && \
1918
setup_version python-filecache master && \

admin-tools/setup-python-3.0.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ trepan3k_owd=$(pwd)
1414
mydir=$(dirname $bs)
1515
cd $mydir
1616
. ./checkout_common.sh
17-
fulldir=$(readlink -f $mydir)
18-
(cd $fulldir/.. && \
17+
(cd $mydir/.. && \
1918
setup_version python-uncompyle6 python-3.0 \
2019
setup_version python-filecache python-3.0 && \
2120
setup_version shell-term-background python-3.0 && \

docs/commands/set/asmfmt.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Set the style of format to use in disassembly:
2121
``bytes`` format along with *extended* format
2222

2323

24-
Examples:
25-
+++++++++
24+
Frame Examples:
25+
+++++++++++++++
2626

2727
::
2828
set asmfmt extended # this is the default

docs/commands/set/events.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ Sets the events that the debugger will stop on. Event names are:
2323
Changing trace event filters works independently of turning on or off
2424
tracing-event printing.
2525

26-
Examples:
27-
+++++++++
26+
Set Events Examples:
27+
++++++++++++++++++++
2828

2929
::
3030

docs/commands/show/asmfmt.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Show Asmfmt
88

99
Show the disassembly format style used in the ``disassemble`` command.
1010

11-
Example:
12-
++++++++
11+
Show asmfmt Example:
12+
++++++++++++++++++++
1313

1414
::
1515
show asmfmt

docs/commands/stack/frame.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Frame (absolute frame positioning)
55
----------------------------------
66

7-
**frame** [*thread-Name*|*thread-number*] [*frame-number*]
7+
**frame** [ *thread-name* | *thread-number* ] [ *frame-number* ]
88

99
Change the current frame to frame *frame-number* if specified, or the
1010
current frame, 0, if no frame number specified.

trepan/processor/command/info_subcmd/frame.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
from pyficache import getline, highlight_string
2020

2121
from trepan.lib.complete import complete_token
22+
from trepan.lib.format import Function, format_token
23+
2224
from trepan.lib.stack import format_function_name
25+
from trepan.lib.thred import current_thread_name
2326
from trepan.processor import frame as Mframe
2427
from trepan.processor.print import format_code, format_frame
2528

@@ -111,7 +114,7 @@ def run(self, args):
111114
frame_num = proc.curindex
112115

113116
mess = (
114-
"Frame %d" % Mframe.frame_num(proc, frame_num)
117+
f"Frame {Mframe.frame_num(proc, frame_num)}"
115118
if frame_num is not None and proc.stack is not None
116119
else "Frame Info"
117120
)
@@ -124,6 +127,8 @@ def run(self, args):
124127
formatted_func_signature = highlight_string(func_args, style=style).strip()
125128
self.msg(f" function args: {formatted_func_signature}")
126129

130+
formatted_thread_name = format_token(Function, current_thread_name(), style=style)
131+
self.msg(f" thread: {formatted_thread_name}")
127132
# signature = highlight_string(inspect.signature(frame))
128133
# self.msg(f" signature : {signature}")
129134

@@ -145,7 +150,6 @@ def run(self, args):
145150
self.msg(f" code: {format_code(code, style)}")
146151
self.msg(f" previous frame: {format_frame(frame.f_back, style)}")
147152
self.msg(f" tracing function: {frame.f_trace}")
148-
149153
if is_verbose:
150154
for name, field in [
151155
("Globals", "f_globals"),

trepan/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# debugger version number.
66

77
# fmt: off
8-
__version__="1.3.0.dev" # noqa
8+
__version__="1.3.0" # noqa

0 commit comments

Comments
 (0)