[Desc.] warning view selection bug fixed, warning detail view fixed, hex value prefix "0x" attached.
[Issue]
public static final String QUESION_MARK = "?"; //$NON-NLS-1$
public static final String EOS = "\0";//$NON-NLS-1$
+ public static final String HEX_PREFIX = "0x";//$NON-NLS-1$
public static final String LOCAL_HOST = "127.0.0.1"; //$NON-NLS-1$
public static final String LINUX = "linux"; //$NON-NLS-1$
public static final String MAC = "mac"; //$NON-NLS-1$
public static final String WIN = "win"; //$NON-NLS-1$
-
+
public final static int SHORT_SIZE = Short.SIZE / Byte.SIZE;
public final static int INT_SIZE = Integer.SIZE / Byte.SIZE;
public final static int LONG_SIZE = Long.SIZE / Byte.SIZE;
public final static int FLOAT_SIZE = Float.SIZE / Byte.SIZE;
public final static int DOUBLE_SIZE = Double.SIZE / Byte.SIZE;
-
}
CALL_TRACE_VIEW_NAME=API
CALL_TRACE_VIEW_TIME=Time
-CALL_TRACE_VIEW_TID=Thread id
-CALL_TRACE_VIEW_PID=Process id
+CALL_TRACE_VIEW_TID=TID
+CALL_TRACE_VIEW_PID=PID
CALL_TRACE_VIEW_TITLE=Call Trace
UI_EVENT_LIST_TYPE=Type
int length = LogDataUtils.getStringLength(start, payload);
byte[] temp = new byte[length];
System.arraycopy(payload, start, temp, 0, length);
- return new String(temp);
+ String str = new String(temp);
+ str = str.substring(0, str.length() - 1);
+ return str;
}
}
import java.util.List;
import org.tizen.dynamicanalyzer.common.CommonConstants;
+import org.tizen.dynamicanalyzer.swap.model.data.LogData;
public class WarningChecker {
private List<WarningData> warningData = null;
int size = getWarningData().size();
for (int i = 0; i < size; i++) {
WarningData data = getWarningData().get(i);
- int wSeq = data.getSeq();
- if (wSeq == seq) {
+ LogData logData = data.getLogData();
+ if (null != logData && logData.getSeq() == seq) {
return data;
}
}
// create images
// create DATableDataFormat
- DATableDataFormat tableData = new DATableDataFormat(
- warningData.getSeq());
+ DATableDataFormat tableData = new DATableDataFormat(warningData
+ .getLogData().getSeq());
tableData.getData().addAll(text);
tableData.setLogData(warningData.getLogData());
tableData.setType(AnalyzerConstants.TYPE_TABLE_WARNING);
AnalyzerLabels.TABLE_COLUMN_ARGUMENT,
AnalyzerLabels.TABLE_COLUMN_RETURN,
AnalyzerLabels.TABLE_COLUMN_LIBNAME };
- private int[] columnSizes = { 60, 35, 35, 180, 100, 80, 200 };
+ private int[] columnSizes = { 60, 35, 35, 350, 150, 80, 200 };
private boolean[] columnVisibility = { true, true, true, true, true, true,
true };
int[] sortTypes = { AnalyzerConstants.SORT_TYPE_NUM,
}
public static String toHexdecimal(long value) {
-// String str = String.format("%x", value);
-// if (str.length() < 8) {
-// StringBuffer zeroBuffer = new StringBuffer();
-// for (int i = str.length() - 1; i < 8; i++) {
-// zeroBuffer.append(CommonConstants.ZERO);
-// }
-// str = zeroBuffer.toString() + str;
-// }
- return Long.toHexString(value);
+ return CommonConstants.HEX_PREFIX + Long.toHexString(value);
+ // if (str.length() < 8) {
+ // StringBuffer zeroBuffer = new StringBuffer();
+ // for (int i = str.length() - 1; i < 8; i++) {
+ // zeroBuffer.append(CommonConstants.ZERO);
+ // }
+ // str = zeroBuffer.toString() + str;
+ // }
}
public static String getProcessLocalBinaryPath(int pid, long time) {
public static String getBinarySourcePath(int pid, long time) {
String localBinPath = AnalyzerUtil.getProcessLocalBinaryPath(pid, time);
String key = getTargetPathKey(localBinPath);
- BinaryInfo binInfo = DACommunicator.getSelectedApp().getBinaryInfo(
- key);
+ BinaryInfo binInfo = DACommunicator.getSelectedApp().getBinaryInfo(key);
String sourceBinPath = binInfo.getSourceBinaryPath();
return sourceBinPath;
}
String path = libraryObject.getLibPath();
BinaryInfo binInfo = binInfoMap.get(path);
if (null != binInfo) {
- String localPath = binInfo.getSourceBinaryPath();
+ String localPath = binInfo.getSourceBinaryPath();
String baseAddr = Long.toString(libraryObject
.getLowestAddress());
String pcStr = Long.toString(pcAddr);