return;
}
} else {
- if (!DB_CHECK_ACCESS(addr, BKPT_SIZE, task)) {
+ if (!DB_CHECK_ACCESS((vm_offset_t)addr, BKPT_SIZE, task)) {
if (task) {
db_printf("Warning: non-resident page for breakpoint at %llX",
(unsigned long long)addr);
&& bkpt->address == addr)
return(TRUE);
if ((bkpt->flags & BKPT_USR_GLOBAL) == 0 &&
- DB_PHYS_EQ(task, addr, bkpt->task, bkpt->address))
+ DB_PHYS_EQ(task, (vm_offset_t)addr, bkpt->task, (vm_offset_t)bkpt->address))
return (TRUE);
}
return(FALSE);
} else
bkpt->flags &= ~BKPT_1ST_SET;
}
- if (DB_CHECK_ACCESS(bkpt->address, BKPT_SIZE, task)) {
+ if (DB_CHECK_ACCESS((vm_offset_t)bkpt->address, BKPT_SIZE, task)) {
inst = db_get_task_value(bkpt->address, BKPT_SIZE, FALSE,
task);
if (inst == BKPT_SET(inst))
continue;
- bkpt->bkpt_inst = inst;
+ bkpt->bkpt_inst = (vm_size_t)inst;
db_put_task_value(bkpt->address,
BKPT_SIZE,
BKPT_SET(bkpt->bkpt_inst), task);
task = cur_task;
}
if ((bkpt->flags & BKPT_SET_IN_MEM)
- && DB_CHECK_ACCESS(bkpt->address, BKPT_SIZE, task)) {
+ && DB_CHECK_ACCESS((vm_offset_t)bkpt->address, BKPT_SIZE, task)) {
inst = db_get_task_value(bkpt->address, BKPT_SIZE, FALSE,
task);
if (inst != BKPT_SET(inst)) {
db_printf("Too many thread_breakpoints.\n");
return 0;
}
- bkpt->bkpt_inst = db_get_task_value(bkpt->address, BKPT_SIZE,
+ bkpt->bkpt_inst = (vm_size_t)db_get_task_value(bkpt->address, BKPT_SIZE,
FALSE, task);
db_put_task_value(bkpt->address, BKPT_SIZE,
BKPT_SET(bkpt->bkpt_inst), task);
db_printf("Bad break point number #%s\n", db_tok_string);
db_error(0);
}
- if ((tbp = db_find_breakpoint_number(db_tok_number, &bkpt)) == 0) {
+ if ((tbp = db_find_breakpoint_number((int)db_tok_number, &bkpt)) == 0) {
db_printf("No such break point #%d\n", db_tok_number);
db_error(0);
}
&& thr_act->task != db_current_space())
db_error("Cannot set break point in inactive user space\n");
db_set_breakpoint(db_target_space(thr_act, user_space),
- (db_addr_t)addr, count,
+ (db_addr_t)addr, (int)count,
(user_global)? THREAD_NULL: thr_act,
task_bpt);
}
} else {
db_set_breakpoint(db_target_space(THREAD_NULL, user_space),
(db_addr_t)addr,
- count, THREAD_NULL, FALSE);
+ (int)count, THREAD_NULL, FALSE);
}
}