nitesh.jain updated this revision to Diff 110698.
nitesh.jain retitled this revision from "[LLDB][MIPS] The symbol with NOTYPE 
doesn't contain any valid address" to "[LLDB][MIPS] The symbol with NOTYPE and 
having section type dwarf doesn't contain any valid address".
Herald added a subscriber: emaste.

https://reviews.llvm.org/D35784

Files:
  source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp


Index: source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
===================================================================
--- source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+++ source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
@@ -2154,6 +2154,12 @@
       break;
     default:
       symbol_section_sp = section_list->GetSectionAtIndex(section_idx);
+      // If symbol type is Invalid then check for symbol section type
+      if (symbol.getType() == STT_NOTYPE && symbol_section_sp &&
+          symbol_section_sp->GetType() > eSectionTypeDataObjCCFStrings &&
+          symbol_section_sp->GetType() < eSectionTypeELFSymbolTable)
+          symbol_section_sp = nullptr;
+
       break;
     }
 


Index: source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
===================================================================
--- source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+++ source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
@@ -2154,6 +2154,12 @@
       break;
     default:
       symbol_section_sp = section_list->GetSectionAtIndex(section_idx);
+      // If symbol type is Invalid then check for symbol section type
+      if (symbol.getType() == STT_NOTYPE && symbol_section_sp &&
+          symbol_section_sp->GetType() > eSectionTypeDataObjCCFStrings &&
+          symbol_section_sp->GetType() < eSectionTypeELFSymbolTable)
+          symbol_section_sp = nullptr;
+
       break;
     }
 
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to