Changeset View
Changeset View
Standalone View
Standalone View
contrib/gdb/gdb/breakpoint.c
Show First 20 Lines • Show All 7,612 Lines • ▼ Show 20 Lines | is valid is not currently in scope.\n", bpt->number); | ||||
if (bpt->type == bp_hardware_watchpoint || | if (bpt->type == bp_hardware_watchpoint || | ||||
bpt->type == bp_read_watchpoint || | bpt->type == bp_read_watchpoint || | ||||
bpt->type == bp_access_watchpoint) | bpt->type == bp_access_watchpoint) | ||||
{ | { | ||||
int i = hw_watchpoint_used_count (bpt->type, &other_type_used); | int i = hw_watchpoint_used_count (bpt->type, &other_type_used); | ||||
int mem_cnt = can_use_hardware_watchpoint (bpt->val); | int mem_cnt = can_use_hardware_watchpoint (bpt->val); | ||||
/* Hack around 'unused var' error for some targets here */ | |||||
(void) mem_cnt, i; | |||||
target_resources_ok = TARGET_CAN_USE_HARDWARE_WATCHPOINT ( | target_resources_ok = TARGET_CAN_USE_HARDWARE_WATCHPOINT ( | ||||
bpt->type, i + mem_cnt, other_type_used); | bpt->type, i + mem_cnt, other_type_used); | ||||
/* we can consider of type is bp_hardware_watchpoint, convert to | /* we can consider of type is bp_hardware_watchpoint, convert to | ||||
bp_watchpoint in the following condition */ | bp_watchpoint in the following condition */ | ||||
if (target_resources_ok < 0) | if (target_resources_ok < 0) | ||||
{ | { | ||||
printf_filtered ("\ | printf_filtered ("\ | ||||
Cannot enable watchpoint %d because target watch resources\n\ | Cannot enable watchpoint %d because target watch resources\n\ | ||||
▲ Show 20 Lines • Show All 470 Lines • Show Last 20 Lines |