I tried using pycparser to analyze the code in binutils, but I got the following problem, how should this be solved?
File "/home/chen/ifcut/slice_func_ifline.py", line 124, in split_if ast = parser.parse(cont, filename='<none>')#, debuglevel=1) File "/usr/local/lib/python3.5/dist-packages/pycparserext-2021.1-py3.5.egg/pycparserext/ext_c_parser.py", line 34, in parse File "/usr/local/lib/python3.5/dist-packages/pycparser/ply/yacc.py", line 331, in parse return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc) File "/usr/local/lib/python3.5/dist-packages/pycparser/ply/yacc.py", line 1118, in parseopt_notrack p.callable(pslice) File "/usr/local/lib/python3.5/dist-packages/pycparser/plyparser.py", line 126, in param_rule func(self, p) File "/usr/local/lib/python3.5/dist-packages/pycparserext-2021.1-py3.5.egg/pycparserext/ext_c_parser.py", line 438, in p_xxx_declarator_2 File "/usr/local/lib/python3.5/dist-packages/pycparser/c_parser.py", line 273, in _type_modify_decl modifier_tail.type = decl AttributeError: 'Coord' object has no attribute 'type'
I tried using pycparser to analyze the code in binutils, but I got the following problem, how should this be solved?
File "/home/chen/ifcut/slice_func_ifline.py", line 124, in split_if ast = parser.parse(cont, filename='<none>')#, debuglevel=1) File "/usr/local/lib/python3.5/dist-packages/pycparserext-2021.1-py3.5.egg/pycparserext/ext_c_parser.py", line 34, in parse File "/usr/local/lib/python3.5/dist-packages/pycparser/ply/yacc.py", line 331, in parse return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc) File "/usr/local/lib/python3.5/dist-packages/pycparser/ply/yacc.py", line 1118, in parseopt_notrack p.callable(pslice) File "/usr/local/lib/python3.5/dist-packages/pycparser/plyparser.py", line 126, in param_rule func(self, p) File "/usr/local/lib/python3.5/dist-packages/pycparserext-2021.1-py3.5.egg/pycparserext/ext_c_parser.py", line 438, in p_xxx_declarator_2 File "/usr/local/lib/python3.5/dist-packages/pycparser/c_parser.py", line 273, in _type_modify_decl modifier_tail.type = decl AttributeError: 'Coord' object has no attribute 'type'