summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/StreamFile.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Expose SBPlatform through the public API.Greg Clayton2013-11-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* <rdar://problem/13069948>Greg Clayton2013-01-251-1/+1
| | | | | | | | | | | | Major fixed to allow reading files that are over 4GB. The main problems were that the DataExtractor was using 32 bit offsets as a data cursor, and since we mmap all of our object files we could run into cases where if we had a very large core file that was over 4GB, we were running into the 4GB boundary. So I defined a new "lldb::offset_t" which should be used for all file offsets. After making this change, I enabled warnings for data loss and for enexpected implicit conversions temporarily and found a ton of things that I fixed. Any functions that take an index internally, should use "size_t" for any indexes and also should return "size_t" for any sizes of collections. llvm-svn: 173463
* Use Host::File in lldb_private::StreamFile and other places to cleanup hostGreg Clayton2011-02-091-89/+16
| | | | | | layer a bit more. llvm-svn: 125149
* A bit more cleanup with respect to using LLDB_CONFIG_XXX defines outside ofGreg Clayton2011-02-081-0/+2
| | | | | | | | | | | the lldb/source/Host/*.cpp and lldb/source/Host/*/*.cpp directories. The only offenders are the command completion and the StreamFile.cpp. I will soon modify StreamFile.cpp to use a lldb/source/Host/File.cpp so that all file open, close, read, write, seek, are abstracted into the host layer as well, then this will be gone. llvm-svn: 125082
* Cleaned up the dynamic library open/getsymbol/close code to use abstractedGreg Clayton2011-02-081-2/+2
| | | | | | | | | | | | | flags such that symbols can be searched for within a shared library if desired. Platforms that support the RTLD_FIRST flag can still take advantage of their quicker lookups, and other platforms can still get the same fucntionality with a little extra work. Also changed LLDB_CONFIG flags over to either being defined, or not being defined to stay in line with current open source practices and to prepare for using autoconf or cmake to configure LLDB builds. llvm-svn: 125064
* Fixup on setlinebuf() patch to make it work.Greg Clayton2011-02-051-4/+3
| | | | llvm-svn: 124944
* Configuration support for setlinebuf support from Kirk Beitz.Greg Clayton2011-02-051-0/+4
| | | | llvm-svn: 124943
* Add a method to StreamFile to line buffer the file. Use that in "log ↵Jim Ingham2011-01-241-0/+7
| | | | | | enable -f file" to line buffer the log output. llvm-svn: 124107
* We now have SBStream that mirrors the generic stream classes we Greg Clayton2010-09-171-5/+5
| | | | | | use inside lldb (lldb_private::StreamFile, and lldb_private::StreamString). llvm-svn: 114188
* Merged Eli Friedman's linux build changes where he added Makefile files thatGreg Clayton2010-07-091-10/+10
| | | | | | | enabled LLVM make style building and made this compile LLDB on Mac OS X. We can now iterate on this to make the build work on both linux and macosx. llvm-svn: 108009
* Add missing includes.Eli Friedman2010-06-091-0/+1
| | | | llvm-svn: 105712
* Initial checkin of lldb code from internal Apple repo.Chris Lattner2010-06-081-0/+132
llvm-svn: 105619
OpenPOWER on IntegriCloud