summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/driver/batch_mode/TestBatchMode.py
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2016-01-09 00:08:16 +0000
committerJim Ingham <jingham@apple.com>2016-01-09 00:08:16 +0000
commit58a305bf155c885199a6e1edfe6481494fe8cd5d (patch)
tree1b73d4c698e4d1b4f3a4e54cd03dcbed27ec1929 /lldb/packages/Python/lldbsuite/test/driver/batch_mode/TestBatchMode.py
parent7831c3590c27e6a801b729956d8cf9ba9283aac5 (diff)
downloadbcm5719-llvm-58a305bf155c885199a6e1edfe6481494fe8cd5d.tar.gz
bcm5719-llvm-58a305bf155c885199a6e1edfe6481494fe8cd5d.zip
Fiddling with Pavel's fix for getting the breakpoint right when there's debug info for sleep.
I prefer to use "-p" over using line_number and then setting by line because it's makes it possible to see what the breakpoint is at the site where you make the breakpoint. So I switched it back to -p but specified the source file as well, which is an "all within lldb" way of doing what Pavel's fix did. llvm-svn: 257235
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/driver/batch_mode/TestBatchMode.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/driver/batch_mode/TestBatchMode.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/driver/batch_mode/TestBatchMode.py b/lldb/packages/Python/lldbsuite/test/driver/batch_mode/TestBatchMode.py
index 305d3c7471e..0a9edd2755c 100644
--- a/lldb/packages/Python/lldbsuite/test/driver/batch_mode/TestBatchMode.py
+++ b/lldb/packages/Python/lldbsuite/test/driver/batch_mode/TestBatchMode.py
@@ -19,7 +19,6 @@ class DriverBatchModeTest (TestBase):
TestBase.setUp(self)
# Our simple source filename.
self.source = 'main.c'
- self.line = line_number(self.source, 'Stop here to unset keep_waiting')
self.victim = None
def expect_string (self, string):
@@ -142,7 +141,7 @@ class DriverBatchModeTest (TestBase):
self.victim.expect("Waiting")
- run_commands = ' -b -o "process attach -p %d" -o "breakpoint set --file %s --line %d -N keep_waiting" -o "continue" -o "break delete keep_waiting" -o "expr keep_waiting = 0" -o "continue" ' % (victim_pid, self.source, self.line)
+ run_commands = ' -b -o "process attach -p %d" -o "breakpoint set --file %s -p \'Stop here to unset keep_waiting\' -N keep_waiting" -o "continue" -o "break delete keep_waiting" -o "expr keep_waiting = 0" -o "continue" ' % (victim_pid, self.source)
self.child = pexpect.spawn('%s %s %s %s' % (lldbtest_config.lldbExec, self.lldbOption, run_commands, exe))
child = self.child
OpenPOWER on IntegriCloud