hanchenye-llvm-project/lldb/source/Breakpoint
Greg Clayton f4b47e1579 Abtracted the old "lldb_private::Thread::StopInfo" into an abtract class.
This will allow debugger plug-ins to make any instance of "lldb_private::StopInfo"
that can completely describe any stop reason. It also provides a framework for
doing intelligent things with the stop info at important times in the lifetime
of the inferior. 

Examples include the signal stop info in StopInfoUnixSignal. It will check with
the process to see that the current action is for the signal. These actions
include wether to stop for the signal, wether the notify that the signal was
hit, and wether to pass the signal along to the inferior process. The 
StopInfoUnixSignal class overrides the "ShouldStop()" method of StopInfo and
this allows the stop info to determine if it should stop at the signal or 
continue the process. 


StopInfo subclasses must override the following functions:

    virtual lldb::StopReason
    GetStopReason () const = 0;

    virtual const char *
    GetDescription () = 0;


StopInfo subclasses can override the following functions:


    // If the subclass returns "false", the inferior will resume. The default
    // version of this function returns "true" which means the default stop
    // info will stop the process. The breakpoint subclass will check if
    // the breakpoint wants us to stop by calling any installed callback on
    // the breakpoint, and also checking if the breakpoint is for the current
    // thread. Signals will check if they should stop based off of the 
    // UnixSignal settings in the process.
    virtual bool
    ShouldStop (Event *event_ptr);

    // Sublasses can state if they want to notify the debugger when "ShouldStop"
    // returns false. This would be handy for breakpoints where you want to
    // log information and continue and is also used by the signal stop info
    // to notify that a signal was received (after it checks with the process
    // signal settings).
    virtual bool
    ShouldNotify (Event *event_ptr)
    {
        return false;
    }

    // Allow subclasses to do something intelligent right before we resume.
    // The signal class will figure out if the signal should be propagated
    // to the inferior process and pass that along to the debugger plug-ins.
    virtual void
    WillResume (lldb::StateType resume_state)
    {
        // By default, don't do anything
    }


The support the Mach exceptions was moved into the lldb/source/Plugins/Process/Utility
folder and now doesn't polute the lldb_private::Thread class with platform
specific code.

llvm-svn: 110184
2010-08-04 01:40:35 +00:00
..
Breakpoint.cpp Added needed breakpoint functionality to the public API that includes: 2010-07-23 23:33:17 +00:00
BreakpointID.cpp
BreakpointIDList.cpp Added needed breakpoint functionality to the public API that includes: 2010-07-23 23:33:17 +00:00
BreakpointList.cpp Added needed breakpoint functionality to the public API that includes: 2010-07-23 23:33:17 +00:00
BreakpointLocation.cpp Have Process::CreateBreakpointSite return a break_id_t instead of a user_id_t. 2010-07-17 00:56:13 +00:00
BreakpointLocationCollection.cpp Abtracted the old "lldb_private::Thread::StopInfo" into an abtract class. 2010-08-04 01:40:35 +00:00
BreakpointLocationList.cpp Added needed breakpoint functionality to the public API that includes: 2010-07-23 23:33:17 +00:00
BreakpointOptions.cpp Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
BreakpointResolver.cpp
BreakpointResolverAddress.cpp Added function name types to allow us to set breakpoints by name more 2010-06-28 21:30:43 +00:00
BreakpointResolverFileLine.cpp Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
BreakpointResolverName.cpp Added function name types to allow us to set breakpoints by name more 2010-06-28 21:30:43 +00:00
BreakpointSite.cpp Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
BreakpointSiteList.cpp Abtracted the old "lldb_private::Thread::StopInfo" into an abtract class. 2010-08-04 01:40:35 +00:00
Makefile Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
Stoppoint.cpp
StoppointCallbackContext.cpp Very large changes that were needed in order to allow multiple connections 2010-06-23 01:19:29 +00:00
StoppointLocation.cpp Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
WatchpointLocation.cpp Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00