From 4a73e4749ab0ee0b1cbac049b34987c88a21b004 Mon Sep 17 00:00:00 2001 From: patryk4815 Date: Tue, 19 Nov 2024 23:49:14 +0100 Subject: [PATCH] Fix disasm (#2553) * fix disasm syscall * commands/disasm.py: fix lint --- pwndbg/color/disasm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pwndbg/color/disasm.py b/pwndbg/color/disasm.py index f59677abc..29d118df0 100644 --- a/pwndbg/color/disasm.py +++ b/pwndbg/color/disasm.py @@ -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.