import java.io.IOException;
import java.io.StringReader;
+import java.math.BigInteger;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
if (isProbeFunction) {
IProbeEventInfo probeEvent = new ProbeEventInfo(eventInfo);
eventInfo = probeEvent;
- // get attributes
- Node rawAttributes = getFirstOf(rawInfos, MIStrings.ATTRIBUTES);
- if (rawAttributes == null) {
- throw new ExecutionException(Messages.TraceControl_MiMissingRequiredError);
- }
Node rawDataNode = null;
switch (probeEvent.getEventType()) {
- case PROBE:
- rawDataNode = getFirstOf(rawAttributes.getChildNodes(), MIStrings.PROBE_ATTRIBUTES);
- break;
case FUNCTION:
- rawDataNode = getFirstOf(rawAttributes.getChildNodes(), MIStrings.FUNCTION_ATTRIBUTES);
+ case PROBE: {
+ // get attributes
+ Node rawAttributes = getFirstOf(rawInfos, MIStrings.ATTRIBUTES);
+ if (rawAttributes == null) {
+ throw new ExecutionException(Messages.TraceControl_MiMissingRequiredError);
+ }
+ rawDataNode = getFirstOf(rawAttributes.getChildNodes(), MIStrings.PROBE_ATTRIBUTES);
break;
+ }
case SYSCALL:
case TRACEPOINT:
case UNKNOWN:
probeEvent.setSymbol(rawData.getTextContent());
break;
case MIStrings.ADDRESS:
- probeEvent.setAddress(rawData.getTextContent());
+ probeEvent.setAddress(String.format("%#016x", new BigInteger(rawData.getTextContent()))); //$NON-NLS-1$
break;
case MIStrings.OFFSET:
- probeEvent.setOffset(rawData.getTextContent());
+ probeEvent.setOffset(String.format("%#016x", new BigInteger(rawData.getTextContent()))); //$NON-NLS-1$
break;
default:
break;