Skip to content

Commit 1d68ba7

Browse files
committed
More style and disassemble tweaking
1 parent 6dcb9fb commit 1d68ba7

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

trepan/lib/disassemble.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,9 @@ def null_print(x):
370370
hasattr(opc, "opcode_extended_fmt")
371371
and opc.opname[op] in opc.opcode_extended_fmt
372372
):
373-
new_repr = f"""["{opc.opcode_extended_fmt[opc.opname[op]](
373+
new_repr = f"""{opc.opcode_extended_fmt[opc.opname[op]](
374374
opc, list(reversed(instructions))
375-
)}"] {instr.arg}"""
375+
)}"""
376376
argrepr = new_repr
377377
pass
378378
elif asm_format in ("extended", "extended-bytes"):

trepan/processor/command/show_subcmd/styles.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class ShowStyles(DebuggerSubcommand):
2222

2323
in_list = True
2424
short_help = "Show all pygments style available"
25+
min_abbrev = len("styles")
2526

2627
def run(self, args):
2728
if len(args) != 0:

0 commit comments

Comments
 (0)