Skip to content

Commit

Permalink
Fix displayed line in rtti symbol view
Browse files Browse the repository at this point in the history
  • Loading branch information
peace-maker authored and dvander committed Feb 1, 2019
1 parent 21b93b3 commit 3b67319
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/smxtools/smxviewer/MainWindow.cs
Expand Up @@ -364,6 +364,7 @@ private void renderStringAnalysis(MemoryStream stream, BinaryReader reader, int
{
addDetailLine("0x{0:x6}: {1}", i, current.ToString());
current.Clear();
continue;
}

if (b < 0x20 || b > 0x7f)
Expand Down Expand Up @@ -732,7 +733,7 @@ private void renderSymbolDetail(DebugVarEntry sym)

uint? line = null;
if (file_.DebugLines != null)
line = file_.DebugLines.FindLine((uint)sym.code_end);
line = file_.DebugLines.FindLine((uint)sym.code_start);
if (line != null)
addDetailLine("line: \"{0}\"", (uint)line);

Expand Down

0 comments on commit 3b67319

Please sign in to comment.