forked from Imagelibrary/binutils-gdb
* breakpoint.c (remove_breakpoint): Change error to warning so
that hardware watchpoint removal problems won't leave breakpoint traps in the target. * configure configure.in: Make --enable-gdbtk be the default. * remote-e7000.c (e7000_insert_breakpoint, e7000_remove_breakpoint): Use e7000 based breakpoints, not memory breakpoints. * (e7000_wait): Adjust PC back by two when we see a breakpoint to compensate for e7000 maladjustment. * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug which prevented hardware watchpoints from working.
This commit is contained in:
@@ -239,17 +239,21 @@ sparclite_check_watch_resources (type, cnt, ot)
|
||||
int ot;
|
||||
{
|
||||
if (type == bp_hardware_breakpoint)
|
||||
if (TARGET_HW_BREAK_LIMIT == 0)
|
||||
return 0;
|
||||
else if (cnt <= TARGET_HW_BREAK_LIMIT)
|
||||
return 1;
|
||||
{
|
||||
if (TARGET_HW_BREAK_LIMIT == 0)
|
||||
return 0;
|
||||
else if (cnt <= TARGET_HW_BREAK_LIMIT)
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
if (TARGET_HW_WATCH_LIMIT == 0)
|
||||
return 0;
|
||||
else if (ot)
|
||||
return -1;
|
||||
else if (cnt <= TARGET_HW_WATCH_LIMIT)
|
||||
return 1;
|
||||
{
|
||||
if (TARGET_HW_WATCH_LIMIT == 0)
|
||||
return 0;
|
||||
else if (ot)
|
||||
return -1;
|
||||
else if (cnt <= TARGET_HW_WATCH_LIMIT)
|
||||
return 1;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user