Revision: 1794
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1794&view=rev
Author: roman_yakovenko
Date: 2010-01-07 20:22:54 +0000 (Thu, 07 Jan 2010)
Log Message:
-----------
misc: allow the process to continue, even in case the binary parser can not find the relevant declaration
Modified Paths:
--------------
pygccxml_dev/pygccxml/binary_parsers/parsers.py
Modified: pygccxml_dev/pygccxml/binary_parsers/parsers.py
===================================================================
--- pygccxml_dev/pygccxml/binary_parsers/parsers.py 2009-12-28 21:24:49 UTC (rev 1793)
+++ pygccxml_dev/pygccxml/binary_parsers/parsers.py 2010-01-07 20:22:54 UTC (rev 1794)
@@ -23,6 +23,7 @@
import warnings
import exceptions
import subprocess
+from pygccxml import utils
from pygccxml import declarations
class LicenseWarning( exceptions.UserWarning ):
@@ -95,10 +96,13 @@
self.__loaded_symbols = self.load_symbols()
result = {}
for smbl in self.__loaded_symbols:
- decorated, decl = self.merge( smbl )
- if decl:
- decl.decorated_name = decorated
- result[ decorated ] = decl
+ try:
+ decorated, decl = self.merge( smbl )
+ if decl:
+ decl.decorated_name = decorated
+ result[ decorated ] = decl
+ except declarations.matcher.declaration_not_found_t:
+ pass
return result
CCTS = declarations.CALLING_CONVENTION_TYPES
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|