From e6718d0d2b99b2f739711a0e70507408bfa021f4 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Fri, 4 Sep 2015 08:02:35 +0000 Subject: [PATCH] [RSYM] - Sort symbol entries with line number information before those without. Fixes backtraces showing ":0" as file/line for the first line of a function svn path=/trunk/; revision=68980 --- reactos/tools/rsym/rsym.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/reactos/tools/rsym/rsym.c b/reactos/tools/rsym/rsym.c index d6a2c0902dc..f5bba04435c 100644 --- a/reactos/tools/rsym/rsym.c +++ b/reactos/tools/rsym/rsym.c @@ -123,6 +123,16 @@ CompareSymEntry(const PROSSYM_ENTRY SymEntry1, const PROSSYM_ENTRY SymEntry2) return +1; } + if (SymEntry2->SourceLine == 0) + { + return +1; + } + + if (SymEntry1->SourceLine == 0) + { + return +1; + } + return 0; } -- 2.17.1