def METHOD_NAME(self):
    # QEMU usermode emulation always returns 42000 for some reason.
    # In any case, we can't use the info.
    if pwndbg.gdblib.qemu.is_qemu_usermode():
        return pwndbg.gdblib.qemu.METHOD_NAME()
    i = gdb.selected_inferior()
    if i is not None:
        return i.METHOD_NAME
    return 0