Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hook_add_new bug #591

Open
tianxingsky opened this issue Dec 22, 2023 · 0 comments
Open

hook_add_new bug #591

tianxingsky opened this issue Dec 22, 2023 · 0 comments

Comments

@tianxingsky
Copy link

emulator.getBackend().hook_add_new(new InterruptHook() {
@OverRide
public void hook(Backend backend, int intno, int swi, Object user) {
int syscall=backend.reg_read(Arm64Const.UC_ARM64_REG_W8).intValue();
if(syscall==215)
{

                long address=backend.reg_read(Arm64Const.UC_ARM64_REG_X0).longValue();
                long len=backend.reg_read(Arm64Const.UC_ARM64_REG_X1).longValue();
                System.out.println(" hook_add_new :  "+intno+"    "+swi+" address: "+Long.toHexString(address)+" len: "+Long.toHexString(len));
            }

} 寄存器X0 取值为0 不正确

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant