diff options
author | Jim Ingham <jingham@apple.com> | 2011-09-08 22:13:49 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2011-09-08 22:13:49 +0000 |
commit | b7f6b2fa3c4a5162223850b28e63b5193159ae6d (patch) | |
tree | f51b13eb1e25bdab179c6b60e4caaf5b104b6136 /lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py | |
parent | 7db8d697cf094ac586531d5500892e94a49ec537 (diff) | |
download | bcm5719-llvm-b7f6b2fa3c4a5162223850b28e63b5193159ae6d.tar.gz bcm5719-llvm-b7f6b2fa3c4a5162223850b28e63b5193159ae6d.zip |
Move the SourceManager from the Debugger to the Target. That way it can store the per-Target default Source File & Line.
Set the default Source File & line to main (if it can be found.) at startup. Selecting the current thread & or frame resets
the current source file & line, and "source list" as well as the breakpoint command "break set -l <NUM>" will use the
current source file.
llvm-svn: 139323
Diffstat (limited to 'lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py')
-rw-r--r-- | lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py b/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py index fc393892504..b96d20d37df 100644 --- a/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py +++ b/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py @@ -40,8 +40,9 @@ class BreakpointCommandTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - # Add two breakpoints on the same line. - self.expect("breakpoint set -f main.c -l %d" % self.line, + # Add two breakpoints on the same line. The first time we don't specify the file, + # since the default file is the one containing main: + self.expect("breakpoint set -l %d" % self.line, BREAKPOINT_CREATED, startstr = "Breakpoint created: 1: file ='main.c', line = %d, locations = 1" % self.line) |