mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 04:43:17 +08:00
Fix for PR 18873:
* remote-mips.c (mips_initialize): Fix parameters to clear_breakpoint. (common_breakpoint): Restore support for instruction breakpoints on non-LSI targets.
This commit is contained in:
@ -1514,7 +1514,7 @@ mips_initialize ()
|
|||||||
|
|
||||||
/* Clear all breakpoints: */
|
/* Clear all breakpoints: */
|
||||||
if ((mips_monitor == MON_IDT
|
if ((mips_monitor == MON_IDT
|
||||||
&& clear_breakpoint (BREAK_UNUSED, -1, 0) == 0)
|
&& clear_breakpoint (-1, 0, BREAK_UNUSED) == 0)
|
||||||
|| mips_monitor == MON_LSI)
|
|| mips_monitor == MON_LSI)
|
||||||
monitor_supports_breakpoints = 1;
|
monitor_supports_breakpoints = 1;
|
||||||
else
|
else
|
||||||
@ -2801,6 +2801,9 @@ common_breakpoint (set, addr, len, type)
|
|||||||
case BREAK_ACCESS: /* read/write */
|
case BREAK_ACCESS: /* read/write */
|
||||||
flags = "rw";
|
flags = "rw";
|
||||||
break;
|
break;
|
||||||
|
case BREAK_FETCH: /* fetch */
|
||||||
|
flags = "f";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
abort ();
|
abort ();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user