From c56a97f95713fc5b910d70ba4f38159c53149bc9 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Thu, 9 Feb 2012 08:20:03 +0000 Subject: [PATCH] gdb/ * breakpoint.c (bp_location_compare): Fix comment. Reindent the code. --- gdb/ChangeLog | 4 ++++ gdb/breakpoint.c | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f3569fdc242..cb05fb5a55b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-02-09 Jan Kratochvil + + * breakpoint.c (bp_location_compare): Fix comment. Reindent the code. + 2012-02-08 Joel Brobecker * language.h (symbol_name_cmp_ftype): Renames diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index fc18d9c2198..9a878e15d73 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -10589,12 +10589,13 @@ bp_location_compare (const void *ap, const void *bp) if (a_perm != b_perm) return (a_perm < b_perm) - (a_perm > b_perm); - /* Make the user-visible order stable across GDB runs. Locations of - the same breakpoint can be sorted in arbitrary order. */ + /* Make the internal GDB representation stable across GDB runs + 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) - return (a->owner->number > b->owner->number) - - (a->owner->number < b->owner->number); + return ((a->owner->number > b->owner->number) + - (a->owner->number < b->owner->number)); return (a > b) - (a < b); } -- 2.30.2