Rizin
unix-like reverse engineering framework and cli tools
|
Functions | |
RZ_API void | rz_core_cmpwatch_free (RzCoreCmpWatcher *w) |
RZ_API RzCoreCmpWatcher * | rz_core_cmpwatch_get (RzCore *core, ut64 addr) |
Get the memory watcher at address addr . More... | |
RZ_API bool | rz_core_cmpwatch_add (RzCore *core, ut64 addr, int size, const char *cmd) |
Add a memory watcher at address addr od size size and command cmd . More... | |
RZ_API bool | rz_core_cmpwatch_del (RzCore *core, ut64 addr) |
Delete a memory watcher at address addr . More... | |
RZ_API void | rz_core_cmpwatch_show (RzCore *core, ut64 addr, RzOutputMode mode) |
Show/print the memory watcher present at address addr . More... | |
RZ_API bool | rz_core_cmpwatch_update (RzCore *core, ut64 addr) |
Update the memory watcher at address addr . More... | |
RZ_API bool | rz_core_cmpwatch_revert (RzCore *core, ut64 addr) |
Revert/reset a memory watcher at address addr . More... | |
API for memory watcher functions
Add a memory watcher at address addr
od size size
and command cmd
.
core | Current RzCore instance |
addr | Address where to add the new memory watcher |
size | Size of the memory watcher to be addded |
cmd | Command to be associated with the memory watcher |
Definition at line 337 of file cmp.c.
References addr, cmd, free(), rz_core_t::io, malloc(), NULL, rz_core_cmpwatch_get(), rz_io_nread_at(), rz_list_append(), RZ_NEW, rz_return_val_if_fail, snprintf, and rz_core_t::watchers.
Referenced by rz_cmd_cmp_add_memory_watcher_handler().
Delete a memory watcher at address addr
.
core | Current RzCore instance |
addr | Address of the memory watcher to be deleted (if UT64_MAX, then all memory watchers will be deleted) |
Definition at line 375 of file cmp.c.
References addr, rz_list_delete(), rz_return_val_if_fail, UT64_MAX, w, and rz_core_t::watchers.
Referenced by rz_cmd_cmp_remove_watcher_handler().
RZ_API void rz_core_cmpwatch_free | ( | RzCoreCmpWatcher * | w | ) |
RZ_API RzCoreCmpWatcher* rz_core_cmpwatch_get | ( | RzCore * | core, |
ut64 | addr | ||
) |
Get the memory watcher at address addr
.
core | Current RzCore instance |
addr | Expected address for the memory watcher to be found |
Definition at line 316 of file cmp.c.
References addr, NULL, rz_return_val_if_fail, w, and rz_core_t::watchers.
Referenced by rz_core_cmpwatch_add().
Revert/reset a memory watcher at address addr
.
core | Current RzCore instance |
addr | Address of the memory watcher to be reset (if UT64_MAX, then all memory watchers will be reset) |
Definition at line 458 of file cmp.c.
References addr, free(), NULL, rz_return_val_if_fail, UT64_MAX, w, and rz_core_t::watchers.
Referenced by rz_cmd_cmp_reset_watcher_handler().
RZ_API void rz_core_cmpwatch_show | ( | RzCore * | core, |
ut64 | addr, | ||
RzOutputMode | mode | ||
) |
Show/print the memory watcher present at address addr
.
core | Current RzCore instance |
addr | Address of the memory watcher to be printed (if UT64_MAX, then all memory watchers will be printed) |
mode | Output mode |
addr
Definition at line 397 of file cmp.c.
References addr, cmd, PFMT64d, PFMT64x, rz_cons_printf(), rz_core_cmd0(), RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, rz_return_if_fail, rz_warn_if_reached, snprintf, UT64_MAX, w, and rz_core_t::watchers.
Referenced by rz_cmd_cmp_list_compare_watchers_handler().
Update the memory watcher at address addr
.
core | Current RzCore instance |
addr | Address of the memory watcher to be updated (if UT64_MAX, then all memory watchers will be updated) |
Definition at line 430 of file cmp.c.
References addr, free(), rz_core_t::io, malloc(), rz_io_nread_at(), rz_return_val_if_fail, UT64_MAX, w, and rz_core_t::watchers.
Referenced by rz_cmd_cmp_update_watcher_handler().