gdb/
* breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
This commit is contained in:
parent
09f6ed3442
commit
c56a97f957
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
* breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
|
||||||
|
|
||||||
2012-02-08 Joel Brobecker <brobecker@adacore.com>
|
2012-02-08 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* language.h (symbol_name_cmp_ftype): Renames
|
* language.h (symbol_name_cmp_ftype): Renames
|
||||||
|
|
|
@ -10589,12 +10589,13 @@ bp_location_compare (const void *ap, const void *bp)
|
||||||
if (a_perm != b_perm)
|
if (a_perm != b_perm)
|
||||||
return (a_perm < b_perm) - (a_perm > b_perm);
|
return (a_perm < b_perm) - (a_perm > b_perm);
|
||||||
|
|
||||||
/* Make the user-visible order stable across GDB runs. Locations of
|
/* Make the internal GDB representation stable across GDB runs
|
||||||
the same breakpoint can be sorted in arbitrary order. */
|
where A and B memory inside GDB can differ. Breakpoint locations of
|
||||||
|
the same type at the same address can be sorted in arbitrary order. */
|
||||||
|
|
||||||
if (a->owner->number != b->owner->number)
|
if (a->owner->number != b->owner->number)
|
||||||
return (a->owner->number > b->owner->number)
|
return ((a->owner->number > b->owner->number)
|
||||||
- (a->owner->number < b->owner->number);
|
- (a->owner->number < b->owner->number));
|
||||||
|
|
||||||
return (a > b) - (a < b);
|
return (a > b) - (a < b);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue