summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/process
diff options
context:
space:
mode:
authorAaron Smith <aaron.smith@microsoft.com>2018-02-08 23:10:29 +0000
committerAaron Smith <aaron.smith@microsoft.com>2018-02-08 23:10:29 +0000
commit30d7309f6d529f06c5a7674654adb15f20deaa19 (patch)
treebf083af18e650cc45f4c81610aec4b5d000adb62 /lldb/packages/Python/lldbsuite/test/python_api/process
parent87e1c4c8de6d30509dfeac4bbc2ac95748bd7461 (diff)
downloadbcm5719-llvm-30d7309f6d529f06c5a7674654adb15f20deaa19.tar.gz
bcm5719-llvm-30d7309f6d529f06c5a7674654adb15f20deaa19.zip
Only throw -fPIC when building a shared library
Summary: Update makefiles to specify -fPIC in Makefile.rules and only throw -fPIC when building a shared library. This change is necessary to allow building the lldb tests on Windows where -fPIC is not a valid option. Update a few places to Python 3.x syntax Reviewers: zturner, lldb-commits Reviewed By: zturner Subscribers: stella.stamenova, labath, llvm-commits Differential Revision: https://reviews.llvm.org/D42994 llvm-svn: 324671
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process')
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/process/read-mem-cstring/TestReadMemCString.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/process/read-mem-cstring/TestReadMemCString.py b/lldb/packages/Python/lldbsuite/test/python_api/process/read-mem-cstring/TestReadMemCString.py
index 7abcf81a069..b03cebce48c 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/process/read-mem-cstring/TestReadMemCString.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/process/read-mem-cstring/TestReadMemCString.py
@@ -17,19 +17,19 @@ class TestReadMemCString(TestBase):
def test_read_memory_c_string(self):
"""Test corner case behavior of SBProcess::ReadCStringFromMemory"""
self.build()
- self.dbg.SetAsync(False)
+ self.dbg.SetAsync(False)
self.main_source = "main.c"
self.main_source_path = os.path.join(self.getSourceDir(),
self.main_source)
- self.main_source_spec = lldb.SBFileSpec(self.main_source_path)
- self.exe = self.getBuildArtifact("read-mem-cstring")
+ self.main_source_spec = lldb.SBFileSpec(self.main_source_path)
+ self.exe = self.getBuildArtifact("read-mem-cstring")
(target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
self, 'breakpoint here', self.main_source_spec, None, self.exe)
- frame = thread.GetFrameAtIndex(0)
-
+ frame = thread.GetFrameAtIndex(0)
+
err = lldb.SBError()
empty_str_addr = frame.FindVariable("empty_string").GetValueAsUnsigned(err)
OpenPOWER on IntegriCloud