[Lldb-commits] [lldb] r115712 - in /lldb/trunk/test/class_types: TestClassTypes.py TestClassTypesDisassembly.py
Johnny Chen
johnny.chen at apple.com
Tue Oct 5 16:15:41 PDT 2010
Author: johnny
Date: Tue Oct 5 18:15:41 2010
New Revision: 115712
URL: http://llvm.org/viewvc/llvm-project?rev=115712&view=rev
Log:
Modified to accomodate gcc, llvm-gcc, and clang as compilers.
Add a comment for 'breakpoint set -M C' not working correctly for clang.
Modified:
lldb/trunk/test/class_types/TestClassTypes.py
lldb/trunk/test/class_types/TestClassTypesDisassembly.py
Modified: lldb/trunk/test/class_types/TestClassTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/class_types/TestClassTypes.py?rev=115712&r1=115711&r2=115712&view=diff
==============================================================================
--- lldb/trunk/test/class_types/TestClassTypes.py (original)
+++ lldb/trunk/test/class_types/TestClassTypes.py Tue Oct 5 18:15:41 2010
@@ -52,7 +52,7 @@
# Break on the ctor function of class C.
self.expect("breakpoint set -f main.cpp -l 93", BREAKPOINT_CREATED,
- startstr = "Breakpoint created: 1: file ='main.cpp', line = 93, locations = 1")
+ startstr = "Breakpoint created: 1: file ='main.cpp', line = 93")
self.runCmd("run", RUN_SUCCEEDED)
@@ -67,7 +67,8 @@
# We should be stopped on the ctor function of class C.
self.expect("frame variable this", VARIABLES_DISPLAYED_CORRECTLY,
- substrs = ['C *const) this = '])
+ substrs = ['C *',
+ ' this = '])
def breakpoint_creation_by_filespec_python(self):
"""Use Python APIs to create a breakpoint by (filespec, line)."""
@@ -106,6 +107,9 @@
exe = os.path.join(os.getcwd(), "a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
+ # rdar://problem/8516141
+ # Is this a case of clang (116.1) generating bad debug info?
+ #
# Break on the ctor function of class C.
self.expect("breakpoint set -M C", BREAKPOINT_CREATED,
startstr = "Breakpoint created: 1: name = 'C', locations = 1")
Modified: lldb/trunk/test/class_types/TestClassTypesDisassembly.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/class_types/TestClassTypesDisassembly.py?rev=115712&r1=115711&r2=115712&view=diff
==============================================================================
--- lldb/trunk/test/class_types/TestClassTypesDisassembly.py (original)
+++ lldb/trunk/test/class_types/TestClassTypesDisassembly.py Tue Oct 5 18:15:41 2010
@@ -40,7 +40,7 @@
# Break on the ctor function of class C.
self.expect("breakpoint set -f main.cpp -l 93", BREAKPOINT_CREATED,
- startstr = "Breakpoint created: 1: file ='main.cpp', line = 93, locations = 1")
+ startstr = "Breakpoint created: 1: file ='main.cpp', line = 93")
self.runCmd("run", RUN_SUCCEEDED)
More information about the lldb-commits
mailing list