File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -432,16 +432,15 @@ def parse_iar_command_line(self, lines):
432
432
for line in lines :
433
433
if line .startswith ("*" ):
434
434
break
435
- is_cmdline_file = RE_CMDLINE_FILE_IAR . match ( line )
436
- if is_cmdline_file :
437
- full_path = is_cmdline_file . group ( 1 )
438
- self .cmd_modules [os .path .basename (full_path )] = full_path
435
+ for arg in line . split ( " " ):
436
+ arg = arg . rstrip ( " \n " )
437
+ if ( not arg . startswith ( "-" )) and arg . endswith ( ".o" ):
438
+ self .cmd_modules [os .path .basename (arg )] = arg
439
439
440
440
common_prefix = os .path .dirname (os .path .commonprefix (self .cmd_modules .values ()))
441
441
self .cmd_modules = {s : os .path .relpath (f , common_prefix )
442
442
for s , f in self .cmd_modules .items ()}
443
443
444
-
445
444
def parse_map_file_iar (self , file_desc ):
446
445
""" Main logic to decode IAR map files
447
446
You can’t perform that action at this time.
0 commit comments