Author: tfaber
Date: Fri Sep 4 08:02:35 2015
New Revision: 68980
URL:
http://svn.reactos.org/svn/reactos?rev=68980&view=rev
Log:
[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
Modified:
trunk/reactos/tools/rsym/rsym.c
Modified: trunk/reactos/tools/rsym/rsym.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rsym/rsym.c?rev=6898…
==============================================================================
--- trunk/reactos/tools/rsym/rsym.c [iso-8859-1] (original)
+++ trunk/reactos/tools/rsym/rsym.c [iso-8859-1] Fri Sep 4 08:02:35 2015
@@ -119,6 +119,16 @@
}
if (SymEntry2->Address < SymEntry1->Address)
+ {
+ return +1;
+ }
+
+ if (SymEntry2->SourceLine == 0)
+ {
+ return +1;
+ }
+
+ if (SymEntry1->SourceLine == 0)
{
return +1;
}