This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] [patch] update_global_location_list my comment fix [Re: [PATCH] Fix breakpoint updates for multi-inferior]
http://sourceware.org/ml/gdb-cvs/2012-02/msg00048.html
--- src/gdb/ChangeLog 2012/02/08 19:54:35 1.13816
+++ src/gdb/ChangeLog 2012/02/09 08:20:03 1.13817
@@ -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>
* language.h (symbol_name_cmp_ftype): Renames
--- src/gdb/breakpoint.c 2012/02/02 20:19:12 1.650
+++ src/gdb/breakpoint.c 2012/02/09 08:20:03 1.651
@@ -10589,12 +10589,13 @@
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);
}