Skip to content

Commit 2f5a4b1

Browse files
committed
subcmand asmfmt -> disasmflavor
This matches gdb more closely
1 parent df7fee9 commit 2f5a4b1

21 files changed

Lines changed: 110 additions & 102 deletions

File tree

docs/commands/data/disassemble.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ Disassmble Examples
4747

4848
.. seealso::
4949

50-
:ref:`help syntax arange <syntax_arange>` for the specification of an address range :ref:`deparse <deparse>`, :ref:`list <list>`, :ref:`info pc <info_pc>`, and :ref:`set asmfmt <set_asmfmt>`.
50+
:ref:`help syntax arange <syntax_arange>` for the specification of an address range :ref:`deparse <deparse>`, :ref:`list <list>`, :ref:`info pc <info_pc>`, and :ref:`set asmfmt <set_disasmflavor>`.

docs/commands/files/list.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ in addition you can also use:
2323
- a '-' for the lines before the last list
2424
- a '+' for the lines after the last list
2525

26-
Examples:
27-
+++++++++
26+
List Examples:
27+
++++++++++++++
2828

2929
::
3030

docs/commands/set.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ environment settings with the :ref:`show <show>` command.
2121
.. toctree::
2222
:maxdepth: 1
2323

24-
set/asmfmt
2524
set/autoeval
2625
set/autolist
2726
set/autopc
2827
set/autopython
2928
set/basename
29+
set/disasmflavor
3030
set/cmdtrace
3131
set/confirm
3232
set/dbg_trepan

docs/commands/set/asmfmt.rst

Lines changed: 0 additions & 33 deletions
This file was deleted.

docs/commands/set/patsub.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ the mount-point for /home/rocky/project. You are running the code
1616
from the docker container, but debugging this from outside of that.
1717

1818

19-
Example:
20-
++++++++
19+
Set Substitution Pattern Example:
20+
+++++++++++++++++++++++++++++++++
2121

2222
::
2323

docs/commands/set/style.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use `set style none`.
1313
To list the available pygments styles inside the debugger, omit the style name.
1414

1515

16-
Examples:
17-
+++++++++
16+
Set Style Examples:
17+
+++++++++++++++++++
1818

1919
::
2020

docs/commands/set/substitute.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ tokenization, so we have added a hack to ignore `<frozen .. >`.
1414

1515
So, for frozen files like `<frozen importlib._bootstrap>`, use `importlib._bootstrap`
1616

17-
Examples:
18-
+++++++++
17+
Set Substitute Examples:
18+
++++++++++++++++++++++++
1919

2020
::
2121

docs/commands/show.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Show
1818

1919
show/aliases
2020
show/args
21-
show/asmfmt
2221
show/autoeval
2322
show/autolist
2423
show/autopc
@@ -28,6 +27,7 @@ Show
2827
show/confirm
2928
show/dbg_trepan
3029
show/different
30+
show/disasmflavor
3131
show/events
3232
show/flush
3333
show/highlight

docs/commands/show/asmfmt.rst

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
.. index:: show; disasmflavor
2+
.. _show_disasmflavor:
3+
4+
Show DisasmFlavor
5+
-----------------
6+
7+
**show disasmflavor**
8+
9+
Show the disassembly format style used in the ``disassemble`` command.
10+
11+
The style of style to use in disassembly:
12+
13+
``classic``:
14+
fields: line, marker offset, opcode operand
15+
16+
``extended``:
17+
like above, but we try harder to get operand information from previous instructions
18+
19+
``bytes``:
20+
like classic but we show the instruction bytes after the offset
21+
22+
``extended-bytes``:
23+
``bytes`` format along with *extended* format
24+
25+
Show disasmflavor Example:
26+
++++++++++++++++++++++++++
27+
28+
::
29+
show disasmflavor
30+
31+
.. seealso::
32+
33+
:ref:`set_disasmflavor <set_disasmflavor>`

0 commit comments

Comments
 (0)