summaryrefslogtreecommitdiffstats
path: root/lldb/source/Breakpoint/BreakpointResolverAddress.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-10-28 17:27:46 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-10-28 17:27:46 +0000
commitb7234e40140cffea4868a0952ef26f102100a3fd (patch)
tree1ef37bfb6bef10455dbd52d73e64b0e608dc1064 /lldb/source/Breakpoint/BreakpointResolverAddress.cpp
parent8e0073008a29615b1749af4128c49c07cf77c200 (diff)
downloadbcm5719-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/BreakpointResolverAddress.cpp')
-rw-r--r--lldb/source/Breakpoint/BreakpointResolverAddress.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Breakpoint/BreakpointResolverAddress.cpp b/lldb/source/Breakpoint/BreakpointResolverAddress.cpp
index 3e462d0c9fb..1949b1b01d0 100644
--- a/lldb/source/Breakpoint/BreakpointResolverAddress.cpp
+++ b/lldb/source/Breakpoint/BreakpointResolverAddress.cpp
@@ -31,7 +31,7 @@ BreakpointResolverAddress::BreakpointResolverAddress
Breakpoint *bkpt,
const Address &addr
) :
- BreakpointResolver (bkpt),
+ BreakpointResolver (bkpt, BreakpointResolver::AddressResolver),
m_addr (addr)
{
}
OpenPOWER on IntegriCloud