================
@@ -109,6 +110,23 @@ class ObjectFilePECOFF : public lldb_private::ObjectFile {
 
   bool IsExecutable() const override;
 
+  bool IsSystem() const override {
+    std::string path_str = m_file.GetPath();
+    if (path_str.empty())
+      return false;
+    std::replace(path_str.begin(), path_str.end(), '\\', '/');
+    llvm::StringRef path = path_str;
+
+    // Skip past drive letter.
+    if (!llvm::isAlpha(path[0]))
+      return false;
+    path = path.substr(1);
+
+    return path.starts_with_insensitive(":/windows/system32/") ||
----------------
charles-zablit wrote:

These checks make sense to me. I do agree that they should be Platform APIs 
instead.

https://github.com/llvm/llvm-project/pull/187820
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to