llvm-project/lldb/source
Ilia K 6af632f93c Fix a missing "*stopped" notification in LLDB-MI after "process launch -s" in case of remote-macosx
Summary:
This patch fixes *stopped notification for remote target when started with eLaunchFlagStopAtEntry (for example, using "process launch -s").

See explanation below:
```
Target::Launch (ProcessLaunchInfo &launch_info, Stream *stream)
{
...
if (state != eStateConnected && platform_sp && platform_sp->CanDebugProcess ())
{
   ...
}
else
{
   ...
   if (m_process_sp)
      error = m_process_sp->Launch (launch_info);
}

if (error.Success())
{
    if (launch_info.GetFlags().Test(eLaunchFlagStopAtEntry) == false)
    {
        ....
    }
    -- missing event if eLaunchFlagStopAtEntry is set --
    m_process_sp->RestoreProcessEvents ();
}
...
return error
```

Also this patch contains tests and you can check how it works.

Reviewers: zturner, clayborg, abidh

Reviewed By: clayborg

Subscribers: clayborg, abidh, zturner, lldb-commits

Differential Revision: http://reviews.llvm.org/D7273

llvm-svn: 228417
2015-02-06 18:15:05 +00:00
..
API Fix evaluation commands (MI) 2015-02-06 18:10:30 +00:00
Breakpoint Make sure that when a breakpoint is hit but its condition is not met, 2015-01-15 01:41:04 +00:00
Commands Add additional DWARF 5 language constants. 2015-02-06 06:46:52 +00:00
Core Avoid leaking log file descriptors into the inferior process. 2015-02-05 16:44:42 +00:00
DataFormatters Get rid of Debugger::FormatPrompt() and replace it with the new FormatEntity class. 2015-02-04 22:00:53 +00:00
Expression Get rid of Debugger::FormatPrompt() and replace it with the new FormatEntity class. 2015-02-04 22:00:53 +00:00
Host Fix TestThreadSpecificBreakpoint with LLGS 2015-02-06 10:42:33 +00:00
Interpreter Unbreak the cmake build by adding some new files 2015-02-04 22:46:17 +00:00
Plugins Fix TestProcesslaunch regression caused by D7372 2015-02-06 11:32:52 +00:00
Symbol Fixed bugs in the multi-threaded access in HostInfoBase. Prior to this fix, static bool variables were used but this is not sufficient. We now use std::call_once in all places where the previous static bool code was used to try to implement thread safety. 2015-02-03 02:05:44 +00:00
Target Fix a missing "*stopped" notification in LLDB-MI after "process launch -s" in case of remote-macosx 2015-02-06 18:15:05 +00:00
Utility UriParser - fixed potential buffer overrun 2015-01-15 20:57:01 +00:00
CMakeLists.txt Extend SBPlatform with capability to launch/terminate a process remotely. Integrate this change into test framework in order to spawn processes on a remote target. 2015-02-04 23:19:15 +00:00
Makefile Use PARALLEL_DIRS instead of DIRS in the Makefile 2014-10-14 06:26:33 +00:00
lldb-log.cpp Make sure to #include <atomic> when using std::atomic. 2014-09-19 20:12:32 +00:00
lldb.cpp Add a method to disable the Windows crash / assert dialogs. 2014-12-12 18:10:52 +00:00