aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-02-09 08:20:03 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-02-09 08:20:03 +0000
commitc56a97f95713fc5b910d70ba4f38159c53149bc9 (patch)
tree896b9957b2c25942fa5538ee24541cf0c70a34a5 /gdb/breakpoint.c
parent09f6ed3442a55ace63325d0a0264d826fb1c98f2 (diff)
downloadgdb-c56a97f95713fc5b910d70ba4f38159c53149bc9.zip
gdb-c56a97f95713fc5b910d70ba4f38159c53149bc9.tar.gz
gdb-c56a97f95713fc5b910d70ba4f38159c53149bc9.tar.bz2
gdb/
* breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index fc18d9c..9a878e1 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);
}