diff options
author | Tom Tromey <tromey@redhat.com> | 2012-10-18 20:12:18 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-10-18 20:12:18 +0000 |
commit | 2a9cc33208852e18f5f797183732f20478ece889 (patch) | |
tree | c48bc5106a833a40828d7ab241433cff8b7746c9 | |
parent | ca4d1da0f6850561b29ff5fe990fddbf696cd1a4 (diff) | |
download | gdb-2a9cc33208852e18f5f797183732f20478ece889.tar.gz |
* breakpoint.c (compare_breakpoints): Fix comparison.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/breakpoint.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2ac0ecdd3f1..124523d6d11 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 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 gdb_wchar_t to convert_between_encodings. 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. */ |