From 3f9ec36bf414b08ac2ee0f62927997b8e0c127cb Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Mon, 12 Apr 2010 00:10:43 +0200 Subject: {tools/trace, digital/avr/modules/trace}: print trace on host execution, closes #92 --- tools/trace/trace.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'tools/trace/trace.py') diff --git a/tools/trace/trace.py b/tools/trace/trace.py index 4e252ddb..d3d2736c 100644 --- a/tools/trace/trace.py +++ b/tools/trace/trace.py @@ -12,11 +12,8 @@ print "Trace System by APBTeam\n" usage = "usage: %prog [options] [host program]" parser = OptionParser(usage=usage) -parser.add_option("-e", "--enum-name", dest="enum_name", - help="provide the enumerator name" + CREATE_MODE, - metavar="ENUM") -parser.add_option("-o", "--output", dest="outfile", - help="Store the enumerator on the output file" + CREATE_MODE) +parser.add_option("-o", "--output", dest="outfile", action="store_true", + help="generate events.h and events.c files" + CREATE_MODE) parser.add_option("-i", "--infile", dest="infile", help="Read the data from the file") parser.add_option("-t", "--type", dest="type", @@ -33,10 +30,10 @@ if options.type == "inter": assert args if options.type == 'create': - cre = TCreator (options.infile, options.outfile, options.enum_name) - cre.create () + cre = TCreator (options.infile) + cre.create (options.outfile) elif options.type == "inter": - inter = TInter (options.infile, options.outfile, args[0], options.cb) + inter = TInter (options.infile, args[0], options.cb) if options.list_trace: inter.available_traces () elif options.trace != None: -- cgit v1.2.3