[Lldb-commits] [lldb] r233796 - Make Test11588 compatible with non x86/x86_64 architecture
Tamas Berghammer
tberghammer at google.com
Wed Apr 1 03:45:45 PDT 2015
Author: tberghammer
Date: Wed Apr 1 05:45:44 2015
New Revision: 233796
URL: http://llvm.org/viewvc/llvm-project?rev=233796&view=rev
Log:
Make Test11588 compatible with non x86/x86_64 architecture
Modified:
lldb/trunk/test/expression_command/issue_11588/Test11588.py
Modified: lldb/trunk/test/expression_command/issue_11588/Test11588.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/issue_11588/Test11588.py?rev=233796&r1=233795&r2=233796&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/issue_11588/Test11588.py (original)
+++ lldb/trunk/test/expression_command/issue_11588/Test11588.py Wed Apr 1 05:45:44 2015
@@ -51,12 +51,11 @@ class Issue11581TestCase(TestBase):
"addr = ",
"load_address = "])
-
- target = lldb.debugger.GetSelectedTarget()
- process = target.GetProcess()
-# register r14 does not exist on 32-bit architectures, it is an x86_64 extension
-# let's skip this part of the test if we are in 32-bit mode
- if process.GetAddressByteSize() == 8:
+ # register r14 is an x86_64 extension let's skip this part of the test
+ # if we are on a different architecture
+ if self.getArchitecture() == 'x86_64':
+ target = lldb.debugger.GetSelectedTarget()
+ process = target.GetProcess()
frame = process.GetSelectedThread().GetSelectedFrame()
pointer = frame.FindVariable("r14")
addr = pointer.GetValueAsUnsigned(0)
More information about the lldb-commits
mailing list