generic-tracing: fix lossage of first event

When using the generic-tracing experiment for generating a trace, the
first event, after the tracing is started (the start-symbol) is lost
in the trace. This patch handles this special case seperately.

Change-Id: Ia131a8559d67161532504160826fdb100247ed75
This commit is contained in:
Christian Dietrich
2013-09-19 15:57:11 +02:00
parent f2e76bfd70
commit 036e340bd9
3 changed files with 50 additions and 5 deletions

View File

@ -209,6 +209,10 @@ bool GenericTracing::run()
// this must be done *after* configuring the plugin:
simulator.addFlow(&tp);
// In order to not loose the IP event at the beginning of the
// trace, we have to handle the IP event manually
tp.handleSingleIP(l_start_symbol);
////////////////////////////////////////////////////////////////
// STEP 2: continue to the save point, and save state
if (start_symbol != save_symbol) {