* breakpoint.c (compare_breakpoints): Fix comparison.

This commit is contained in:
Tom Tromey 2012-10-18 20:12:21 +00:00
parent f462b01f69
commit 94b0e70d0c
2 changed files with 5 additions and 1 deletions

View 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

View 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. */