| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 197147
|
|
|
|
| |
llvm-svn: 196790
|
|
|
|
|
|
| |
Use the same LaunchProcessPosixSpawn as on FreeBSD and Linux.
llvm-svn: 196742
|
|
|
|
|
|
| |
systems.
llvm-svn: 196586
|
|
|
|
| |
llvm-svn: 196577
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
--reverse-connect option so that debugserver actually connects back to LLDB instead of LLDB connecting to debugserver.
This gets rid of our hacky "get_random_port()" which would grab a random port and tell debugserver to open that port. Now LLDB creates, binds, listens and accepts a connection by binding to port zero and sending the correctly bound port down as the host:port to connect back to.
Fixed the "ConnectionFileDescriptor" to be able to correctly listen for connections from a specified host, localhost, or any host. Prior to this fix "listen://" only accepted the following format:
listen://<port>
But now it can accept:
listen://<port> // Listen for connection from localhost on port <port>
listen://<host>:<port> // Listen for connection from <host> and <port>
listen://*:<port> // Listen for connection from any host on port <port>
llvm-svn: 196547
|
|
|
|
|
|
| |
when using posix_spawn to spawn processes to close all file handles.
llvm-svn: 196404
|
|
|
|
|
|
|
|
|
|
| |
path_type, FileSpec &file_spec)" function: ePathTypeLLDBTempSystemDir
This will get the temporary directory on the current system.
Removed a call to tmpnam() and replaced it with a call to mktemp() using a template that will be in the temp directory.
llvm-svn: 196397
|
|
|
|
|
|
| |
Added _WIN32 guards to new platform features. Using correct SetErrorStringWithFormat within Host when LLDB_DISABLE_POSIX is defined. Also fixed an if defined block.
llvm-svn: 195766
|
|
|
|
|
|
|
|
|
|
|
|
| |
For a file /bin/ls with a .gnu_debuglink entry of "ls.debug" the path
should be /usr/lib/debug/bin/ls.debug, not /usr/lib/debug/bin/ls.
ref: https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html
llvm.org/pr17903
http://llvm-reviews.chandlerc.com/D2169
llvm-svn: 195681
|
|
|
|
| |
llvm-svn: 195542
|
|
|
|
|
|
|
|
|
|
|
|
| |
Improved the detection of a valid GDB server where we actually can connect to a socket, but then it doesn't read or write anything (which happens with some USB mux software).
Host::MakeDirectory() now can make as many intermediate directories as needed.
The testsuite now has very initial support for remote test suite running. When running on a remote platform, the setUp function for the test will make a new directory and select it as the working directory on the remote host.
Added a common function that can be used to create the short option string for getopt_long calls.
llvm-svn: 195541
|
|
|
|
|
|
| |
"host" logging for the different paths.
llvm-svn: 195484
|
|
|
|
| |
llvm-svn: 195482
|
|
|
|
| |
llvm-svn: 195481
|
|
|
|
|
|
|
|
|
|
| |
us to skip
the code that should have set thread names on Mac OS X.
<rdar://problem/15517264>
llvm-svn: 195403
|
|
|
|
| |
llvm-svn: 195305
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Example code:
remote_platform = lldb.SBPlatform("remote-macosx");
remote_platform.SetWorkingDirectory("/private/tmp")
debugger.SetSelectedPlatform(remote_platform)
connect_options = lldb.SBPlatformConnectOptions("connect://localhost:1111");
err = remote_platform.ConnectRemote(connect_options)
if err.Success():
print >> result, 'Connected to remote platform:'
print >> result, 'hostname: %s' % (remote_platform.GetHostname())
src = lldb.SBFileSpec("/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework", False)
dst = lldb.SBFileSpec()
# copy src to platform working directory since "dst" is empty
err = remote_platform.Install(src, dst);
if err.Success():
print >> result, '%s installed successfully' % (src)
else:
print >> result, 'error: failed to install "%s": %s' % (src, err)
Implemented many calls needed in lldb-platform to be able to install a directory that contains symlinks, file and directories.
The remote lldb-platform can now launch GDB servers on the remote system so that remote debugging can be spawned through the remote platform when connected to a remote platform.
The API in SBPlatform is subject to change and will be getting many new functions.
llvm-svn: 195273
|
|
|
|
| |
llvm-svn: 193159
|
|
|
|
|
|
| |
case of exec).
llvm-svn: 192318
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to be explicit, to prevent horrid things like
std::string a = ConstString("foo")
from taking the path ConstString -> bool -> char
-> std::string.
This fixes, among other things, ClangFunction.
<rdar://problem/15137989>
llvm-svn: 191934
|
|
|
|
| |
llvm-svn: 191619
|
|
|
|
|
|
|
|
| |
kernels that do not report the update version
- should resolve the current failure on the Linux clang buildbot
llvm-svn: 191568
|
|
|
|
|
|
| |
At least on NetBSD, none of the already included headers pulls it in.
llvm-svn: 191386
|
|
|
|
|
|
| |
otherwise -Werror builds may fail.
llvm-svn: 191385
|
|
|
|
| |
llvm-svn: 191367
|
|
|
|
|
|
| |
When logged in as root, just launch debugserver regularly.
llvm-svn: 191230
|
|
|
|
| |
llvm-svn: 191116
|
|
|
|
| |
llvm-svn: 191115
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
that /bin/sh re-exec's itself to /bin/bash, so it needs one more resume when you
are using it as the shell than /bin/bash did or you will stop at the start of your
program, rather than running it.
So I added a Platform API to get the number of resumes needed when launching with
a particular shell, and set the right values for Mac OS X.
<rdar://problem/14935282>
llvm-svn: 190381
|
|
|
|
|
|
| |
getopt code inside its own folder.
llvm-svn: 190238
|
|
|
|
| |
llvm-svn: 190063
|
|
|
|
| |
llvm-svn: 190057
|
|
|
|
| |
llvm-svn: 189953
|
|
|
|
| |
llvm-svn: 189934
|
|
|
|
|
|
| |
A FreeBSD implementation was added in r189295.
llvm-svn: 189598
|
|
|
|
|
|
|
| |
- factorize unistd.h and stdbool.h in lldb-types.h.
- Add <functional> and <string> where required.
llvm-svn: 189477
|
|
|
|
|
|
|
| |
- move LaunchProcessPosixSpawn() and Host::LaunchProcess() from freebsd host plugin to common (linux/freebsd section)
- modify MonitorChildProcessThreadFunction to use pid_t from sys/types.h to avoid Linux/FreeBSD/Mac warnings when calling waitpid()
llvm-svn: 189404
|
|
|
|
|
|
| |
- removed needless defines that snuck in as part of the lldb-platform-work merge
llvm-svn: 189392
|
|
|
|
|
|
|
|
|
| |
- mode_t is defined in <sys/types.h>
- reorganized S_* user rights into win32.h
- Use Host::Kill instead of kill
- Currently #ifdef functions using pread/pwrite.
llvm-svn: 189364
|
|
|
|
|
|
| |
Thanks for catching this Ed!
llvm-svn: 189361
|
|
|
|
| |
llvm-svn: 189317
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
This merge brings in the improved 'platform' command that knows how to
interface with remote machines; that is, query OS/kernel information, push
and pull files, run shell commands, etc... and implementation for the new
communication packets that back that interface, at least on Darwin based
operating systems via the POSIXPlatform class. Linux support is coming soon.
Verified the test suite runs cleanly on Linux (x86_64), build OK on Mac OS
X Mountain Lion.
Additional improvements (not in the source SVN branch 'lldb-platform-work'):
- cmake build scripts for lldb-platform
- cleanup test suite
- documentation stub for qPlatform_RunCommand
- use log class instead of printf() directly
- reverted work-in-progress-looking changes from test/types/TestAbstract.py that work towards running the test suite remotely.
- add new logging category 'platform'
Reviewers: Matt Kopec, Greg Clayton
Review: http://llvm-reviews.chandlerc.com/D1493
llvm-svn: 189295
|
|
|
|
|
|
| |
portability.
llvm-svn: 189107
|
|
|
|
|
|
|
|
|
| |
- use SmallString instead
- original implementation resulted in incorrect behaviour of lldb -P
Fix by Kal Conley!
llvm-svn: 187818
|
|
|
|
|
|
|
| |
This fixes threadname logging (--thread-name)
Add "-t" to TestLogging.py script to enable threadsafe and disable threadname logging
llvm-svn: 187599
|
|
|
|
|
| |
CR: mkopec
llvm-svn: 187542
|
|
|
|
|
|
|
| |
Also move the logic to shorten thread names from linux/Host.cpp to a new
SetShortThreadName as both FreeBSD and Linux need the functionality.
llvm-svn: 187149
|
|
|
|
|
|
| |
caused by a CFStringRef going out of scope.
llvm-svn: 186912
|
|
|
|
|
|
|
|
| |
Linux ePathTypeLLDBSystemPlugins and ePathTypeLLDBUserPlugins implement Linux Host::Backtrace and Host::GetEnvironment add .gnu_debugdata comment
Differential Revision: http://llvm-reviews.chandlerc.com/D1159
llvm-svn: 186475
|