summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/macosx
Commit message (Collapse)AuthorAgeFilesLines
...
* Symbols::LocateMacOSXFilesUsingDebugSymbols() - perform tildeJason Molenda2012-10-051-1/+1
| | | | | | expansion on the dSYM path we find if it starts with a tilde. llvm-svn: 165299
* Change DynamicLoaderDarwinKernel::OSKextLoadedKextSummary to useJason Molenda2012-10-021-3/+3
| | | | | | | | | | | | | | | | | the Symbols::LocateExecutableObjectFile method to locate kexts and kernels instead of copying them out of the memory of the remote system. This is the fix for <rdar://problem/12416384>. Fix a variable shadowing problem in Symbols::LocateMacOSXFilesUsingDebugSymbols which caused the symbol rich executable binaries to not be found even if they were listed in the dSYM Info.plist. Change Symbols::DownloadObjectAndSymbolFile to ignore dsymForUUID's negative cache - this is typically being called by the user and we should try even if there's a incorrect entry in the negative cache. llvm-svn: 165061
* Wrapped up the work I am going to do for now for the "add-dsym" or "target ↵Greg Clayton2012-09-271-42/+123
| | | | | | | | | | | | | | | | | | | | symfile add" command. We can now do: Specify a path to a debug symbols file: (lldb) add-dsym <path-to-dsym> Go and download the dSYM file for the "libunc.dylib" module in your target: (lldb) add-dsym --shlib libunc.dylib Go and download the dSYM given a UUID: (lldb) add-dsym --uuid <UUID> Go and download the dSYM file for the current frame: (lldb) add-dsym --frame llvm-svn: 164806
* Added the ability to download a symboled executable and symbol file given a ↵Greg Clayton2012-09-272-3/+117
| | | | | | UUID. llvm-svn: 164753
* Bump to lldb-168, debugserver-193.Jason Molenda2012-09-202-2/+2
| | | | llvm-svn: 164291
* Stop using the "%z" size_t modifier and cast all size_t values to uint64_t. ↵Greg Clayton2012-09-181-1/+1
| | | | | | Some platforms don't support this modification. llvm-svn: 164148
* <rdar://problem/11374963>Greg Clayton2012-09-141-3/+13
| | | | | | When attaching on ARM hosted debuggers we were incorrectly setting the triple to "arm-apple-ios". This was happening because in the post attach code, we would lookup the process info through the platform, and if successful, we would get the architecture of the process. This code uses sysctl() calls, but we can only get the CPU type, not the subtype, so we would get ARM for CPU type and nothing for the cpu subtype, so this would map to "arm-apple-ios". I fixed the code to get the cpu subtype from "hw.cpusubtype" which is what we really want for ARM, and not the architecture is already correct. "add-dsym" then works like a charm. I also improved the command output when the architecture changes to show the entire triple instead of just the arch name. llvm-svn: 163868
* <rdar://problem/11374963>Greg Clayton2012-09-121-7/+5
| | | | | | Partial fix for the above radar where we now resolve dsym mach-o files within the dSYM bundle when using "add-dsym" through the platform. llvm-svn: 163676
* <rdar://problem/11757916>Greg Clayton2012-08-291-0/+1
| | | | | | | | | | | | Make breakpoint setting by file and line much more efficient by only looking for inlined breakpoint locations if we are setting a breakpoint in anything but a source implementation file. Implementing this complex for a many reasons. Turns out that parsing compile units lazily had some issues with respect to how we need to do things with DWARF in .o files. So the fixes in the checkin for this makes these changes: - Add a new setting called "target.inline-breakpoint-strategy" which can be set to "never", "always", or "headers". "never" will never try and set any inlined breakpoints (fastest). "always" always looks for inlined breakpoint locations (slowest, but most accurate). "headers", which is the default setting, will only look for inlined breakpoint locations if the breakpoint is set in what are consudered to be header files, which is realy defined as "not in an implementation source file". - modify the breakpoint setting by file and line to check the current "target.inline-breakpoint-strategy" setting and act accordingly - Modify compile units to be able to get their language and other info lazily. This allows us to create compile units from the debug map and not have to fill all of the details in, and then lazily discover this information as we go on debuggging. This is needed to avoid parsing all .o files when setting breakpoints in implementation only files (no inlines). Otherwise we would need to parse the .o file, the object file (mach-o in our case) and the symbol file (DWARF in the object file) just to see what the compile unit was. - modify the "SymbolFileDWARFDebugMap" to subclass lldb_private::Module so that the virtual "GetObjectFile()" and "GetSymbolVendor()" functions can be intercepted when the .o file contenst are later lazilly needed. Prior to this fix, when we first instantiated the "SymbolFileDWARFDebugMap" class, we would also make modules, object files and symbol files for every .o file in the debug map because we needed to fix up the sections in the .o files with information that is in the executable debug map. Now we lazily do this in the DebugMapModule::GetObjectFile() Cleaned up header includes a bit as well. llvm-svn: 162860
* rdar://problem/11324515Johnny Chen2012-08-221-2/+6
| | | | | | | 'add-dsym' (aka 'target symbols add') should display error messages when dsym file is not found or the dsym uuid does not match any existing modules. Add TestAddDsymCommand.py test file. llvm-svn: 162332
* Updating Xcode project version numbers for lldb-165 and debugserver-192Sean Callanan2012-08-072-2/+2
| | | | llvm-svn: 161374
* Updating Xcode project version numbers for lldb-164 and debugserver-191Sean Callanan2012-08-022-2/+2
| | | | llvm-svn: 161209
* Updating Xcode project version numbers for lldb-163 and debugserver-190Sean Callanan2012-07-262-2/+2
| | | | llvm-svn: 160770
* Call "drain" on the auto release pool as it will do the right thing for both ↵Greg Clayton2012-07-171-5/+1
| | | | | | GC and non-GC apps. It will also quiet the static analyzer. llvm-svn: 160390
* Ran the static analyzer on the codebase and found a few things.Greg Clayton2012-07-171-185/+190
| | | | llvm-svn: 160338
* Bump to lldb-162 / debugserver-189.Jason Molenda2012-07-142-2/+2
| | | | llvm-svn: 160212
* Resolve source paths that start with ~ when doing substitutions.Greg Clayton2012-07-131-0/+5
| | | | llvm-svn: 160158
* Unify how we get host version on Mac OS X & iOS.Jim Ingham2012-07-121-43/+57
| | | | | | | | | Also remove our dependency on UIKit & AppKit. Cleaned up the project files a bit. <rdar://problem/11814498> llvm-svn: 160147
* Provide more information when process launch can't change directory to theFilipe Cabecinhas2012-07-121-1/+10
| | | | | | | | path passed with -w Test this functionality. llvm-svn: 160130
* Bump versions to lldb-161, debugserver-188.Jason Molenda2012-07-062-2/+2
| | | | llvm-svn: 159798
* Bump version number to lldb-160.Jason Molenda2012-06-212-2/+2
| | | | llvm-svn: 158890
* When the Platform launches a process for debugging, make sure it goes into a ↵Jim Ingham2012-06-011-0/+3
| | | | | | | | separate process group, otherwise ^C will both cause us to try to Stop it manually, AND send it a SIGINT, which can confuse us. rdar://problem/11369230 llvm-svn: 157791
* Bump to lldb 152.Jason Molenda2012-05-252-2/+2
| | | | llvm-svn: 157456
* bump to lldb-150.Jason Molenda2012-05-192-2/+2
| | | | llvm-svn: 157090
* bump to lldb 149.Jason Molenda2012-05-182-2/+2
| | | | llvm-svn: 157040
* <rdar://11477301>Han Ming Ong2012-05-172-0/+2
| | | | | | Restore Xcode as a valid white list client using the XPC root launcher llvm-svn: 157012
* Bump to version 148.Jason Molenda2012-05-172-2/+2
| | | | llvm-svn: 156971
* Bump version # to lldb-147.Jason Molenda2012-05-162-2/+2
| | | | llvm-svn: 156887
* <rdar://problem/11400476>Han Ming Ong2012-05-083-5/+11
| | | | | | | | On Lion, because the rights initially doesn't exist in /etc/authorization, if an admin user logs in and uses lldb within the first 5 minutes, it is possible to do AuthorizationCopyRights on LaunchUsingXPCRightName and get the rights back. As another security measure, we make sure that the LaunchUsingXPCRightName rights actually exists. Removed Xcode as the user of the XPC service to shrink the security surface area. llvm-svn: 156424
* <rdar://problem/11408853>Han Ming Ong2012-05-081-41/+55
| | | | | | | | We make sure that if the user cancels out of the authentication dialog to add 'com.apple.lldb.LaunchUsingXPC' rights to /etc/authorization, we don't try to do AuthorizationCopyRights. As well, refactored a bit so that control flow is easier to read for other folks. Added more comments. llvm-svn: 156423
* bump TOT version number to lldb-146 to match the checkin on the branch.Jason Molenda2012-05-082-2/+2
| | | | llvm-svn: 156359
* Fixed some strncat/strlcat uses.Filipe Cabecinhas2012-05-062-5/+5
| | | | llvm-svn: 156264
* Bump to lldb-145.Jason Molenda2012-04-272-2/+2
| | | | llvm-svn: 155687
* Bump to lldb-144.Jason Molenda2012-04-252-2/+2
| | | | llvm-svn: 155527
* Bump version to lldb-143.Jason Molenda2012-04-212-2/+2
| | | | llvm-svn: 155272
* bump version to lldb-142.Jason Molenda2012-04-192-2/+2
| | | | llvm-svn: 155093
* Bump to lldb-141.Jason Molenda2012-04-182-2/+2
| | | | llvm-svn: 154975
* Bump to lldb-140.Jason Molenda2012-04-172-2/+2
| | | | llvm-svn: 154887
* version bump to lldb-139.Jason Molenda2012-04-132-2/+2
| | | | llvm-svn: 154650
* Version bump to lldb-138.Jason Molenda2012-04-072-2/+2
| | | | llvm-svn: 154252
* explicitly cast the value.Bill Wendling2012-04-061-1/+1
| | | | llvm-svn: 154148
* Use the path to the header file. Use an integer instead of NULL. And get rid ↵Bill Wendling2012-04-031-3/+2
| | | | | | of a superfluous 'default' label. llvm-svn: 153943
* Updating Xcode project version numbers for lldb-137 and debugserver-186Sean Callanan2012-04-012-2/+2
| | | | llvm-svn: 153823
* Don't log to a temp file and delete it, just use the API that gives us a ↵Greg Clayton2012-03-301-19/+8
| | | | | | malloc'ed string array. llvm-svn: 153785
* Updating Xcode project version numbers for lldb-136 and debugserver-185Sean Callanan2012-03-292-2/+2
| | | | llvm-svn: 153630
* Bump version to debugserver-184, lldb-135.Jason Molenda2012-03-242-2/+2
| | | | llvm-svn: 153374
* Explicit casts to remove two compile-time warnings.Johnny Chen2012-03-241-2/+2
| | | | llvm-svn: 153365
* Bumped Xcode project versions for lldb-134 and debugserver-183.Greg Clayton2012-03-232-2/+2
| | | | llvm-svn: 153298
* 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
OpenPOWER on IntegriCloud