Skip to content

Conversation

@medismailben
Copy link
Member

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

rdar://147208252

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

rdar://147208252

Signed-off-by: Med Ismail Bennani <[email protected]>
@llvmbot
Copy link
Member

llvmbot commented Jun 20, 2025

@llvm/pr-subscribers-lldb

Author: Med Ismail Bennani (medismailben)

Changes

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 --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",

@medismailben medismailben requested a review from bulbazord June 20, 2025 20:13
@JDevlieghere
Copy link
Member

Not "NFC" though, clearly there's a functional change :-)

@medismailben medismailben changed the title [lldb] Add support for x86_64h to scripted process (NFC) [lldb] Add support for x86_64h to scripted process Jun 20, 2025
@medismailben medismailben merged commit 58f4801 into llvm:main Jun 20, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants