* breakpoint.c (compare_breakpoints): Fix comparison.
authorTom Tromey <tromey@redhat.com>
Thu, 18 Oct 2012 20:12:21 +0000 (20:12 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 18 Oct 2012 20:12:21 +0000 (20:12 +0000)
gdb/ChangeLog
gdb/breakpoint.c

index 2ac0ecdd3f1e7df2df66b1f9fb123fbb2cd653a9..124523d6d11add84ebb4584ad7fe551c2911e829 100644 (file)
@@ -1,3 +1,7 @@
+2012-10-18  Tom Tromey  <tromey@redhat.com>
+
+       * breakpoint.c (compare_breakpoints): Fix comparison.
+
 2012-10-18  Tom Tromey  <tromey@redhat.com>
 
        * valprint.c (generic_emit_char, generic_printstr): Pass size of
index 8eeeacf0be16ca028c33f9dcac351e78433e4d25..4a5c8c1cd6857238ea00ee6d850b8bd564836f52 100644 (file)
@@ -11766,7 +11766,7 @@ compare_breakpoints (const void *a, const void *b)
      the number 0.  */
   if (ua < ub)
     return -1;
-  return ub > ub ? 1 : 0;
+  return ua > ub ? 1 : 0;
 }
 
 /* Delete breakpoints by address or line.  */
This page took 0.067422 seconds and 4 git commands to generate.