Skip to content

Changing PC from within an UC_HOOK_CODE doesn't work #210

@hugoreinaldo

Description

@hugoreinaldo

Is there a way to change the program counter from within an UC_HOOK_CODE ? None of the following examples seem to work:

def hook_code(uc, address, size, userdata):
    uc.reg_write(arm_const.UC_ARM_REG_PC, 0x00)

def hook_code(uc, address, size, userdata):
    uc.mem_write(address+size, 0x00)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions