Fix disasm (#2553)

* fix disasm syscall

* commands/disasm.py: fix lint
pull/2559/head
patryk4815 1 year ago committed by GitHub
parent 30f7ea08dc
commit 4a73e4749a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2,6 +2,7 @@ from __future__ import annotations
from typing import List
import pwndbg.aglib.nearpc
import pwndbg.aglib.regs
import pwndbg.chain
import pwndbg.color.context as C
@ -80,7 +81,7 @@ def instructions_and_padding(instructions: List[PwndbgInstruction]) -> List[str]
current_group = []
else:
if ins.syscall is not None:
asm += f" <{pwndbg.gdblib.nearpc.c.syscall_name('SYS_' + ins.syscall_name)}>"
asm += f" <{pwndbg.aglib.nearpc.c.syscall_name('SYS_' + ins.syscall_name)}>"
# Padding the string for a nicer output
# This path calculates the padding for each instruction - even if there we don't have annotations for it.

Loading…
Cancel
Save