[Lldb-commits] [lldb] r181818 - strncmp was checked incorrectly in the Linux symbol lookup fix.

Matt Kopec Matt.Kopec at intel.com
Tue May 14 12:00:41 PDT 2013


Author: mkopec
Date: Tue May 14 14:00:41 2013
New Revision: 181818

URL: http://llvm.org/viewvc/llvm-project?rev=181818&view=rev
Log:
strncmp was checked incorrectly in the Linux symbol lookup fix.

Modified:
    lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp?rev=181818&r1=181817&r2=181818&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp Tue May 14 14:00:41 2013
@@ -3565,8 +3565,8 @@ SymbolFileDWARF::FindFunctions (const Co
                         {
                             ConstString mangled_name = sc.GetFunctionName(Mangled::ePreferMangled);
                             ConstString demangled_name = sc.GetFunctionName(Mangled::ePreferDemangled);
-                            if (!strncmp(mangled_name.GetCString(), "_ZN", 3) ||
-                                strncmp(demangled_name.GetCString(), "(anonymous namespace)", 21))
+                            if (strncmp(mangled_name.GetCString(), "_ZN", 3) ||
+                                !strncmp(demangled_name.GetCString(), "(anonymous namespace)", 21))
                             {
                                 sc_list.Append(sc);
                             }





More information about the lldb-commits mailing list