import org.eclipse.tracecompass.internal.gdbtrace.core.event.GdbTraceEventContent;
import org.eclipse.tracecompass.tmf.core.event.ITmfEvent;
import org.eclipse.tracecompass.tmf.core.event.aspect.ITmfEventAspect;
-import org.eclipse.tracecompass.tmf.core.event.aspect.TmfEventFieldAspect;
+import org.eclipse.tracecompass.tmf.core.event.aspect.TmfContentFieldAspect;
import com.google.common.collect.ImmutableList;
private static final @NonNull Iterable<ITmfEventAspect> GDB_ASPECTS =
checkNotNull(ImmutableList.of(
- new GdbTraceFrameAspect(),
- new GdbTracepointAspect(),
+ new TmfContentFieldAspect(GdbTraceEventContent.TRACE_FRAME, GdbTraceEventContent.TRACE_FRAME),
+ new TmfContentFieldAspect(GdbTraceEventContent.TRACEPOINT, GdbTraceEventContent.TRACEPOINT),
new GdbFileAspect()
));
- private static class GdbTraceFrameAspect extends TmfEventFieldAspect {
- public GdbTraceFrameAspect() {
- super(GdbTraceEventContent.TRACE_FRAME,
- GdbTraceEventContent.TRACE_FRAME);
- }
- }
-
- private static class GdbTracepointAspect extends TmfEventFieldAspect {
- public GdbTracepointAspect() {
- super(GdbTraceEventContent.TRACEPOINT,
- GdbTraceEventContent.TRACEPOINT);
- }
- }
-
private static class GdbFileAspect implements ITmfEventAspect {
@Override