Revision tags: llvmorg-3.6.0-rc1 |
|
#
47718292 |
| 14-Jan-2015 |
Oleksiy Vyalov <ovyalov@google.com> |
Extend PipePosix with support for named pipes/timeout-based IO and integrate it with GDBRemoteCommunication / lldb-gdbserver - include reviews fixes.
http://reviews.llvm.org/D6954
llvm-svn: 225923
|
#
d5f8b6a6 |
| 13-Jan-2015 |
Oleksiy Vyalov <ovyalov@google.com> |
Extend PipePosix with support for named pipes/timeout-based IO and integrate it with GDBRemoteCommunication / lldb-gdbserver.
http://reviews.llvm.org/D6954
llvm-svn: 225849
|
Revision tags: llvmorg-3.5.1, llvmorg-3.5.1-rc2, llvmorg-3.5.1-rc1 |
|
#
9b69327b |
| 04-Dec-2014 |
Zachary Turner <zturner@google.com> |
Revert "Use timeout when reading debugserver's port from a named pipe."
This reverts commit 4a5ad2c077166cc3d6e7ab4cc6e3dcbbe922af86.
Windows doesn't support select() for pipe objects, and this als
Revert "Use timeout when reading debugserver's port from a named pipe."
This reverts commit 4a5ad2c077166cc3d6e7ab4cc6e3dcbbe922af86.
Windows doesn't support select() for pipe objects, and this also fails to compile on Windows. Reverting this until we can get it sorted out to keep the windows build working.
llvm-svn: 223392
show more ...
|
#
e8fb6937 |
| 03-Dec-2014 |
Oleksiy Vyalov <ovyalov@google.com> |
Use timeout when reading debugserver's port from a named pipe.
http://reviews.llvm.org/D6490
llvm-svn: 223251
|
#
629680e4 |
| 05-Nov-2014 |
Shawn Best <sbest@blueshiftinc.com> |
for Oleksiy Vyalov - Redirect stdin, stdout and stderr to /dev/null when launching LLGS process. Differential Revision: http://reviews.llvm.org/D6105
llvm-svn: 221324
|
#
118593a3 |
| 03-Nov-2014 |
Greg Clayton <gclayton@apple.com> |
The change previously committed as 220983 broke large binary memory reads. I kept the "idx - 1" fix from 220983, but reverted the while loop that was incorrectly added.
The details are: large packet
The change previously committed as 220983 broke large binary memory reads. I kept the "idx - 1" fix from 220983, but reverted the while loop that was incorrectly added.
The details are: large packets (like large memory reads (m packets) or large binary memory reads (x packet)) can get responses that come in across multiple read() calls. The while loop that was added meant that if only a partial packet came in (like only "$abc" coming for a response) GDBRemoteCommunication::CheckForPacket() was called, it would deadlock in the while loop because no more data is going to come in as this function needs to be called again with more data from another read. So the original fix will need to be corrected and resubmitted.
<rdar://problem/18853744>
llvm-svn: 221181
show more ...
|
#
396f80a1 |
| 31-Oct-2014 |
Shawn Best <sbest@blueshiftinc.com> |
commit on behalf of Oleksiy Vyalov Fix junk content handling within GDBRemoteCOmmunication::CheckForPacket 1. Avoid removing of an extra symbol from m_bytes. 2. iterate over m_bytes until useful co
commit on behalf of Oleksiy Vyalov Fix junk content handling within GDBRemoteCOmmunication::CheckForPacket 1. Avoid removing of an extra symbol from m_bytes. 2. iterate over m_bytes until useful content is found. Differential Revision: http://reviews.llvm.org/D6042
llvm-svn: 220983
show more ...
|
#
93a66fc1 |
| 06-Oct-2014 |
Zachary Turner <zturner@google.com> |
Move ConnectionFileDescriptor to platform-specific Host directory.
As part of getting ConnectionFileDescriptor working on Windows, there is going to be alot of platform specific work to be done. As
Move ConnectionFileDescriptor to platform-specific Host directory.
As part of getting ConnectionFileDescriptor working on Windows, there is going to be alot of platform specific work to be done. As a result, the implementation is moving into Host. This patch performs the code move and fixes up call-sites appropriately.
Reviewed by: Greg Clayton Differential Revision: http://reviews.llvm.org/D5548
llvm-svn: 219143
show more ...
|
#
acee96ae |
| 23-Sep-2014 |
Zachary Turner <zturner@google.com> |
Fix up the HostThread interface, making the interface simpler.
Reviewed by: Greg Clayton Differential Revision: http://reviews.llvm.org/D5417
llvm-svn: 218325
|
#
7e244325 |
| 18-Sep-2014 |
Greg Clayton <gclayton@apple.com> |
Add better logging for the "$vFile:pwrite:" packet so we can show binary data instead of nothing or unprintable characters. This can easily be extended for other packets that have binary data.
llvm-
Add better logging for the "$vFile:pwrite:" packet so we can show binary data instead of nothing or unprintable characters. This can easily be extended for other packets that have binary data.
llvm-svn: 218000
show more ...
|
#
39de3110 |
| 09-Sep-2014 |
Zachary Turner <zturner@google.com> |
Create a HostThread abstraction.
This patch moves creates a thread abstraction that represents a thread running inside the LLDB process. This is a replacement for otherwise using lldb::thread_t, an
Create a HostThread abstraction.
This patch moves creates a thread abstraction that represents a thread running inside the LLDB process. This is a replacement for otherwise using lldb::thread_t, and provides a platform agnostic interface to managing these threads.
Differential Revision: http://reviews.llvm.org/D5198
Reviewed by: Jim Ingham
llvm-svn: 217460
show more ...
|
Revision tags: llvmorg-3.5.0 |
|
#
34ba4269 |
| 29-Aug-2014 |
Todd Fiala <todd.fiala@gmail.com> |
Add arbitrary command line flags to llgs/debugserver startup for local debugging.
This patch accepts environment variables of the form: LLDB_DEBUGSERVER_EXTRA_ARG_n
where n starts with 1, and may c
Add arbitrary command line flags to llgs/debugserver startup for local debugging.
This patch accepts environment variables of the form: LLDB_DEBUGSERVER_EXTRA_ARG_n
where n starts with 1, and may continue nearly indefinitely (up through std::numeric_limits<uint32_t>::max()).
The code loops around, starting with 1, until it doesn't find one of the environment variables. For each one it does find defined, it appends the environment variable's contents to the end of the debugserver/llgs startup command line issued when the stub is started for local debugging.
I am using this to add arbitrary startup commands to the llgs command line for turning on additional logging. For example:
export LLDB_DEBUGSERVER_EXTRA_ARG_1="-c" export LLDB_DEBUGSERVER_EXTRA_ARG_2="log enable -f /tmp/llgs_packets.log gdb-remote packets" export LLDB_DEBUGSERVER_EXTRA_ARG_3="-c" export LLDB_DEBUGSERVER_EXTRA_ARG_4="log enable -f /tmp/llgs_process.log lldb process"
llvm-svn: 216745
show more ...
|
Revision tags: llvmorg-3.5.0-rc4 |
|
#
c25146b6 |
| 21-Aug-2014 |
Zachary Turner <zturner@google.com> |
Fixes a few more places where we were manually setting the filename.
llvm-svn: 216247
|
#
6fd86771 |
| 21-Aug-2014 |
Jason Molenda <jmolenda@apple.com> |
Two small fixes to get Mac native + debugserver working after the HostInfo et al changes from Zachary. Changes suggested by Zachary - fixes the problems I was seeing.
llvm-svn: 216243
|
#
42ff0ad8 |
| 21-Aug-2014 |
Zachary Turner <zturner@google.com> |
Move Host::GetLLDBPath to HostInfo.
This continues the effort to get Host code moved over to HostInfo, and removes many more instances of preprocessor defines along the way.
llvm-svn: 216195
|
Revision tags: llvmorg-3.5.0-rc3 |
|
#
c00cf4a0 |
| 15-Aug-2014 |
Zachary Turner <zturner@google.com> |
Move FileSystem functions out of Host and into their own classes.
More specifically, this change can be summarized as follows: 1) Makes an lldbHostPosix library which contains code common to all
Move FileSystem functions out of Host and into their own classes.
More specifically, this change can be summarized as follows: 1) Makes an lldbHostPosix library which contains code common to all posix platforms. 2) Creates Host/FileSystem.h which defines a common FileSystem interface. 3) Implements FileSystem.h in Host/windows and Host/posix. 4) Creates Host/FileCache.h, implemented in Host/common, which defines a class useful for storing handles to open files needed by the debugger.
Differential Revision: http://reviews.llvm.org/D4889
llvm-svn: 215775
show more ...
|
Revision tags: llvmorg-3.5.0-rc2 |
|
#
98688922 |
| 06-Aug-2014 |
Zachary Turner <zturner@google.com> |
Creates a socket host object.
This patch moves the logic of many common socket operations into its own class lldb_private::Socket. It then modifies the ConnectionFileDescriptor class, and a few use
Creates a socket host object.
This patch moves the logic of many common socket operations into its own class lldb_private::Socket. It then modifies the ConnectionFileDescriptor class, and a few users of that class, to use this new Socket class instead of hardcoding socket logic directly.
Finally, this patch creates a common interface called IOObject for any objects that support reading and writing, so that endpoints such as sockets and files can be treated the same.
Differential Revision: http://reviews.llvm.org/D4641
Reviewed by: Todd Fiala, Greg Clayton
llvm-svn: 214984
show more ...
|
#
015d818b |
| 22-Jul-2014 |
Todd Fiala <todd.fiala@gmail.com> |
Enable lldb-platform exe support for Linux.
This change enables lldb-platform for Linux. In addition, it does the following:
* fixes Host::GetLLDBPath() to work on Linux/*BSD for ePathTypeSupportE
Enable lldb-platform exe support for Linux.
This change enables lldb-platform for Linux. In addition, it does the following:
* fixes Host::GetLLDBPath() to work on Linux/*BSD for ePathTypeSupportExecutableDir-relative paths.
* adds more logging and comments around lldb-platform startup and remote lldb-platform usage.
* refactors lldb-platform remote-* support for Darwin and Linux into PlatformPOSIX. This, in theory, is the bulk of what is needed for *BSD to make remote connections to lldb-platform as well (although I haven't tested that yet). FreeBSD can make similar changes to their Platform* as was made here for PlatformLinux to pick up the rest of the bits.
* teaches GDBRemoteCommunication to use lldb-gdbserver for non-Apple hosts.
llvm-svn: 213707
show more ...
|
Revision tags: llvmorg-3.5.0-rc1 |
|
#
06f09b58 |
| 20-Jun-2014 |
Greg Clayton <gclayton@apple.com> |
Fixed the "log enable gdb-remote packets" to support dumping the binary memory read packet ('x') by printing out the binary data correctly using only printable characters and removing the 0x7d escape
Fixed the "log enable gdb-remote packets" to support dumping the binary memory read packet ('x') by printing out the binary data correctly using only printable characters and removing the 0x7d escapes so the memory is readable in the packet output.
llvm-svn: 211400
show more ...
|
Revision tags: llvmorg-3.4.2, llvmorg-3.4.2-rc1 |
|
#
f0066ad0 |
| 02-May-2014 |
Greg Clayton <gclayton@apple.com> |
Fixed CTRL+C related issues: - CTRL+C wasn't clearing the command in lldb - CTRL+C doesn't work in python macros in lldb - Ctrl+C no longer interrupts the running process that you attach to
<rdar://
Fixed CTRL+C related issues: - CTRL+C wasn't clearing the command in lldb - CTRL+C doesn't work in python macros in lldb - Ctrl+C no longer interrupts the running process that you attach to
<rdar://problem/15949205> <rdar://problem/16778652> <rdar://problem/16774411>
llvm-svn: 207816
show more ...
|
Revision tags: llvmorg-3.4.1, llvmorg-3.4.1-rc2, llvmorg-3.4.1-rc1 |
|
#
6eff1019 |
| 12-Mar-2014 |
Hafiz Abid Qadeer <hafiz_abid@mentor.com> |
Replace some _MSC_VER with _WIN32. This allows to use some code for mingw which was previously only used for MSVC.
llvm-svn: 203651
|
#
3121fde4 |
| 28-Feb-2014 |
Greg Clayton <gclayton@apple.com> |
Be sure to propagate the error back out SBTarget::Attach() when we fail to launch debugserver as root.
<rdar://problem/15669788>
llvm-svn: 202536
|
#
1681092f |
| 27-Feb-2014 |
Greg Clayton <gclayton@apple.com> |
Remove an assertion that was being hit due to slow DNS name lookups on MacOSX for "localhost".
Changed all "localhost" to "127.0.0.1" to prevent potentially long name lookups.
<rdar://problem/1615
Remove an assertion that was being hit due to slow DNS name lookups on MacOSX for "localhost".
Changed all "localhost" to "127.0.0.1" to prevent potentially long name lookups.
<rdar://problem/16154630>
llvm-svn: 202424
show more ...
|
#
3c5d3339 |
| 24-Feb-2014 |
Steve Pucci <spucci@google.com> |
Fix handling of gdbserver binary packets with escape characters.
We were not properly handling the escape character 0x7d ('}') in responses from gdbserver which used the binary protocol.
llvm-svn:
Fix handling of gdbserver binary packets with escape characters.
We were not properly handling the escape character 0x7d ('}') in responses from gdbserver which used the binary protocol.
llvm-svn: 202062
show more ...
|
#
3c6774a1 |
| 08-Feb-2014 |
Jean-Daniel Dupas <devlists@shadowlab.org> |
hostname is guarantee to never be null in this branch.
llvm-svn: 201027
|