mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 08:38:10 +08:00
gdb/
* breakpoint.c (add_location_to_breakpoint): Insert the location with ADDRESS sorted.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
* breakpoint.c (add_location_to_breakpoint): Insert the location with
|
||||||
|
ADDRESS sorted.
|
||||||
|
|
||||||
2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
||||||
|
|
||||||
* aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
|
* aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
|
||||||
|
@ -8827,9 +8827,12 @@ add_location_to_breakpoint (struct breakpoint *b,
|
|||||||
adjusted_address = adjust_breakpoint_address (loc_gdbarch,
|
adjusted_address = adjust_breakpoint_address (loc_gdbarch,
|
||||||
sal->pc, b->type);
|
sal->pc, b->type);
|
||||||
|
|
||||||
|
/* Sort the locations by their ADDRESS. */
|
||||||
loc = allocate_bp_location (b);
|
loc = allocate_bp_location (b);
|
||||||
for (tmp = &(b->loc); *tmp != NULL; tmp = &((*tmp)->next))
|
for (tmp = &(b->loc); *tmp != NULL && (*tmp)->address <= adjusted_address;
|
||||||
|
tmp = &((*tmp)->next))
|
||||||
;
|
;
|
||||||
|
loc->next = *tmp;
|
||||||
*tmp = loc;
|
*tmp = loc;
|
||||||
|
|
||||||
loc->requested_address = sal->pc;
|
loc->requested_address = sal->pc;
|
||||||
|
Reference in New Issue
Block a user