[Lldb-commits] [lldb] [lldb][AIX] Implement read/write handling for GPR and SPR registers (PR #193205)
Hemang Gadhavi via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 24 03:41:47 PDT 2026
================
@@ -13,8 +13,20 @@
namespace lldb_private::process_aix {
+class NativeThreadAIX;
+
class NativeRegisterContextAIX
: public virtual NativeRegisterContextRegisterInfo {
+public:
+ // This function is implemented in the NativeRegisterContextAIX_ppc64
+ // subclasses to create a new instance of the host specific
+ // NativeRegisterContextAIX. The implementations can't collide as only one
+ // NativeRegisterContextAIX_ppc64 variant should be compiled into the final
+ // executable.
----------------
HemangGadhavi wrote:
Let me clarify the intent here.
A single lldb-server binary is capable of debugging both 32-bit and 64-bit processes; separate lldb-server binaries are not required.
The phrase “compiled into the final executable” was intended to indicate that only the relevant NativeRegisterContextAIX_ppc64 implementation is included in the build (as there is only one in this case). However, the selection between 32-bit and 64-bit behavior is performed at runtime based on the target process being debugged.
Apologies for the confusion — I have updated the comment to make this clearer.
https://github.com/llvm/llvm-project/pull/193205
More information about the lldb-commits
mailing list