From 5f5341a71f2875ebdb3b657784da12de724641c6 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 22 Mar 1993 20:41:20 +0000 Subject: [PATCH] * mipsread.c (compare_blocks): Sort blocks with the same start address by decreasing ending address. --- gdb/ChangeLog | 5 +++++ gdb/mipsread.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0a51079..9d17174 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Mon Mar 22 12:36:24 1993 Ian Lance Taylor (ian@cygnus.com) + + * mipsread.c (compare_blocks): Sort blocks with the same start + address by decreasing ending address. + Mon Mar 22 20:36:04 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) * mipsread.c (parse_procedure): Save cur_fdr accross call to diff --git a/gdb/mipsread.c b/gdb/mipsread.c index 9b8a240..bd46af7 100644 --- a/gdb/mipsread.c +++ b/gdb/mipsread.c @@ -2853,7 +2853,7 @@ compare_blocks (arg1, arg2) addr_diff = (BLOCK_START ((*b1))) - (BLOCK_START ((*b2))); if (addr_diff == 0) - return (BLOCK_END ((*b1))) - (BLOCK_END ((*b2))); + return (BLOCK_END ((*b2))) - (BLOCK_END ((*b1))); return addr_diff; } -- 2.7.4