mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 21:34:13 +08:00
* breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
all hardware bpstats.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2008-09-16 David Daney <ddaney@avtrex.com>
|
||||||
|
|
||||||
|
* breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
|
||||||
|
all hardware bpstats.
|
||||||
|
|
||||||
2008-09-16 Joel Brobecker <brobecker@adacore.com>
|
2008-09-16 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* gstdint.h: Delete.
|
* gstdint.h: Delete.
|
||||||
|
@ -3054,6 +3054,7 @@ bpstat_stop_status (CORE_ADDR bp_addr, ptid_t ptid)
|
|||||||
/* Pointer to the last thing in the chain currently. */
|
/* Pointer to the last thing in the chain currently. */
|
||||||
bpstat bs = root_bs;
|
bpstat bs = root_bs;
|
||||||
int ix;
|
int ix;
|
||||||
|
int need_remove_insert;
|
||||||
|
|
||||||
ALL_BP_LOCATIONS (bl)
|
ALL_BP_LOCATIONS (bl)
|
||||||
{
|
{
|
||||||
@ -3146,6 +3147,7 @@ bpstat_stop_status (CORE_ADDR bp_addr, ptid_t ptid)
|
|||||||
if (bs->stop)
|
if (bs->stop)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
need_remove_insert = 0;
|
||||||
if (bs == NULL)
|
if (bs == NULL)
|
||||||
for (bs = root_bs->next; bs != NULL; bs = bs->next)
|
for (bs = root_bs->next; bs != NULL; bs = bs->next)
|
||||||
if (!bs->stop
|
if (!bs->stop
|
||||||
@ -3158,9 +3160,13 @@ bpstat_stop_status (CORE_ADDR bp_addr, ptid_t ptid)
|
|||||||
location is no longer used by the watchpoint. Prevent
|
location is no longer used by the watchpoint. Prevent
|
||||||
further code from trying to use it. */
|
further code from trying to use it. */
|
||||||
bs->breakpoint_at = NULL;
|
bs->breakpoint_at = NULL;
|
||||||
|
need_remove_insert = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (need_remove_insert)
|
||||||
|
{
|
||||||
remove_breakpoints ();
|
remove_breakpoints ();
|
||||||
insert_breakpoints ();
|
insert_breakpoints ();
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return root_bs->next;
|
return root_bs->next;
|
||||||
|
Reference in New Issue
Block a user