From: seokgil.kang Date: Thu, 9 Apr 2015 10:13:31 +0000 (+0900) Subject: Summary : bug fix for source viewer in the CallStackTable of Summary page X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fda-leak;p=sdk%2Ftools%2Fdynamic-analyzer.git Summary : bug fix for source viewer in the CallStackTable of Summary page Change-Id: Ic0e164dfd5dbe35f95024969ff46e6577686a07e Signed-off-by: seokgil.kang --- diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/info/callstack/CallstackTable.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/info/callstack/CallstackTable.java index 9010c22..486efd1 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/info/callstack/CallstackTable.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/info/callstack/CallstackTable.java @@ -113,16 +113,12 @@ public class CallstackTable extends DATableComposite { long seqNum = -1; int pid = -1; long time = -1; - if (tableData.getType() == AnalyzerConstants.TYPE_TABLE_FAILED) { - List failedData = tableData.getData(); - seqNum = (Long) failedData.get(0); - pid = (Integer) failedData.get(7); - time = (Long) failedData.get(1); - } else if (tableData.getType() == AnalyzerConstants.TYPE_TABLE_LEAK) { - List leakData = tableData.getData(); - seqNum = (Long) leakData.get(0); - pid = (Integer) leakData.get(2); - time = (Long) leakData.get(4); + if (tableData.getType() == AnalyzerConstants.TYPE_TABLE_FAILED || + tableData.getType() == AnalyzerConstants.TYPE_TABLE_LEAK) { + LogData logData = tableData.getLogData(); + seqNum = logData.getSeq(); + pid = logData.getPid(); + time = logData.getTime(); } else if (tableData.getType() == AnalyzerConstants.TYPE_TABLE_CALLTRACE) { List calltraceData = tableData.getData(); seqNum = (Long) calltraceData.get(FunctionEntryDBTable.COLUMN.SEQ.index);