[Lldb-commits] [lldb] r164436 - in /lldb/trunk/test: functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py lang/objc/foundation/TestFoundationDisassembly.py lang/objc/foundation/TestObjCMethods.py lang/objc/foundation/TestObjCMethods2.py
Jim Ingham
jingham at apple.com
Fri Sep 21 17:14:47 PDT 2012
Author: jingham
Date: Fri Sep 21 19:14:47 2012
New Revision: 164436
URL: http://llvm.org/viewvc/llvm-project?rev=164436&view=rev
Log:
Missed a few places where I didn't delete the obsolete (commented out) version of the breakpoint creation.
Modified:
lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py
lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py
lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py
lldb/trunk/test/lang/objc/foundation/TestFoundationDisassembly.py
lldb/trunk/test/lang/objc/foundation/TestObjCMethods.py
lldb/trunk/test/lang/objc/foundation/TestObjCMethods2.py
Modified: lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py?rev=164436&r1=164435&r2=164436&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py Fri Sep 21 19:14:47 2012
@@ -47,20 +47,8 @@
# Add three breakpoints on the same line. The first time we don't specify the file,
# since the default file is the one containing main:
lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1, loc_exact=True)
-# self.expect("breakpoint set -l %d" % self.line,
-# BREAKPOINT_CREATED,
-# startstr = "Breakpoint created: 1: file ='main.c', line = %d, locations = 1" %
-# self.line)
lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True)
-# self.expect("breakpoint set -f main.c -l %d" % self.line,
-# BREAKPOINT_CREATED,
-# startstr = "Breakpoint created: 2: file ='main.c', line = %d, locations = 1" %
-# self.line)
lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True)
-# self.expect("breakpoint set -f main.c -l %d" % self.line,
-# BREAKPOINT_CREATED,
-# startstr = "Breakpoint created: 3: file ='main.c', line = %d, locations = 1" %
-# self.line)
# Now add callbacks for the breakpoints just created.
self.runCmd("breakpoint command add -s command -o 'frame variable -T -s' 1")
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py?rev=164436&r1=164435&r2=164436&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py Fri Sep 21 19:14:47 2012
@@ -36,10 +36,6 @@
self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True)
-# self.expect("breakpoint set -f main.cpp -l %d" % self.line,
-# BREAKPOINT_CREATED,
-# startstr = "Breakpoint created: 1: file ='main.cpp', line = %d, locations = 1" %
-# self.line)
self.runCmd("run", RUN_SUCCEEDED)
Modified: lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py?rev=164436&r1=164435&r2=164436&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py Fri Sep 21 19:14:47 2012
@@ -247,9 +247,6 @@
# Add a breakpoint to set a watchpoint when stopped on the breakpoint.
lldbutil.run_break_set_by_file_and_line (self, "main.m")
-# self.expect("breakpoint set -l %d" % self.line, BREAKPOINT_CREATED,
-# startstr = "Breakpoint created: 1: file ='%s', line = %d, locations = 1" %
-# (self.source, self.line))#
# Run the program.
self.runCmd("run", RUN_SUCCEEDED)
@@ -305,9 +302,6 @@
# Add a breakpoint to set a watchpoint when stopped on the breakpoint.
lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-# self.expect("breakpoint set -l %d" % self.line, BREAKPOINT_CREATED,
-# startstr = "Breakpoint created: 1: file ='%s', line = %d, locations = 1" %
-# (self.source, self.line))
# Run the program.
self.runCmd("run", RUN_SUCCEEDED)
@@ -348,9 +342,6 @@
# Add a breakpoint to set a watchpoint when stopped on the breakpoint.
lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-# self.expect("breakpoint set -l %d" % self.line, BREAKPOINT_CREATED,
-# startstr = "Breakpoint created: 1: file ='%s', line = %d, locations = 1" %
-# (self.source, self.line))
# Run the program.
self.runCmd("run", RUN_SUCCEEDED)
@@ -395,9 +386,6 @@
# Add a breakpoint to set a watchpoint when stopped on the breakpoint.
lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-# self.expect("breakpoint set -l %d" % self.line, BREAKPOINT_CREATED,
-# startstr = "Breakpoint created: 1: file ='%s', line = %d, locations = 1" %
-# (self.source, self.line))#
# Run the program.
self.runCmd("run", RUN_SUCCEEDED)
@@ -452,13 +440,7 @@
# Add a breakpoint to set a watchpoint when stopped on the breakpoint.
lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-# self.expect("breakpoint set -l %d" % self.line, BREAKPOINT_CREATED,
-# startstr = "Breakpoint created: 1: file ='%s', line = %d, locations = 1" %
-# (self.source, self.line))
lldbutil.run_break_set_by_file_and_line (self, None, self.line2, num_expected_locations=1)
-# self.expect("breakpoint set -l %d" % self.line2, BREAKPOINT_CREATED,
-# startstr = "Breakpoint created: 2: file ='%s', line = %d, locations = 1" %
-# (self.source, self.line2))
# Run the program.
self.runCmd("run", RUN_SUCCEEDED)
Modified: lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py?rev=164436&r1=164435&r2=164436&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py Fri Sep 21 19:14:47 2012
@@ -62,9 +62,6 @@
# Add a breakpoint to set a watchpoint when stopped on the breakpoint.
lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-# self.expect("breakpoint set -l %d" % self.line, BREAKPOINT_CREATED,
-# startstr = "Breakpoint created: 1: file ='%s', line = %d, locations = 1" %
-# (self.source, self.line))
# Run the program.
self.runCmd("run", RUN_SUCCEEDED)
@@ -114,9 +111,6 @@
# Add a breakpoint to set a watchpoint when stopped on the breakpoint.
lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-# self.expect("breakpoint set -l %d" % self.line, BREAKPOINT_CREATED,
-# startstr = "Breakpoint created: 1: file ='%s', line = %d, locations = 1" %
-# (self.source, self.line))#
# Run the program.
self.runCmd("run", RUN_SUCCEEDED)
Modified: lldb/trunk/test/lang/objc/foundation/TestFoundationDisassembly.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/TestFoundationDisassembly.py?rev=164436&r1=164435&r2=164436&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/TestFoundationDisassembly.py (original)
+++ lldb/trunk/test/lang/objc/foundation/TestFoundationDisassembly.py Fri Sep 21 19:14:47 2012
@@ -76,24 +76,16 @@
symbol_name = "+[NSString stringWithFormat:]"
break_results = lldbutil.run_break_set_command (self, "_regexp-break %s"%(symbol_name))
lldbutil.check_breakpoint_result (self, break_results, symbol_name=symbol_name, num_locations=1)
-# self.expect("_regexp-break +[NSString stringWithFormat:]", BREAKPOINT_CREATED,
-# substrs = ["Breakpoint created: 1: name = '+[NSString stringWithFormat:]', locations = 1"])
# Stop at -[MyString initWithNSString:].
lldbutil.run_break_set_by_symbol (self, '-[MyString initWithNSString:]', num_expected_locations=1, sym_exact=True)
-# self.expect("breakpoint set -n '-[MyString initWithNSString:]'", BREAKPOINT_CREATED,
-# startstr = "Breakpoint created: 2: name = '-[MyString initWithNSString:]', locations = 1")
# Stop at the "description" selector.
lldbutil.run_break_set_by_selector (self, 'description', num_expected_locations=1)
-# self.expect("breakpoint set -S description", BREAKPOINT_CREATED,
-# startstr = "Breakpoint created: 3: name = 'description', locations = 1")
# Stop at -[NSAutoreleasePool release].
break_results = lldbutil.run_break_set_command (self, "_regexp-break -[NSAutoreleasePool release]")
lldbutil.check_breakpoint_result (self, break_results, symbol_name='-[NSAutoreleasePool release]', num_locations=1)
-# self.expect("_regexp-break -[NSAutoreleasePool release]", BREAKPOINT_CREATED,
-# substrs = ["Breakpoint created: 4: name = '-[NSAutoreleasePool release]', locations = 1"])
self.runCmd("run", RUN_SUCCEEDED)
Modified: lldb/trunk/test/lang/objc/foundation/TestObjCMethods.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/TestObjCMethods.py?rev=164436&r1=164435&r2=164436&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/TestObjCMethods.py (original)
+++ lldb/trunk/test/lang/objc/foundation/TestObjCMethods.py Fri Sep 21 19:14:47 2012
@@ -64,24 +64,16 @@
# Stop at +[NSString stringWithFormat:].
break_results = lldbutil.run_break_set_command(self, "_regexp-break +[NSString stringWithFormat:]")
lldbutil.check_breakpoint_result (self, break_results, symbol_name='+[NSString stringWithFormat:]', num_locations=1)
-# self.expect("_regexp-break +[NSString stringWithFormat:]", BREAKPOINT_CREATED,
-# substrs = ["Breakpoint created: 1: name = '+[NSString stringWithFormat:]', locations = 1"])
# Stop at -[MyString initWithNSString:].
lldbutil.run_break_set_by_symbol (self, '-[MyString initWithNSString:]', num_expected_locations=1, sym_exact=True)
-# self.expect("breakpoint set -n '-[MyString initWithNSString:]'", BREAKPOINT_CREATED,
-# startstr = "Breakpoint created: 2: name = '-[MyString initWithNSString:]', locations = 1")
# Stop at the "description" selector.
lldbutil.run_break_set_by_selector (self, 'description', num_expected_locations=1)
-# self.expect("breakpoint set -S description", BREAKPOINT_CREATED,
-# startstr = "Breakpoint created: 3: name = 'description', locations = 1")
# Stop at -[NSAutoreleasePool release].
break_results = lldbutil.run_break_set_command(self, "_regexp-break -[NSAutoreleasePool release]")
lldbutil.check_breakpoint_result (self, break_results, symbol_name='-[NSAutoreleasePool release]', num_locations=1)
-# self.expect("_regexp-break -[NSAutoreleasePool release]", BREAKPOINT_CREATED,
-# substrs = ["Breakpoint created: 4: name = '-[NSAutoreleasePool release]', locations = 1"])
self.runCmd("run", RUN_SUCCEEDED)
@@ -204,10 +196,7 @@
self.runCmd("breakpoint delete 1")
lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True)
-# self.expect("breakpoint set -f main.m -l %d" % self.line,
-# BREAKPOINT_CREATED,
-# startstr = "Breakpoint created: 2: file ='main.m', line = %d, locations = 1" %
-# self.line)
+
self.runCmd("process continue")
# rdar://problem/8542091
Modified: lldb/trunk/test/lang/objc/foundation/TestObjCMethods2.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/TestObjCMethods2.py?rev=164436&r1=164435&r2=164436&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/TestObjCMethods2.py (original)
+++ lldb/trunk/test/lang/objc/foundation/TestObjCMethods2.py Fri Sep 21 19:14:47 2012
@@ -106,9 +106,6 @@
# Create a bunch of breakpoints.
for line in self.lines:
lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True)
-# self.expect("breakpoint set -f main.m -l %d" % line, BREAKPOINT_CREATED,
-# substrs = ["Breakpoint created:",
-# "file ='main.m', line = %d, locations = 1" % line])
self.runCmd("run", RUN_SUCCEEDED)
@@ -146,9 +143,6 @@
# Break inside Test_NSArray:
line = self.lines[1]
lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True)
-# self.expect("breakpoint set -f main.m -l %d" % line, BREAKPOINT_CREATED,
-# substrs = ["Breakpoint created:",
-# "file ='main.m', line = %d, locations = 1" % line])#
self.runCmd("run", RUN_SUCCEEDED)
@@ -176,9 +170,6 @@
# Break inside Test_NSString:
line = self.lines[2]
lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True)
-# self.expect("breakpoint set -f main.m -l %d" % line, BREAKPOINT_CREATED,
-# substrs = ["Breakpoint created:",
-# "file ='main.m', line = %d, locations = 1" % line])#
self.runCmd("run", RUN_SUCCEEDED)
@@ -206,10 +197,7 @@
line = self.lines[4]
lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True)
-# self.expect("breakpoint set -f main.m -l %d" % line, BREAKPOINT_CREATED,
-# substrs = ["Breakpoint created:",
-# "file ='main.m', line = %d, locations = 1" % line])
-#
+
self.runCmd("run", RUN_SUCCEEDED)
self.expect("expression *my",
@@ -224,9 +212,6 @@
line = self.lines[4]
lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True)
-# self.expect("breakpoint set -f main.m -l %d" % line, BREAKPOINT_CREATED,
-# substrs = ["Breakpoint created:",
-# "file ='main.m', line = %d, locations = 1" % line])#
self.runCmd("run", RUN_SUCCEEDED)
@@ -242,9 +227,6 @@
line = self.lines[4]
lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True)
-# self.expect("breakpoint set -f main.m -l %d" % line, BREAKPOINT_CREATED,
-# substrs = ["Breakpoint created:",
-# "file ='main.m', line = %d, locations = 1" % line])#
self.runCmd("run", RUN_SUCCEEDED)
More information about the lldb-commits
mailing list