From 94b0e70d0c2a1309e3527a85a4c31a7eda4243d8 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 18 Oct 2012 20:12:21 +0000 Subject: [PATCH] * breakpoint.c (compare_breakpoints): Fix comparison. --- gdb/ChangeLog | 4 ++++ gdb/breakpoint.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2ac0ecdd3f1..124523d6d11 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-10-18 Tom Tromey + + * breakpoint.c (compare_breakpoints): Fix comparison. + 2012-10-18 Tom Tromey * valprint.c (generic_emit_char, generic_printstr): Pass size of diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 8eeeacf0be1..4a5c8c1cd68 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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. */ -- 2.30.2