summaryrefslogtreecommitdiff
path: root/tools/trace/trace.py
diff options
context:
space:
mode:
authorNélio Laranjeiro2009-06-23 21:09:47 +0200
committerNélio Laranjeiro2009-06-23 21:09:47 +0200
commitccbfefb674166ac5cd95d737a019c88d5a20d3a8 (patch)
tree7df1d72cbdbe621e93402b63419895c3645afdd9 /tools/trace/trace.py
parent62949cf58f69ccd67fb38bb1aedcfe6a667265c1 (diff)
*tools/trace:
* Updating the python tool to use a host program to dump traces too.
Diffstat (limited to 'tools/trace/trace.py')
-rw-r--r--tools/trace/trace.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/trace/trace.py b/tools/trace/trace.py
index a6496652..b4c095a5 100644
--- a/tools/trace/trace.py
+++ b/tools/trace/trace.py
@@ -2,14 +2,13 @@
from optparse import OptionParser
import sys
-sys.path.append ('../../host/')
from tcreator.tcreator import *
from tinter.tinter import *
INTER_MODE=" (only available on interpretor mode)."
CREATE_MODE=" (only available on create mode)."
-print "Trace System v1.0 by APBTeam\n"
+print "Trace System v1.1 by APBTeam\n"
parser = OptionParser()
parser.add_option("-e", "--enum-name", dest="enum_name",
@@ -32,7 +31,7 @@ if options.type == 'create':
cre = TCreator (options.infile, options.outfile, options.enum_name)
cre.create ()
elif options.type == "inter":
- inter = TInter (options.infile, options.outfile)
+ inter = TInter (options.infile, options.outfile, args[0])
if options.list_trace:
inter.available_traces ()
elif options.trace: