[Lldb-commits] [lldb] r116363 - /lldb/trunk/test/stl/TestStdCXXDisassembly.py
Johnny Chen
johnny.chen at apple.com
Tue Oct 12 16:08:18 PDT 2010
Author: johnny
Date: Tue Oct 12 18:08:18 2010
New Revision: 116363
URL: http://llvm.org/viewvc/llvm-project?rev=116363&view=rev
Log:
Avoid using hardcoded line number to break on. Use the line_number() utility
function to get the line number to break on during setUp().
Modified:
lldb/trunk/test/stl/TestStdCXXDisassembly.py
Modified: lldb/trunk/test/stl/TestStdCXXDisassembly.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/stl/TestStdCXXDisassembly.py?rev=116363&r1=116362&r2=116363&view=diff
==============================================================================
--- lldb/trunk/test/stl/TestStdCXXDisassembly.py (original)
+++ lldb/trunk/test/stl/TestStdCXXDisassembly.py Tue Oct 12 18:08:18 2010
@@ -11,6 +11,11 @@
mydir = "stl"
+ def setUp(self):
+ super(StdCXXDisassembleTestCase, self).setUp()
+ # Find the line number to break inside main().
+ self.line = line_number('main.cpp', '// Set break point at this line.')
+
# rdar://problem/8504895
# Crash while doing 'disassemble -n "-[NSNumber descriptionWithLocale:]"
@unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
@@ -20,9 +25,15 @@
exe = os.path.join(os.getcwd(), "a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
+ # rdar://problem/8543077
+ # test/stl: clang built binaries results in the breakpoint locations = 3,
+ # is this a problem with clang generated debug info?
+ #
# Break on line 13 of main.cpp.
- self.expect("breakpoint set -f main.cpp -l 13", BREAKPOINT_CREATED,
- startstr = "Breakpoint created: 1: file ='main.cpp', line = 13, locations = 1")
+ self.expect("breakpoint set -f main.cpp -l %d" % self.line,
+ BREAKPOINT_CREATED,
+ startstr = "Breakpoint created: 1: file ='main.cpp', line = %d" %
+ self.line)
self.runCmd("run", RUN_SUCCEEDED)
More information about the lldb-commits
mailing list