- Feb 08, 2014
-
-
Sylvestre Ledru authored
llvm-svn: 201024
-
Sylvestre Ledru authored
llvm-svn: 201023
-
- Feb 05, 2014
-
-
Greg Clayton authored
- empty lines in init files would repeat previous command and cause errors to be displayed - all options to control showing the command, its output, if it should stop on error or continue, weren't being obeyed. llvm-svn: 200860
-
- Jan 31, 2014
-
-
Deepak Panickal authored
llvm-svn: 200565
-
- Jan 30, 2014
-
-
Greg Clayton authored
Pressing ^D in a non-empty input terminates LLDB. This was due to the fact that we stack more than one editline instance on top of each other and we still expect CTRL+D to exit the editline instance, but it should only do so when the line is empty. Otherwise it should (and does) delete the character at the cursor. <rdar://problem/15944703> llvm-svn: 200489
-
- Jan 28, 2014
-
-
Greg Clayton authored
The many many benefits include: 1 - Input/Output/Error streams are now handled as real streams not a push style input 2 - auto completion in python embedded interpreter 3 - multi-line input for "script" and "expression" commands now allow you to edit previous/next lines using up and down arrow keys and this makes multi-line input actually a viable thing to use 4 - it is now possible to use curses to drive LLDB (please try the "gui" command) We will need to deal with and fix any buildbot failures and tests and arise now that input/output and error are correctly hooked up in all cases. llvm-svn: 200263
-
- Jan 23, 2014
-
-
Todd Fiala authored
This reverts Host.cpp LaunchProcess spawn behavior on FreeBSD to be like Linux (and unlike OS X) with regards to how default signal handlers and setup on the spawned process. FreeBSD does not reset default signal handlers on the spawned process after this change. llvm-svn: 199908
-
Todd Fiala authored
This fixes a bug under Linux where spawning a process via Host::LaunchProcess was disabling all blockable signals on the launched process. This caused strange behavior when attempting to kill the lldb-gdbserver process, as the child generally would not die unless killed with a non-blockable signal (e.g. 'kill -9'). This change moves several functions out of macosx/Host.mm into common/Host.cpp. In addition, two functions that needed to work across common/Host.cpp and macosx/Host.mm were moved into the Host.h header file. llvm-svn: 199856
-
- Jan 18, 2014
-
-
Todd Fiala authored
This change does the following: * Adds Makefile build scripts to debug server. * Fixes a few small mistakes in the other makefiles. * Modifies generate-vers.pl slightly to also work for debugserver. * Changes the OS X, non-framework python search path from libdir to libdir/python2.X/site-packages where it is installed by the build system (also where it is installed on other operating systems). Patch by Keno Fischer. llvm-svn: 199543
-
Todd Fiala authored
ArchSpec now contains an optional distribution_id, with getters and setters. Host::GetArchitecture () sets it on non-Apple platforms using Host::GetDistributionId (). The distribution_id is ignored during ArchSpec comparisons. The gdb remote qHostInfo message transmits it, if set, via the distribution_id={id-value} key/value pair. Updated gdb remote docs to reflect this change. As before, GetDistributionId () returns nothing on non-Linux platforms at this time. On Linux, it is returned only if the lsb_platform command is installed (in /bin or /usr/bin), and only if the distributor id key is returned by 'lsb_platform -i'. This id is lowercased, and whitespace is replaced with underscores. llvm-svn: 199539
-
- Jan 17, 2014
-
-
Todd Fiala authored
The Linux distribution will be added to the ArchSpec class in an upcoming change. This change only undoes the change to the triple. The distribution retrieval logic and enabling of lldb-gdbserver for linux x86_64 builds is still in place. llvm-svn: 199520
-
Todd Fiala authored
This change does the following: * enables building lldb-gdbserver on linux_x86-64 platforms. Note - it builds but it has several run-time issues where many gdb remote protocol features are not properly implemented yet. I'm working on these one at a time. * lldb-gdbserver: does not enable the eLaunchFlagDebug launch flag on Linux. Currently the POSIX launch routine will assert if that flag is passed in, presumably because that launch mode is not yet available. This prevents lldb-gdbserver from asserting the moment it launches the debuggee process. * Adds ConstString& Host::GetDistributionId () This method is defined to return an empty result on all platforms except for Linux. On Linux, it makes one attempt to execute 'lsb_release -i' (both /usr/bin/lsb_release, where it appears on ubuntu, and /bin/lsb_release, where it appears on fedora if the redhat-lsb package is installed). If lsb_release is not found in either of those locations, or if 'lsb_release -i' does not return the first line starting with "Distributor ID:\t", then the distribution id is empty. The method will lower-case the id and replace whitespace with underscores. * Modify Host::GetArchitecture () so that linux replaces an unknown vendor portion with the results of GetDistributionId () if that is non-empty. This shows up now in qHostInfo remote packet responses and on the lldb host side. Tested with ubuntu and fedora (the latter both with the default of not having lsb_release installed, and with having lsb_release installed via the redhat-lsb package). Examples of triples on Linux after this change: # x86_64 Unbuntu 12.04 LTS: x86_64-ubuntu-linux-gnu # x86_64 Fedora 20 Desktop with redhat-lsb package installed x86_64-fedora-linux-gnu # x86_64 Fedora 20 Desktop without redhat-lsb-core installed # (i.e. no /bin/lsb_release available) # same as before the change x86_64--linux-gnu Note I intend to have Android respond with: {arch}-android-linux when I get to implementing Android lldb-gdbserver support. llvm-svn: 199510
-
- Jan 13, 2014
-
-
Deepak Panickal authored
llvm-svn: 199111
-
- Dec 13, 2013
-
-
Sylvestre Ledru authored
Fixes an issue where a signum => name mapping function has multiple case statements that define to the same integral value on my Linux (Ubuntu 12.04, x86_64). It's for SIGIO and SIGPOLL. In the case that they are both defined the same. Patch by Todd Fiala (but typos are mine) llvm-svn: 197221
-
- Dec 12, 2013
-
-
Jean-Daniel Dupas authored
CC: lldb-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2394 llvm-svn: 197173
-
- Dec 09, 2013
- Dec 06, 2013
-
-
Greg Clayton authored
llvm-svn: 196586
-
Jean-Daniel Dupas authored
llvm-svn: 196577
-
- Dec 05, 2013
-
-
Greg Clayton authored
Modified local spawning in debugserver processes to use a new --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
-
- Dec 04, 2013
-
-
Greg Clayton authored
Added a new directory type for the "bool Host::GetLLDBPath (PathType 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
-
- Nov 26, 2013
-
-
Colin Riley authored
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
-
- Nov 25, 2013
-
-
Ed Maste authored
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
-
- Nov 23, 2013
-
-
Greg Clayton authored
llvm-svn: 195542
-
Greg Clayton authored
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
-
- Nov 22, 2013
-
-
Greg Clayton authored
Fix ePathTypeSupportExecutableDir for shallow bundle Darwin targets and add "host" logging for the different paths. llvm-svn: 195484
-
Greg Clayton authored
llvm-svn: 195482
-
Greg Clayton authored
llvm-svn: 195481
-
Jim Ingham authored
the code that should have set thread names on Mac OS X. <rdar://problem/15517264> llvm-svn: 195403
-
- Nov 21, 2013
-
-
Jason Molenda authored
llvm-svn: 195305
-
- Nov 20, 2013
-
-
Greg Clayton authored
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
-
- Oct 22, 2013
-
-
Deepak Panickal authored
llvm-svn: 193159
-
- Oct 04, 2013
-
-
Sean Callanan authored
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
-
- Sep 28, 2013
-
-
Sylvestre Ledru authored
llvm-svn: 191619
-
- Sep 25, 2013
-
-
Joerg Sonnenberger authored
At least on NetBSD, none of the already included headers pulls it in. llvm-svn: 191386
-
Joerg Sonnenberger authored
otherwise -Werror builds may fail. llvm-svn: 191385
-
Joerg Sonnenberger authored
llvm-svn: 191367
-
- Sep 21, 2013
-
-
Virgile Bello authored
llvm-svn: 191116
-
Virgile Bello authored
llvm-svn: 191115
-
- Sep 10, 2013
-
-
Jim Ingham authored
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
-