# 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")
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)
# 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)
# 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)
# 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)
# 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)
# 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)
# 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)
# 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)
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)
# 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)
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
# 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)
# 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)
# 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)
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",
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)
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)