summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host
Commit message (Collapse)AuthorAgeFilesLines
...
* Bump to lldb-133.Jason Molenda2012-03-172-2/+2
| | | | | | Remove unused entitlements plist from debugserver. llvm-svn: 152973
* Updating Xcode project version numbers for lldb-132 and debugserver-182Sean Callanan2012-03-162-2/+2
| | | | llvm-svn: 152901
* <rdar://problem/8196933>Greg Clayton2012-03-151-15/+34
| | | | | | Use the metadata in the dSYM bundle Info.plist to remap source paths when they keys are available. llvm-svn: 152836
* <rdar://11033946>Han Ming Ong2012-03-155-197/+276
| | | | | | Made sure that the root XPC service validate the right before starting the service. The right is created and authenticated by clients (in this case, lldb) and transferred over for validiation. llvm-svn: 152802
* Updating Xcode project version numbers for lldb-131 and debugserver-181Sean Callanan2012-03-142-2/+2
| | | | llvm-svn: 152726
* bump to lldb-130Jason Molenda2012-03-142-2/+2
| | | | llvm-svn: 152689
* Bumped Xcode project versions for lldb-129 and debugserver-179.Greg Clayton2012-03-132-2/+2
| | | | llvm-svn: 152606
* version bump to lldb-128Jason Molenda2012-03-132-2/+2
| | | | llvm-svn: 152603
* Bump lldb version to lldb-127.Jason Molenda2012-03-102-2/+2
| | | | llvm-svn: 152465
* Bumping Xcode project versions for lldb-126 and debugserver-176.Greg Clayton2012-03-092-2/+2
| | | | llvm-svn: 152384
* Bump to lldb-125.Jason Molenda2012-03-082-2/+2
| | | | llvm-svn: 152353
* Bumping Xcode project version for lldb-124 and debugserver-175.Greg Clayton2012-03-082-2/+2
| | | | llvm-svn: 152294
* Use a new define, NO_XPC_SERVICES, to indicate that macosx/Host.mmJason Molenda2012-03-081-6/+6
| | | | | | | | | | | | | shouldn't compile any of the XPC support code. Update macosx/Host.mm to use that define. Add a LLDB_DISABLE_PYTHON ifdef block around a new function in Core/FormatManager.cpp. <rdar://problem/10942125> llvm-svn: 152293
* <rdar://10996650>Han Ming Ong2012-03-071-1/+1
| | | | | | Passed in the right number of parameters for CFDictionaryCreate llvm-svn: 152182
* Bumping Xcode project versions for lldb-123 and debugserver-174.Greg Clayton2012-03-062-2/+2
| | | | llvm-svn: 152103
* Bumped project Xcode project version for lldb-122 and debugserver-173.Greg Clayton2012-03-062-2/+2
| | | | llvm-svn: 152088
* Bumped Xcode project versions for lldb-121 and debugserver-172Greg Clayton2012-03-022-2/+2
| | | | llvm-svn: 151948
* Bumping Xcode project versions for lldb-120 and debugserver-171.Greg Clayton2012-03-022-2/+2
| | | | llvm-svn: 151924
* Bumped Xcode project version for lldb-119 and debugserver-170.Greg Clayton2012-03-012-2/+2
| | | | llvm-svn: 151836
* Fixed the install path for the XPC binaries. Added 3 aggregate targets:Greg Clayton2012-02-292-2/+2
| | | | | | | | | | "desktop" - build all binaries with XPC "desktop_no_xcp" - build all binaries with none of the XPC binaries "ios" - build all binaries with special iOS install settings. Bumped the Xcode project build version for lldb-118 and debugserver-169. llvm-svn: 151740
* <rdar://10950196>Han Ming Ong2012-02-291-4/+12
| | | | | | Returns true when there is any info retrieved. llvm-svn: 151678
* <rdar://problem/10942472>Han Ming Ong2012-02-281-40/+41
| | | | | | Allows the debugger to put a more sensible prompt when debugging as root. llvm-svn: 151605
* Added the POSIX-DYLD as a plug-in in the darwin build in the Xcode projectGreg Clayton2012-02-271-0/+6
| | | | | | | | | so that we don't break it with code changes. After doing this I was able to fix the POSIX-DYLD plug-in so that it builds after recent ModuleSpec changes. llvm-svn: 151536
* Made a ModuleSpec class in Module.h which can specify a module using one orGreg Clayton2012-02-262-16/+26
| | | | | | | | | | | | | | | | | | more of the local path, platform path, associated symbol file, UUID, arch, object name and object offset. This allows many of the calls that were GetSharedModule to reduce the number of arguments that were used in a call to these functions. It also allows a module to be created with a ModuleSpec which allows many things to be specified prior to any accessors being called on the Module class itself. I was running into problems when adding support for "target symbol add" where you can specify a stand alone debug info file after debugging has started where I needed to specify the associated symbol file path and if I waited until after construction, the wrong symbol file had already been located. By using the ModuleSpec it allows us to construct a module with as little or as much information as needed and not have to change the parameter list. llvm-svn: 151476
* <rdar://problem/9886712>Greg Clayton2012-02-252-0/+2
| | | | | | | | Added a dedicated platform for the iOS simulator. This helps us to find the correct files for a simulator binary before running and helps us select the right arch (i386 only) for files when we load them. llvm-svn: 151436
* Bumped Xcode project version to lldb-117 and debugserver-168.Greg Clayton2012-02-252-2/+2
| | | | llvm-svn: 151422
* <rdar://problem/3535148>Han Ming Ong2012-02-257-51/+617
| | | | | | Added ability to debug root processes on OS X. This uses XPC service that is available on Lion and above only. llvm-svn: 151419
* Remove a ton of implicit narrowing conversions for C++11 compatibility.Benjamin Kramer2012-02-211-7/+7
| | | | llvm-svn: 151071
* Full core file support has been added for mach-o core files.Greg Clayton2012-02-135-3/+57
| | | | | | | | | | | | | | | | Tracking modules down when you have a UUID and a path has been improved. DynamicLoaderDarwinKernel no longer parses mach-o load commands and it now uses the memory based modules now that we can load modules from memory. Added a target setting named "target.exec-search-paths" which can be used to supply a list of directories to use when trying to look for executables. This allows one or more directories to be used when searching for modules that may not exist in the SDK/PDK. The target automatically adds the directory for the main executable to this list so this should help us in tracking down shared libraries and other binaries. llvm-svn: 150426
* lldb should warn when dSYM does not match the binary.Johnny Chen2012-02-011-1/+13
| | | | | | | | | | | | | | | | | | | o Symbols.cpp: Emit a warning message when dSYM does not match the binary. o warnings/uuid: Added regression test case. o lldbtest.py: Modified to allow test case writer to demand that the build command does not begin with a clean first; required to make TestUUIDMismatchWanring.py work. rdar://problem/10515708 llvm-svn: 149465
* Fix typo.Johnny Chen2012-01-271-1/+1
| | | | llvm-svn: 149140
* Enable extra error checking for debug builds in our mutexes byGreg Clayton2012-01-271-0/+36
| | | | | | | | | | watching for errors from pthread_mutex_destroy () (usually "Resource busy" errors for when you have a mutex locked and try to destroy it), and pthread_mutex_lock, and pthread_mutex_unlock (usually for trying to lock an invalid mutex that might have possible already been freed). llvm-svn: 149135
* Big change in the way ObjectFile file contents are managed. We nowGreg Clayton2012-01-121-2/+2
| | | | | | | | | | mmap() the entire object file contents into memory with MAP_PRIVATE. We do this because object file contents can change on us and currently this helps alleviate this situation. It also make the code for accessing object file data much easier to manage and we don't end up opening the file, reading some data and closing the file over and over. llvm-svn: 148017
* <rdar://problem/10652336>Greg Clayton2012-01-061-4/+16
| | | | | | | | | | | Fixed a crasher when trying to load an expression prefix file: % touch /tmp/carp.txt % xcrun lldb (lldb) settings set target.expr-prefix /tmp/carp.txt Segmentation fault llvm-svn: 147646
* This patch combines common code from Linux and FreeBSD intoJohnny Chen2012-01-052-30/+134
| | | | | | | | | | a new POSIX platform. It also contains fixes for 64bit FreeBSD. The patch is based on changes by Mark Peek <mp@FreeBSD.org> and "K. Macy" <kmacy@freebsd.org> in their github repo located at https://github.com/fbsd/lldb. llvm-svn: 147609
* Added code in the Host layer that can report system log messagesGreg Clayton2012-01-052-0/+59
| | | | | | | | | | | | so that we don't have "fprintf (stderr, ...)" calls sprinkled everywhere. Changed all needed locations over to using this. For non-darwin, we log to stderr only. On darwin, we log to stderr _and_ to ASL (Apple System Log facility). This will allow GUI apps to have a place for these error and warning messages to go, and also allows the command line apps to log directly to the terminal. llvm-svn: 147596
* <rdar://problem/10507811>Greg Clayton2012-01-042-101/+158
| | | | | | | | | | Be better at detecting when DWARF changes and handle this more gracefully than asserting and exiting. Also fixed up a bunch of system calls that weren't properly checking for EINTR. llvm-svn: 147559
* Expose new read memory fucntion through python in SBProcess:Greg Clayton2011-12-151-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | size_t SBProcess::ReadCStringFromMemory (addr_t addr, void *buf, size_t size, lldb::SBError &error); uint64_t SBProcess::ReadUnsignedFromMemory (addr_t addr, uint32_t byte_size, lldb::SBError &error); lldb::addr_t SBProcess::ReadPointerFromMemory (addr_t addr, lldb::SBError &error); These ReadCStringFromMemory() has some SWIG type magic that makes it return the python string directly and the "buf" is not needed: error = SBError() max_cstr_len = 256 cstr = lldb.process.ReadCStringFromMemory (0x1000, max_cstr_len, error) if error.Success(): .... The other two functions behave as expteced. This will make it easier to get integer values from the inferior process that are correctly byte swapped. Also for pointers, the correct pointer byte size will be used. Also cleaned up a few printf style warnings for the 32 bit lldb build on darwin. llvm-svn: 146636
* Process IDs (lldb::pid_t) and thread IDs (lldb::tid_t) are now 64 bit. This Greg Clayton2011-12-011-2/+2
| | | | | | | | will allow us to represent a process/thread ID using a pointer for the OS plug-ins where they might want to represent the process or thread ID using the address of the process or thread structure. llvm-svn: 145644
* Now that I fixed the uninitialized callback problem, I can enable GCD pidGreg Clayton2011-11-172-17/+10
| | | | | | monitoring on darwin in the host layer. llvm-svn: 144918
* Fixed an issue with the pthread_setspecific() where we weren't NULL-ing outGreg Clayton2011-11-171-4/+9
| | | | | | | | | | | | the thread specific data and were destroying the thread specfic data more than once. Also added the ability to ask a lldb::StateType if it is stopped with an additional paramter of "must_exist" which means that the state must be a stopped state for a process that still exists. This means that eStateExited and eStateUnloaded will no longer return true if "must_exist" is set to true. llvm-svn: 144875
* Made the darwin host layer properly reap any child processes that it spawns.Greg Clayton2011-11-162-26/+134
| | | | | | | | | | | | | | | | | | | | | | After recent changes we weren't reaping child processes resulting in many zombie processes. This was fixed by adding more settings to the ProcessLaunchOptions class that allow clients to specify a callback function and baton to be notified when their process dies. If one is not supplied a default callback will be used that "does the right thing". Cleaned up a race condition in the ProcessGDBRemote class that would attempt to monitor when debugserver died. Added an extra boolean to the process monitor callbacks that indicate if a process exited or not. If your process exited with a zero exit status and no signal, both items could be zero. Modified the process monitor functions to not require a callback function in order to reap the child process. llvm-svn: 144780
* Added a new class to Process.h: ProcessAttachInfo. This class contains enoughGreg Clayton2011-11-151-53/+36
| | | | | | | | | | | | | | | | | | | | | info for us to attach by pid, or by name and will also allow us to eventually do a lot more powerful attaches. If you look at the options for the "platform process list" command, there are many options which we should be able to specify. This will allow us to do things like "attach to a process named 'tcsh' that has a parent process ID of 123", or "attach to a process named 'x' which has an effective user ID of 345". I finished up the --shell implementation so that it can be used without the --tty option in "process launch". The "--shell" option now can take an optional argument which is the path to the shell to use (or a partial name like "sh" which we will find using the current PATH environment variable). Modified the Process::Attach to use the new ProcessAttachInfo as the sole argument and centralized a lot of code that was in the "process attach" Execute function so that everyone can take advantage of the powerful new attach functionality. llvm-svn: 144615
* Added the ability to run a process in a shell on MacOSX currently when usingGreg Clayton2011-11-121-2/+2
| | | | | | | | | | | | the --tty option. So you can now get shell expansion and file redirection: (lldb) process launch --tty --shell -- *.jpg < in.txt > out.txt Again, the "--tty" is mandatory for now until we hook this up to other functions. The shell is also currently hard coded to "/bin/bash" and not the "SHELL" variable. "/bin/tcsh" was causing problems which I need to dig into. llvm-svn: 144443
* Made the Host::SetCrashDescription(const char *) function copy the incomingGreg Clayton2011-11-101-2/+14
| | | | | | | | | string to avoid possible later crashes. Modified the locations that do set the crash description to NULL out the string when they are done doing their tasks. llvm-svn: 144297
* Moved many of the "settings" that used to be in "target.process.*" to justGreg Clayton2011-11-081-15/+54
| | | | | | | | be in the target. All of the environment, args, stdin/out/err files, etc have all been moved. Also re-enabled the ability to launch a process in a separate terminal on MacOSX. llvm-svn: 144061
* Update a missed getHostTriple call, fixes non-__APPLE__ buildPeter Collingbourne2011-11-051-1/+1
| | | | llvm-svn: 143774
* Fix linux build after r143679.Benjamin Kramer2011-11-041-2/+3
| | | | llvm-svn: 143703
* Fixed a build issue on an older Xcode.Greg Clayton2011-11-041-1/+1
| | | | llvm-svn: 143679
* Fixed the Xcode project building of LLVM to be a bit more user friendly:Greg Clayton2011-11-043-1/+37
| | | | | | | | | | | | | | | | | | | - If you download and build the sources in the Xcode project, x86_64 builds by default using the "llvm.zip" checkpointed LLVM. - If you delete the "lldb/llvm.zip" and the "lldb/llvm" folder, and build the Xcode project will download the right LLVM sources and build them from scratch - If you have a "lldb/llvm" folder already that contains a "lldb/llvm/lib" directory, we will use the sources you have placed in the LLDB directory. Python can now be disabled for platforms that don't support it. Changed the way the libllvmclang.a files get used. They now all get built into arch specific directories and never get merged into universal binaries as this was causing issues where you would have to go and delete the file if you wanted to build an extra architecture slice. llvm-svn: 143678
OpenPOWER on IntegriCloud