Skip to content

Commit

Permalink
Properly try to resolve_label multiple times in attach to pid.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Jul 12, 2019
1 parent 76863a9 commit ada7f93
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ def resolve_label(process, label):
for i in range(max_attempts):
try:
address = process.resolve_label(label)
if not address:
raise AssertionError('%s not resolved.' % (label,))
return address
except:
try:
Expand Down

0 comments on commit ada7f93

Please sign in to comment.