llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Med Ismail Bennani (medismailben)

<details>
<summary>Changes</summary>

This patch adds support to the haswell sub-architecture (x86_64h) to scripted 
processes.

rdar://147208252

---
Full diff: https://github.com/llvm/llvm-project/pull/145099.diff


2 Files Affected:

- (modified) lldb/examples/python/templates/scripted_process.py (+1-1) 
- (modified) lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips 
(+1-1) 


``````````diff
diff --git a/lldb/examples/python/templates/scripted_process.py 
b/lldb/examples/python/templates/scripted_process.py
index c7d5b28b52c00..b6360b8519077 100644
--- a/lldb/examples/python/templates/scripted_process.py
+++ b/lldb/examples/python/templates/scripted_process.py
@@ -352,7 +352,7 @@ def get_stackframes(self):
     def get_register_info(self):
         if self.register_info is None:
             self.register_info = dict()
-            if self.originating_process.arch == "x86_64":
+            if "x86_64" in self.originating_process.arch:
                 self.register_info["sets"] = ["General Purpose Registers"]
                 self.register_info["registers"] = INTEL64_GPR
             elif (
diff --git a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips 
b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips
index cc2f16c016147..a11074f13e90a 100644
--- a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips
+++ b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips
@@ -169,7 +169,7 @@
   },
   {
     "source" : "P",
-    "arch" : "x86_64",
+    "arch" : "x86_64h",
     "base" : 140733734899712,
     "size" : 245760,
     "uuid" : "c5caf30b-0617-3b07-88c7-6319cd06f30a",

``````````

</details>


https://github.com/llvm/llvm-project/pull/145099
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to