mirror of https://github.com/geohot/qira
clean up the args for static
This commit is contained in:
parent
0fcf5cca59
commit
7b48cfd875
|
@ -26,8 +26,8 @@ if __name__ == '__main__':
|
|||
parser.add_argument("--host", metavar="HOST", help="listen address for web interface and socat. "+qira_config.HOST+" by default", default=qira_config.HOST)
|
||||
parser.add_argument("--web-port", metavar="PORT", help="listen port for web interface. 3002 by default", type=int, default=qira_config.WEB_PORT)
|
||||
parser.add_argument("--socat-port", metavar="PORT", help="listen port for socat. 4000 by default", type=int, default=qira_config.SOCAT_PORT)
|
||||
parser.add_argument('-S', help="enable static2", action="store_true")
|
||||
parser.add_argument("--static-engine", metavar="STATIC_ENGINE", help="static engine to use with static2 (builtin or r2)", nargs="?")
|
||||
parser.add_argument('-S', '--static', help="enable static2", action="store_true")
|
||||
parser.add_argument("--engine", help="static engine to use with static2 (builtin or r2)", default="builtin")
|
||||
#capstone flag in qira_config for now
|
||||
|
||||
# parse arguments, first try
|
||||
|
@ -65,13 +65,10 @@ if __name__ == '__main__':
|
|||
if args.tracelibraries:
|
||||
qira_config.TRACE_LIBRARIES = True
|
||||
|
||||
if args.S:
|
||||
if args.static:
|
||||
print "*** using static"
|
||||
qira_config.WITH_STATIC = True
|
||||
if args.static_engine:
|
||||
print "*** using static engine", args.static_engine
|
||||
qira_config.WITH_STATIC = True
|
||||
qira_config.STATIC_ENGINE = args.static_engine
|
||||
qira_config.STATIC_ENGINE = args.engine
|
||||
if args.flush_cache:
|
||||
print "*** flushing caches"
|
||||
os.system("rm -rfv /tmp/qira*")
|
||||
|
|
|
@ -211,7 +211,7 @@ class Static:
|
|||
|
||||
def process(self):
|
||||
self.analyzer.analyze_functions(self)
|
||||
if self.debug >= 1:
|
||||
if self.debug >= 0:
|
||||
print "*** found %d functions" % len(self['functions'])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue