llvm-project/lldb
Greg Clayton 3a29bdbe9b Added a boolean to the pure virtual lldb_private::Process::CanDebug(...)
method so process plug-ins that are requested by name can answer yes when
asked if they can debug a target that might not have any file in the target.

Modified the ConnectionFileDescriptor to have both a read and a write file
descriptor. This allows us to support UDP, and eventually will allow us to
support pipes. The ConnectionFileDescriptor class also has a file descriptor
type for each of the read and write file decriptors so we can use the correct
read/recv/recvfrom call when reading, or write/send/sendto for writing.

Finished up an initial implementation of UDP where you can use the "udp://"
URL to specify a host and port to connect to:

(lldb) process connect --plugin kdp-remote udp://host:41139

This will cause a ConnectionFileDescriptor to be created that can send UDP
packets to "host:41139", and it will also bind to a localhost port that can
be given out to receive the connectionless UDP reply. 

Added the ability to get to the IPv4/IPv6 socket port number from a 
ConnectionFileDescriptor instance if either file descriptor is a socket.

The ProcessKDP can now successfully connect to a remote kernel and detach
using the above "processs connect" command!!! So far we have the following
packets working:
    KDP_CONNECT
    KDP_DISCONNECT
    KDP_HOSTINFO
    KDP_VERSION
    KDP_REATTACH

Now that the packets are working, adding new packets will go very quickly.

llvm-svn: 135363
2011-07-17 20:36:25 +00:00
..
docs just a test for commit access - ignore this 2011-06-29 04:18:11 +00:00
examples Add usage docstring to SBValue.h, and minor update of docstrings for SBValueList.h. 2011-07-15 00:27:47 +00:00
include Added a boolean to the pure virtual lldb_private::Process::CanDebug(...) 2011-07-17 20:36:25 +00:00
lib Link in the MCJIT. Fixes makefile build. 2011-05-24 01:54:03 +00:00
lldb.xcodeproj Completed more work on the KDP darwin kernel debugging Process plug-in. 2011-07-16 03:19:08 +00:00
lldb.xcworkspace Adding a Xcode workspace for lldb. 2011-01-27 20:15:39 +00:00
resources Bumped Xcode project version for lldb-68. 2011-07-06 21:01:19 +00:00
scripts Have SWIG generate autodoc strings with parameter types for all SB API objects by default. 2011-07-16 21:27:36 +00:00
source Added a boolean to the pure virtual lldb_private::Process::CanDebug(...) 2011-07-17 20:36:25 +00:00
test Some descriptive text for the Python script feature: 2011-07-16 01:22:04 +00:00
tools Added support for dynamic detection of AVX, and 2011-07-16 00:49:19 +00:00
utils Update usage comment. 2011-06-14 22:23:54 +00:00
www Python summary strings: 2011-07-15 02:26:42 +00:00
INSTALL.txt You'll need to be running Mac OS X to get lldb to build right now. 2010-06-09 07:29:26 +00:00
LICENSE.TXT test commit 2010-06-09 03:55:24 +00:00
Makefile Enable the "make test" rule in the root Makefile 2011-06-20 19:06:57 +00:00