diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-10-28 17:27:46 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-10-28 17:27:46 +0000 |
commit | b7234e40140cffea4868a0952ef26f102100a3fd (patch) | |
tree | 1ef37bfb6bef10455dbd52d73e64b0e608dc1064 /lldb/source/Breakpoint/BreakpointResolverFileLine.cpp | |
parent | 8e0073008a29615b1749af4128c49c07cf77c200 (diff) | |
download | bcm5719-llvm-b7234e40140cffea4868a0952ef26f102100a3fd.tar.gz bcm5719-llvm-b7234e40140cffea4868a0952ef26f102100a3fd.zip |
Check in an initial implementation of the "breakpoint clear" command, whose purpose is clear
the breakpoint associated with the (filename, line_number) combo when an arrow is pointing to
a source position using Emacs Grand Unified Debugger library to interact with lldb.
The current implmentation is insufficient in that it only asks the breakpoint whether it is
associated with a breakpoint resolver with FileLine type and whether it matches the (filename, line_number)
combo. There are other breakpoint resolver types whose breakpoint locations can potentially
match the (filename, line_number) combo.
The BreakpointResolver, BreakpointResolverName, BreakpointResolverAddress, and BreakpointResolverFileLine
classes have extra static classof methods to support LLVM style type inquiry through isa, cast, and dyn_cast.
The Breakpoint class has an API method bool GetMatchingFileLine(...) which is invoked from CommandObjectBreak.cpp
to implement the "breakpoint clear" command.
llvm-svn: 117562
Diffstat (limited to 'lldb/source/Breakpoint/BreakpointResolverFileLine.cpp')
-rw-r--r-- | lldb/source/Breakpoint/BreakpointResolverFileLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Breakpoint/BreakpointResolverFileLine.cpp b/lldb/source/Breakpoint/BreakpointResolverFileLine.cpp index cb620f9a853..187822f8144 100644 --- a/lldb/source/Breakpoint/BreakpointResolverFileLine.cpp +++ b/lldb/source/Breakpoint/BreakpointResolverFileLine.cpp @@ -31,7 +31,7 @@ BreakpointResolverFileLine::BreakpointResolverFileLine uint32_t line_no, bool check_inlines ) : - BreakpointResolver (bkpt), + BreakpointResolver (bkpt, BreakpointResolver::FileLineResolver), m_file_spec (file_spec), m_line_number (line_no), m_inlines (check_inlines) |