Skip to content

Commit e718de0

Browse files
committed
Reinstate "show different"
1 parent 2cb0182 commit e718de0

2 files changed

Lines changed: 44 additions & 4 deletions

File tree

trepan/processor/command/set_subcmd/different.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright (C) 2009, 2013, 2015-2016, 2020 Rocky Bernstein
2+
# Copyright (C) 2009, 2013, 2015-2016, 2020, 2026 Rocky Bernstein
33
#
44
# This program is free software: you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by
@@ -21,11 +21,11 @@
2121
class SetDifferent(DebuggerSetBoolSubcommand):
2222
"""**set different** [ **on** | **off** ]
2323
24-
Set different line location between consecutive debugger stops.
24+
Set different location between consecutive debugger stops.
2525
2626
By default, the debugger traces all events possible including line,
27-
exceptions, call and return events. Just this alone may mean that for
28-
any given source line several consecutive stops at a given line may
27+
exceptions, opcode, call and return events. Just this alone may mean that
28+
for any given source line several consecutive stops at a given line may
2929
occur. Independent of this, Python allows one to put several commands
3030
in a single source line of code. When a programmer does this, it might
3131
be because the programmer thinks of the line as one unit.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright (C) 2009, 2013, 2015, 2026 Rocky Bernstein
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU General Public License
15+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
17+
# Our local modules
18+
from trepan.processor.command import base_subcmd as Mbase_subcmd
19+
20+
21+
class ShowDifferent(Mbase_subcmd.DebuggerShowBoolSubcommand):
22+
"""**show different**
23+
24+
Show whether we stopping must appear at a different location between
25+
consecutive debugger stops.
26+
27+
See also:
28+
---------
29+
30+
`set different`"""
31+
32+
min_abbrev = len("dif")
33+
pass
34+
35+
36+
if __name__ == "__main__":
37+
from trepan.processor.command.show_subcmd import __demo_helper__ as Mhelper
38+
39+
Mhelper.demo_run(ShowDifferent)
40+
pass

0 commit comments

Comments
 (0)