feat: Implement Anisette JS/TS API with WASM support
- Added main Anisette class for high-level API. - Introduced device management with Device class. - Created HTTP client abstraction for network requests. - Implemented provisioning session handling with ProvisioningSession class. - Added utility functions for encoding, decoding, and random generation. - Established library management with LibraryStore class. - Integrated WASM loading and bridging with WasmBridge. - Defined core types and interfaces for the API. - Set up TypeScript configuration and build scripts. - Updated package.json for new build and run commands. - Added bun.lock and package.json for JS dependencies. - Enhanced error handling and memory management in Rust code.
This commit is contained in:
12
src/debug.rs
12
src/debug.rs
@@ -33,25 +33,25 @@ pub(crate) fn trace_mem_invalid_hook(
|
||||
let pc = reg_or_zero(uc, RegisterARM64::PC);
|
||||
match access {
|
||||
MemType::READ_UNMAPPED => {
|
||||
debug_print(format!(
|
||||
println!(
|
||||
">>> Missing memory is being READ at 0x{address:x}, data size = {size}, data value = 0x{:x}, PC=0x{pc:x}",
|
||||
value as u64
|
||||
));
|
||||
);
|
||||
dump_registers(uc, "read unmapped");
|
||||
}
|
||||
MemType::WRITE_UNMAPPED => {
|
||||
debug_print(format!(
|
||||
println!(
|
||||
">>> Missing memory is being WRITE at 0x{address:x}, data size = {size}, data value = 0x{:x}, PC=0x{pc:x}",
|
||||
value as u64
|
||||
));
|
||||
);
|
||||
|
||||
dump_registers(uc, "write unmapped");
|
||||
}
|
||||
MemType::FETCH_UNMAPPED => {
|
||||
debug_print(format!(
|
||||
println!(
|
||||
">>> Missing memory is being FETCH at 0x{address:x}, data size = {size}, data value = 0x{:x}, PC=0x{pc:x}",
|
||||
value as u64
|
||||
));
|
||||
);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user