Skip to content

Commit

Permalink
add debug option in getcfg method
Browse files Browse the repository at this point in the history
  • Loading branch information
bdcht committed Aug 20, 2015
1 parent ae063b3 commit d4d46e8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions amoco/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,13 @@ def check_ext_target(self,t):
return True
return False

def getcfg(self,loc=None):
def getcfg(self,loc=None,debug=False):
if debug: import pdb
try:
for x in self.itercfg(loc): pass
for x in self.itercfg(loc):
if debug: pdb.set_trace()
except KeyboardInterrupt:
pass
if debug: pdb.set_trace()
return self.G

# generic 'forward' analysis explorer.
Expand Down

0 comments on commit d4d46e8

Please sign in to comment.