summaryrefslogtreecommitdiffstats
path: root/lldb/source
Commit message (Collapse)AuthorAgeFilesLines
* Make core files not crash when you load a core file into LLDB with just ↵Greg Clayton2015-10-284-24/+162
| | | | | | | | | | | | | | | "lldb -c core". To do this I added a few new ways to determine the OS from PT_NOTE notes in the ELF file: 1 - Look for "LINUX" notes which indicate "linux" should be the OS 2 - Look through the "CORE" notes with NT_FILE as the type and sniff data from the paths listed in this section. On Ubuntu they contain "/lib/x86_64-linux-gnu" which has the triple and allows us to set "linux" as the OS in the architecture returned from ObjectFileELF::GetArchitecture(). Setting the OS correctly allows us to get the triple correct so we can extract registers without asserting and killing LLDB. Also use the data from the NT_FILE to set the main executable if one isn't set in ProcessElfCore::DoLoadCore(). llvm-svn: 251537
* Fix build break on OS X from cleanup check-in.Todd Fiala2015-10-281-0/+5
| | | | | | I'll track down why our CI is not sending out emails on build breaks. llvm-svn: 251522
* Changes for Bug 17384Ravitheja Addepally2015-10-282-2/+33
| | | | | | | | | | | | | | | | | | | | | | | Summary: Virtual dynamic shared objects, or vdso files were not loaded for Linux OS.In Bug 17384 the call stack could not be unwinded from functions residing in the vdso object. This commit adds support for loading such files by reading the Aux vectors since a vdso is invisibily mapped to the inferiors address space and the actual file is not present in the filesystem. The presence of the vdso is detected by inspecting the Aux vector for AT_SYSINFO_EHDR tag. Reviewers: lldb-commits, ovyalov, tberghammer Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D14118 llvm-svn: 251505
* Fix editline unindentation code for more recent libedits.Todd Fiala2015-10-271-2/+5
| | | | | | | | This code was modifying the cursor and then expecting the editline API call to see the effect for the next operation. This is misusing the API. Newer editlines break on this code, fixed by this. llvm-svn: 251457
* Use accept4 workaround for MIPS Android build.Chaoren Lin2015-10-271-3/+3
| | | | | | | | | | | | Summary: Similar to http://reviews.llvm.org/rL242319, which was for ARM. Reviewers: chying, ovyalov Subscribers: aemerson, tberghammer, danalbert, srhines, lldb-commits Differential Revision: http://reviews.llvm.org/D14127 llvm-svn: 251439
* Include <cstdio> to fix build errors.Hafiz Abid Qadeer2015-10-271-0/+2
| | | | | | | This file uses things like fprintf and stderr and <cstdio> is the right header to include. I was getting build errors without it. llvm-svn: 251426
* Treat hostname in android URL as device id unless it matches "localhost".Oleksiy Vyalov2015-10-272-2/+2
| | | | | | http://reviews.llvm.org/D14101 llvm-svn: 251422
* Add a file in Makefile build which is present in CMake build.Hafiz Abid Qadeer2015-10-271-0/+1
| | | | | | | Since 219143, this file is missing from Makefile build. Committed as obvious. llvm-svn: 251421
* Add Socket::Create factory method which uses socket protocol to find an ↵Oleksiy Vyalov2015-10-271-21/+41
| | | | | | | | appropriate implementation class. http://reviews.llvm.org/D14085 llvm-svn: 251417
* Fix MSVC build after r251402Tamas Berghammer2015-10-271-1/+2
| | | | llvm-svn: 251403
* Some minor improvements on the symtab parsing codeTamas Berghammer2015-10-272-32/+61
| | | | | | | | | | | | | | | * Remove an unneccessary re-computaion on arch spec from the ELF file * Use a local cache to optimize name based section lookups in symtab parsing * Optimize C++ method basename validation with replacing a regex with hand written code These modifications reduce the time required to parse the symtab from large applications by ~25% (tested with LLDB as inferior) Differential revision: http://reviews.llvm.org/D14088 llvm-svn: 251402
* Fix race condition in process resumePavel Labath2015-10-271-1/+7
| | | | | | | | | | | | | | | | | | Summary: Gdb-remote's async thread sent out the eBroadcastBitRunPacketSent message *before* actually sending out the continue packet. Since it's this message the actually triggers the public state transition, it could happen (and it did happen in TestAttachResume, which does an "process interrupt" right after a continue) that we attempt to stop the inferior before it was actually started (which obviously did not end well). This fixes the problem by moving the broadcast after the packet was actually sent. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D14083 llvm-svn: 251399
* Fix for Arm watchpoint cache corruption in case of ptrace failureOmair Javaid2015-10-271-0/+48
| | | | | | Differential revision: http://reviews.llvm.org/D14051 llvm-svn: 251386
* Minor cleanup of SBTypeSummary::CreateWithCallback to take an optional ↵Enrico Granata2015-10-271-16/+19
| | | | | | description argument llvm-svn: 251377
* Add calls to the SB API to access the multi-language formatter category featureEnrico Granata2015-10-271-0/+23
| | | | llvm-svn: 251376
* Fix Clang-tidy modernize-use-override warnings in ↵Eugene Zelenko2015-10-2716-325/+239
| | | | | | source/Plugins/LanguageRuntime and Platform; other minor fixes. llvm-svn: 251374
* Revert "Clang module compilation options need to be per-platform."Adrian McCarthy2015-10-265-97/+14
| | | | | | | | This reverts commit r251340. Breaks the Windows build because Windows doesn't have getuid. The fix is not obvious. llvm-svn: 251354
* Clang module compilation options need to be per-platform.Sean Callanan2015-10-265-14/+97
| | | | | | | | On UNIX (but not Darwin) the username needs to be respected when creating a temporary module directory, so that different users don't pollute each others' module caches. llvm-svn: 251340
* Fix an API missues in ParseTypeFromDWARFTamas Berghammer2015-10-261-1/+1
| | | | | | | The arguments for ClangASTContext::CreateMemberPointerType was passed in in the wrong order. llvm-svn: 251319
* Re-use prologue parsing code that was already written instead of having two ↵Greg Clayton2015-10-262-66/+37
| | | | | | | | copies of code that parse line table prologues. Also since we always read in the DWARF data or mmap it, we don't need to make a copy of the strings for the directories and file names, we can just store "cosnt char *" values. Every place that uses the prologues use them temporarily and then throw them away so no one is expecting the directory and filename strings to live longer than the parse functions. llvm-svn: 251310
* Fix Clang-tidy modernize-use-override warnings in some files in source; ↵Eugene Zelenko2015-10-265-208/+182
| | | | | | other minor fixes. llvm-svn: 251309
* [lldb-server] Send PC of every thread along in the stop-reply packetPavel Labath2015-10-261-14/+14
| | | | | | | | This avoids the need to query the PC for private resume operations (public resumes have the PC from the bigger jStopInfo packet) and speeds up the stepping on an android target by about 10% (it some cases even more). llvm-svn: 251301
* [RenderScript] Add option to break on a specific kernel invocationEwan Crawford2015-10-262-21/+262
| | | | | | | | | Adds option -c <x,y,z> to the 'language renderscript kernel breakpoint set' command. Breaks only on the invocation of the kernel with specified coordinate. Implemented by adding a callback to the kernel breakpoint which checks the coordinates of every invocation. llvm-svn: 251293
* Fix a fission expression evaluation issueTamas Berghammer2015-10-263-1/+10
| | | | | | | This fix should eliminate the duplicate definition errors when debug info is available in multiple dwo symbol file for the same type. llvm-svn: 251282
* Fix a build issue on Debian unstable. The compiler rejected the convertion ↵Sylvestre Ledru2015-10-261-2/+2
| | | | | | to ‘bool’ from ‘std::nullptr_t’ llvm-svn: 251276
* Corrects return values and typos in Arm watchpoint codeOmair Javaid2015-10-251-4/+4
| | | | | | | This is just a trivial patch that corrects a couple of return value account to function's return type. Also corrects typo in hardware breakpoint handler. llvm-svn: 251269
* Add initial gmake glue for the NetBSD platformBruce Mitchener2015-10-245-2/+43
| | | | | | | | | | | | | | | | | Summary: These changes aren't everything what is needed for the autotools target, but it's significantly approaching it. These changes shouldn't effect the build process on other platforms. Patch by Kamil Rytarowski, thanks! Reviewers: joerg, brucem Subscribers: brucem, tberghammer, danalbert, srhines, lldb-commits Differential Revision: http://reviews.llvm.org/D13715 llvm-svn: 251171
* Revert r251167 in source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp to ↵Eugene Zelenko2015-10-241-32/+84
| | | | | | fix MSVC builds failures. llvm-svn: 251170
* Fix Clang-tidy modernize-use-override warnings in some files in ↵Eugene Zelenko2015-10-2412-343/+272
| | | | | | source/Plugins; other minor fixes. llvm-svn: 251167
* Add initial CMake glue for the NetBSD platformBruce Mitchener2015-10-245-1/+27
| | | | | | | | | | | | | | | | | Summary: These changes aren't everything what is needed for the CMake target, but it's significantly approaching it. These changes shouldn't effect the build process on other platforms. Patch by Kamil Rytarowski, thanks! Reviewers: joerg, brucem Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D13711 llvm-svn: 251164
* Fixed some issues with reporting "this" when the current function is not listedSean Callanan2015-10-232-43/+47
| | | | | | | | | in DWARF as a member of a class, but it has a "this" parameter. Specifically, *this needs to have the LLDB expression added as a method. This fixes TestWithLimitDebugInfo. llvm-svn: 251151
* Fix Clang-tidy modernize-use-override warnings in source/Target; other minor ↵Eugene Zelenko2015-10-235-334/+163
| | | | | | fixes. llvm-svn: 251134
* Fix Clang-tidy modernize-use-override warnings in ↵Eugene Zelenko2015-10-237-341/+331
| | | | | | source/Plugins/ObjectContainer and ObjectFile; other minor fixes. llvm-svn: 251119
* Fix arm lldb-server on aarch64 deviceTamas Berghammer2015-10-232-0/+56
| | | | | | | | | | * Use PTRACE_GETVFPREGS/PTRACE_SETVFPREGS to access the floating point registers instead of the old PTRACE_GETFPREGS/PTRACE_SETFPREGS. The new call is available since armv5. * Work around a kernel issue in PTRACE_POKEUSER with reading out the full register set, modifying the neccessary value and then writing it back. llvm-svn: 251111
* Try to fix MSVC build after r251105Tamas Berghammer2015-10-231-2/+2
| | | | llvm-svn: 251109
* Re-commit "Make dwarf parsing multi-threaded"Tamas Berghammer2015-10-233-22/+78
| | | | | | | | | | | | | | | Re-commit the change after fixing a lot of race condition in LLDB exposed by this change Loading the debug info from a large application is the slowest task LLDB do. This CL makes most of the dwarf parsing code multi-threaded. As a result the speed of "attach; backtrace; exit;" when the inferior is an LLDB with full debug info increased by a factor of 2. Differential revision: http://reviews.llvm.org/D13662 llvm-svn: 251106
* Fix race conditions in Core/TimerTamas Berghammer2015-10-231-28/+45
| | | | | | | | | | | The Timer class already had some support for multi-threaded access but it still contained several race conditions. This CL fixes them in preparation of adding multi-threaded dwarf parsing (and other multi-threaded parts later). Differential revision: http://reviews.llvm.org/D13940 llvm-svn: 251105
* Add arm64 FreeBSD ProcessMonitor register contextEd Maste2015-10-231-0/+4
| | | | llvm-svn: 251088
* Fix one more place where we were using the oldJason Molenda2015-10-231-7/+3
| | | | | | | name of the xpc service. <rdar://problem/23223624> llvm-svn: 251086
* Log information about sections that didn't make it into the target's memory.Sean Callanan2015-10-231-2/+10
| | | | llvm-svn: 251084
* Fixed a typo in r251080.Sean Callanan2015-10-231-1/+1
| | | | llvm-svn: 251083
* Summary provider for char.Dawn Perchik2015-10-231-0/+19
| | | | | | | | | | | | | | | | | | | This patch enables type summary for 'char' type. Given: char c = 'h'; Before this patch, c evaluates as: (char) $0 = 'h' After this patch, we get: (char) $0 = 104 'h' This change allows the formatting of character types in MI to be removed and replaced with that in lldb, and can be useful when evaluating non-printable characters. Patch from evgeny.leviant@gmail.com Reviewed by: granata.enrico Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D13657 llvm-svn: 251080
* Fix Clang-tidy modernize-use-override warnings in include/lldb/Disassembler ↵Eugene Zelenko2015-10-224-132/+130
| | | | | | | | and OperatingSystem; other minor fixes. Second attempt which should work for MSVC. llvm-svn: 251066
* Set device_id to host value only in case of adb protocol.Oleksiy Vyalov2015-10-222-2/+4
| | | | llvm-svn: 251044
* Add support for abstract domain sockets.Oleksiy Vyalov2015-10-225-8/+129
| | | | | | http://reviews.llvm.org/D13970 llvm-svn: 251034
* Attempt to fix MSVC builds after rL250966.Eugene Zelenko2015-10-221-9/+4
| | | | | | Differential Revision: http://reviews.llvm.org/D13968 llvm-svn: 251031
* Make SymbolFileDWARF::GetCachedSectionData thread safeTamas Berghammer2015-10-224-151/+94
| | | | | | Differential revision: http://reviews.llvm.org/D13942 llvm-svn: 251007
* Fix some race condition in ConstString around Mangled name handlingTamas Berghammer2015-10-221-15/+40
| | | | | | Differential revision: http://reviews.llvm.org/D13941 llvm-svn: 251006
* [AppleObjCRuntime] Don't bother looking for the runtime on non-apple targetsPavel Labath2015-10-221-1/+4
| | | | | | | | | | | | | | | Summary: This short-circuits the GetObjCVersion function to avoid iterating through target modules on non-apple targets. This function is called on every Process::IsDynamicValue call, so this overhead is not negligible. Reviewers: clayborg, jingham Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D13948 llvm-svn: 251004
* [RenderScript] Support for mips64 runtime hookEwan Crawford2015-10-221-16/+61
| | | | | | | | | Previously we could not hook the RS runtime on mips64 architectures. Patch implements ABI specific code for inspecting function arguments. Author: Dean De Leo, dean@codeplay.com llvm-svn: 251003
OpenPOWER on IntegriCloud