| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"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
|
| |
|
|
|
|
| |
I'll track down why our CI is not sending out emails on build breaks.
llvm-svn: 251522
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
http://reviews.llvm.org/D14101
llvm-svn: 251422
|
| |
|
|
|
|
|
| |
Since 219143, this file is missing from Makefile build. Committed as
obvious.
llvm-svn: 251421
|
| |
|
|
|
|
|
|
| |
appropriate implementation class.
http://reviews.llvm.org/D14085
llvm-svn: 251417
|
| |
|
|
| |
llvm-svn: 251403
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Differential revision: http://reviews.llvm.org/D14051
llvm-svn: 251386
|
| |
|
|
|
|
| |
description argument
llvm-svn: 251377
|
| |
|
|
| |
llvm-svn: 251376
|
| |
|
|
|
|
| |
source/Plugins/LanguageRuntime and Platform; other minor fixes.
llvm-svn: 251374
|
| |
|
|
|
|
|
|
| |
This reverts commit r251340.
Breaks the Windows build because Windows doesn't have getuid. The fix is not obvious.
llvm-svn: 251354
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
The arguments for ClangASTContext::CreateMemberPointerType was passed
in in the wrong order.
llvm-svn: 251319
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
other minor fixes.
llvm-svn: 251309
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
to ‘bool’ from ‘std::nullptr_t’
llvm-svn: 251276
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
fix MSVC builds failures.
llvm-svn: 251170
|
| |
|
|
|
|
| |
source/Plugins; other minor fixes.
llvm-svn: 251167
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
fixes.
llvm-svn: 251134
|
| |
|
|
|
|
| |
source/Plugins/ObjectContainer and ObjectFile; other minor fixes.
llvm-svn: 251119
|
| |
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
| |
llvm-svn: 251109
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 251088
|
| |
|
|
|
|
|
| |
name of the xpc service.
<rdar://problem/23223624>
llvm-svn: 251086
|
| |
|
|
| |
llvm-svn: 251084
|
| |
|
|
| |
llvm-svn: 251083
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
and OperatingSystem; other minor fixes.
Second attempt which should work for MSVC.
llvm-svn: 251066
|
| |
|
|
| |
llvm-svn: 251044
|
| |
|
|
|
|
| |
http://reviews.llvm.org/D13970
llvm-svn: 251034
|
| |
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D13968
llvm-svn: 251031
|
| |
|
|
|
|
| |
Differential revision: http://reviews.llvm.org/D13942
llvm-svn: 251007
|
| |
|
|
|
|
| |
Differential revision: http://reviews.llvm.org/D13941
llvm-svn: 251006
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
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
|