diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-01-22 07:12:45 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-01-22 07:12:45 +0000 |
| commit | 6ed95945edea5f40fa5aedb3b049bb3d78dcce4e (patch) | |
| tree | 0d4d4585b6dc65f10d66542ae0d5aa8ebab33344 /lldb/tools/debugserver/source/RNBRemote.cpp | |
| parent | 9c399a29fd5b57c7a200d1fd014f39684c78a0e1 (diff) | |
| download | bcm5719-llvm-6ed95945edea5f40fa5aedb3b049bb3d78dcce4e.tar.gz bcm5719-llvm-6ed95945edea5f40fa5aedb3b049bb3d78dcce4e.zip | |
Sped up the shutdown time on MacOSX by quite a bit by making sure any
threads that we spawn let us know when they are going away and that we
don't timeout waiting for a message from threads that have gone away.
We also now don't expect the "k" packet (kill) to send a response. This
greatly speeds up debugger shutdown performance. The test suite now runs
quite a bit faster.
Added a fix to the variable display code that fixes the display of
base classes. We were assuming the virtual or normal base class offsets
were being given in bit sizes, but they were being given as character
sizes, so we needed to multiply the offset by 8. This wasn't affecting
the expression parser, but it was affecting the correct display of C++
class base classes and all of their children.
llvm-svn: 124024
Diffstat (limited to 'lldb/tools/debugserver/source/RNBRemote.cpp')
| -rw-r--r-- | lldb/tools/debugserver/source/RNBRemote.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lldb/tools/debugserver/source/RNBRemote.cpp b/lldb/tools/debugserver/source/RNBRemote.cpp index bb1951955d3..235f9a7e047 100644 --- a/lldb/tools/debugserver/source/RNBRemote.cpp +++ b/lldb/tools/debugserver/source/RNBRemote.cpp @@ -3123,11 +3123,10 @@ RNBRemote::HandlePacket_D (const char *p) rnb_err_t RNBRemote::HandlePacket_k (const char *p) { - if (!m_ctx.HasValidProcessID()) - return SendPacket ("E26"); - if (!DNBProcessKill (m_ctx.ProcessID())) - return SendPacket ("E27"); - return SendPacket ("OK"); + // No response to should be sent to the kill packet + if (m_ctx.HasValidProcessID()) + DNBProcessKill (m_ctx.ProcessID()); + return rnb_success; } rnb_err_t |

