Skip to content

Commit

Permalink
Fix a couple of debugger warnings for linux and macos
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jun 13, 2024
1 parent 1d6210b commit 7479389
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libr/bp/bp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion libr/debug/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion libr/debug/p/native/xnu/xnu_threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7479389

Please sign in to comment.