summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-02-04 02:27:34 +0000
committerGreg Clayton <gclayton@apple.com>2012-02-04 02:27:34 +0000
commit81e871ed761101fb065a097b5b9351e179964d1a (patch)
tree8c23b46dff2d3d1953620bcebd77d445a2793358 /lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py
parentd0ba3793aab037c831a0cefeafda8398591f5497 (diff)
downloadbcm5719-llvm-81e871ed761101fb065a097b5b9351e179964d1a.tar.gz
bcm5719-llvm-81e871ed761101fb065a097b5b9351e179964d1a.zip
Convert all python objects in our API to use overload the __str__ method
instead of the __repr__. __repr__ is a function that should return an expression that can be used to recreate an python object and we were using it to just return a human readable string. Fixed a crasher when using the new implementation of SBValue::Cast(SBType). Thread hardened lldb::SBValue and lldb::SBWatchpoint and did other general improvements to the API. Fixed a crasher in lldb::SBValue::GetChildMemberWithName() where we didn't correctly handle not having a target. llvm-svn: 149743
Diffstat (limited to 'lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py')
-rw-r--r--lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py b/lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py
index 64aba7f3dde..80a224e5307 100644
--- a/lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py
+++ b/lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py
@@ -43,7 +43,7 @@ class StdCXXDisassembleTestCase(TestBase):
process = target.GetProcess()
# The process should be in a 'stopped' state.
- self.expect(repr(process), STOPPED_DUE_TO_BREAKPOINT, exe=False,
+ self.expect(str(process), STOPPED_DUE_TO_BREAKPOINT, exe=False,
substrs = ["a.out",
"stopped"])
@@ -61,7 +61,7 @@ class StdCXXDisassembleTestCase(TestBase):
module = target.GetModuleAtIndex(i)
fs = module.GetFileSpec()
if (fs.GetFilename().startswith("libstdc++")):
- lib_stdcxx = repr(fs)
+ lib_stdcxx = str(fs)
break
# At this point, lib_stdcxx is the full path to the stdc++ library and
@@ -70,7 +70,7 @@ class StdCXXDisassembleTestCase(TestBase):
self.expect(fs.GetFilename(), "Libraray StdC++ is located", exe=False,
substrs = ["libstdc++"])
- self.runCmd("image dump symtab %s" % repr(fs))
+ self.runCmd("image dump symtab %s" % str(fs))
raw_output = self.res.GetOutput()
# Now, look for every 'Code' symbol and feed its load address into the
# command: 'disassemble -s load_address -e end_address', where the
OpenPOWER on IntegriCloud