summaryrefslogtreecommitdiff
path: root/soltools/ldump
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-10-15 12:30:42 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-10-15 12:30:42 +0000
commit301131a5afba707c0ea3f3f0364aa2a349fed6ed (patch)
tree017e00fa56f0cebf930fe5652b8bb8fd8fed781b /soltools/ldump
parent5f8b3ff0ef5e29cd556e0ddf11e3f82786f72d28 (diff)
INTEGRATION: CWS ldump01 (1.16.4); FILE MERGED
2007/10/10 13:08:37 vg 1.16.4.1: #i82474# anonymous namespace symbol filtering
Diffstat (limited to 'soltools/ldump')
-rw-r--r--soltools/ldump/ldump.cxx17
1 files changed, 15 insertions, 2 deletions
diff --git a/soltools/ldump/ldump.cxx b/soltools/ldump/ldump.cxx
index 18863cf5c2e3..4ce2f16fe7e5 100644
--- a/soltools/ldump/ldump.cxx
+++ b/soltools/ldump/ldump.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: ldump.cxx,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: vg $ $Date: 2007-09-20 15:59:43 $
+ * last change: $Author: vg $ $Date: 2007-10-15 13:30:42 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -340,11 +340,24 @@ bool LibDump::PrintSym(char *pName, bool bName )
return true;
}
+bool LibDump::IsFromAnonymousNamespace (char *pExportName) {
+ char* pattern1 = "@?A0x";
+
+ if (strstr(pExportName, pattern1)) {
+ return true;
+ };
+ return false;
+};
+
bool LibDump::Filter(char *pExportName)
{
unsigned long i;
char pTest[256];
+ // filter out symbols from anonymous namespaces
+ if (IsFromAnonymousNamespace (pExportName))
+ return false;
+
// Kein Filter gesetzt
if ( ::bFilter == 0 )
return true;