@@ -191,27 +191,33 @@ def _Worker():
191
191
while True :
192
192
binary = queue .get ()
193
193
194
- if options .verbose :
195
- with print_lock :
196
- print "Generating symbols for %s" % binary
197
-
198
- if sys .platform == 'darwin' :
199
- binary = GetDSYMBundle (options , binary )
200
- elif sys .platform == 'linux2' :
201
- binary = GetSymbolPath (options , binary )
202
-
203
- syms = GetCommandOutput ([GetDumpSymsBinary (options .build_dir ), '-r' , '-c' ,
204
- binary ])
205
- module_line = re .match ("MODULE [^ ]+ [^ ]+ ([0-9A-F]+) (.*)\n " , syms )
206
- output_path = os .path .join (options .symbols_dir , module_line .group (2 ),
207
- module_line .group (1 ))
208
- mkdir_p (output_path )
209
- symbol_file = "%s.sym" % module_line .group (2 )
210
- f = open (os .path .join (output_path , symbol_file ), 'w' )
211
- f .write (syms )
212
- f .close ()
213
-
214
- queue .task_done ()
194
+ try :
195
+ if options .verbose :
196
+ with print_lock :
197
+ print "Generating symbols for %s" % binary
198
+
199
+ if sys .platform == 'darwin' :
200
+ binary = GetDSYMBundle (options , binary )
201
+ elif sys .platform == 'linux2' :
202
+ binary = GetSymbolPath (options , binary )
203
+
204
+ syms = GetCommandOutput ([GetDumpSymsBinary (options .build_dir ), '-r' , '-c' ,
205
+ binary ])
206
+ module_line = re .match ("MODULE [^ ]+ [^ ]+ ([0-9A-F]+) (.*)\n " , syms )
207
+ output_path = os .path .join (options .symbols_dir , module_line .group (2 ),
208
+ module_line .group (1 ))
209
+ mkdir_p (output_path )
210
+ symbol_file = "%s.sym" % module_line .group (2 )
211
+ f = open (os .path .join (output_path , symbol_file ), 'w' )
212
+ f .write (syms )
213
+ f .close ()
214
+ except Exception as inst :
215
+ if options .verbose :
216
+ with print_lock :
217
+ print type (inst )
218
+ print inst
219
+ finally :
220
+ queue .task_done ()
215
221
216
222
for binary in binaries :
217
223
queue .put (binary )
0 commit comments