Fix a couple of debugger warnings for linux and macos

This commit is contained in:
pancake 2024-06-13 14:37:28 +02:00
parent 1d6210b2c7
commit 7479389043
3 changed files with 4 additions and 4 deletions

View File

@ -162,8 +162,8 @@ static void unlinkBreakpoint(RBreakpoint *bp, RBreakpointItem *b) {
}
/* TODO: detect overlapping of breakpoints */
static RBreakpointItem *r_bp_add(RBreakpoint *bp, const ut8 *obytes, ut64 addr, int size, int hw, int perm) {
R_RETURN_VAL_IF_FAIL (bp && obytes, NULL);
static RBreakpointItem *r_bp_add(RBreakpoint *bp, R_NULLABLE const ut8 *obytes, ut64 addr, int size, int hw, int perm) {
R_RETURN_VAL_IF_FAIL (bp, NULL);
if (addr == UT64_MAX || size < 1) {
return NULL;
}

View File

@ -283,7 +283,7 @@ R_API RBreakpointItem *r_debug_bp_add(RDebug *dbg, ut64 addr, int hw, bool watch
}
r_list_free (list);
} else {
//module holds the address
// module holds the address
addr = (ut64)r_num_math (dbg->num, module);
if (!addr) {
return NULL;

View File

@ -195,7 +195,7 @@ static bool xnu_thread_set_gpr(RDebug *dbg, xnu_thread_t *thread) {
if (rc == KERN_SUCCESS) {
R_LOG_INFO ("convert from self works");
} else {
R_LOG_WARN ("failed to convert %d", rc);
R_LOG_DEBUG ("failed to convert %d", rc);
}
thread->flavor = ARM_UNIFIED_THREAD_STATE;