- May 02, 2013
-
-
Jim Ingham authored
llvm-svn: 180898
-
Greg Clayton authored
Return zero when we don't support the byte size. Previously is we were asked to read 3, 5, 6, or 7 byte integers, we would set the error, but still return that we read that number of bytes without populating the scalar. llvm-svn: 180896
-
Sean Callanan authored
in debug information more aggressive. Emitting classes containing these methods causes crashes in Clang when dealing with complex code bases. <rdar://problem/12640887> llvm-svn: 180895
-
Sean Callanan authored
to report proper errors when the size is not correct. <rdar://problem/13784456> llvm-svn: 180888
-
- May 01, 2013
-
-
rdar://problem/13700260Greg Clayton authored
<rdar://problem/13723772> Modified the lldb_private::Thread to work much better with the OperatingSystem plug-ins. Operating system plug-ins can now return have a "core" key/value pair in each thread dictionary for the OperatingSystemPython plug-ins which allows the core threads to be contained with memory threads. It also allows these memory threads to be stepped, resumed, and controlled just as if they were the actual backing threads themselves. A few things are introduced: - lldb_private::Thread now has a GetProtocolID() method which returns the thread protocol ID for a given thread. The protocol ID (Thread::GetProtocolID()) is usually the same as the thread id (Thread::GetID()), but it can differ when a memory thread has its own id, but is backed by an actual API thread. - Cleaned up the Thread::WillResume() code to do the mandatory parts in Thread::ShouldResume(), and let the thread subclasses override the Thread::WillResume() which is now just a notification. - Cleaned up ClearStackFrames() implementations so that fewer thread subclasses needed to override them - Changed the POSIXThread class a bit since it overrode Thread::WillResume(). It is doing the wrong thing by calling "Thread::SetResumeState()" on its own, this shouldn't be done by thread subclasses, but the current code might rely on it so I left it in with a TODO comment with an explanation. llvm-svn: 180886
-
Ashok Thirumurthi authored
- TODO: Support extended register sets on FreeBSD. Patch by Samuel Jacob. llvm-svn: 180879
-
Ashok Thirumurthi authored
- Required for platform-independant handling of general purpose registers (i.e. for core dumps). Thanks to Samuel Jacob for this patch. llvm-svn: 180878
-
Daniel Malea authored
llvm-svn: 180868
-
Jason Molenda authored
AppendMessage("") is called. This idiom is used in a handful of places right now (e.g. to put space between different threads in 'bt all') but the empty newline is being omitted instead of emitted. <rdar://problem/13753830> llvm-svn: 180841
-
Jim Ingham authored
case of ProcessGDBRemote the stub we are talking to) know how to do that. rdar://problem/13680832 llvm-svn: 180831
-
Jim Ingham authored
rdar://problem/12020085 llvm-svn: 180829
-
Jason Molenda authored
about which kernel binary lldb is referring to. llvm-svn: 180821
-
rdar://problem/13776113Greg Clayton authored
Dynamic type resolution not working for typedef's such as the __ptr_ member in the C++11 std::shared_ptr. llvm-svn: 180818
-
- Apr 30, 2013
-
-
Sean Callanan authored
UInts even if their contents were set as bytes. This makes expressions using registers work better, especially with core files. <rdar://problem/13743427> llvm-svn: 180810
-
rdar://problem/13695846Enrico Granata authored
Enabling LLDB to write to variables that are stored in registers Previously, this would not work since the Value's Context loses the notion of the data being in a register We now store an "original" context that comes out of DWARF parsing, and use that context's data when attempting a write llvm-svn: 180803
-
Sean Callanan authored
give up if it couldn't find the address for the first symbol it found with a particular name and type. <rdar://problem/13748253> llvm-svn: 180764
-
Sean Callanan authored
an assertion if we attempted to get the size of one. <rdar://problem/13748253> llvm-svn: 180763
-
Greg Clayton authored
lldb_private::StopInfo now holds onto a ThreadWP (a std::weak_ptr<lldb_private::Thread>) in case the thread goes away while the stop info still exists. llvm-svn: 180749
-
- Apr 29, 2013
-
-
Enrico Granata authored
Avoiding a potentially memory allocating code path in the Python InputReader's CTRL+C handling code path - this can potentially cause a deadlock while interrupting a user-made Python command llvm-svn: 180726
-
Greg Clayton authored
Cleanup logging to use the new "std::string FileSpec::GetPath()" function. Also added a similar function for modules: std::string Module::GetSpecificationDescription () const; This returns the module as "/usr/lib/libfoo.dylib" for normal files (calls "std::string FileSpec::GetPath()" on m_file) but it also might include the object name in case the module is for a .o file in a BSD archive ("/usr/lib/libfoo.a(bar.o)"). Cleaned up necessary logging code to use it. llvm-svn: 180717
-
Greg Clayton authored
llvm-svn: 180713
-
Jason Molenda authored
print the disassembly context around $pc -- just print the filename and line number, even if we can't show the source code. Previously if the source file was not available, lldb would print the source filename & line number and assembly. <rdar://problem/13072951> llvm-svn: 180706
-
Jason Molenda authored
will run xcode-select --print-path to find the currently selected Xcode developer directory. Mostly useful for when lldb is not being run out of the /Applications/Xcode.app bundle so it can't locate the iOS or kernel SDKs. llvm-svn: 180705
-
Jason Molenda authored
with directories, without increasing the size of the FileSpec object. GetPath() returns a std::string of the full pathname of the file. IsDirectory(), IsPipe(), IsRegularFile(), IsSocket(), and IsSymbolicLink() can be used instead of getting the FileType() and comparing it to an enum. Update PlatformDarwinKernel to use these new methods. llvm-svn: 180704
-
- Apr 27, 2013
-
-
Sean Callanan authored
mostly related to management of the stack frame for the interpreter. - First, if the expression can be interpreted, allocate the stack frame in the target process (to make sure pointers are valid) but only read/write to the copy in the host's memory. - Second, keep the memory allocations for the stack frame and the materialized struct as member variables of ClangUserExpression. This avoids memory allocations and deallocations each time the expression runs. <rdar://problem/13043685> llvm-svn: 180664
-
Sean Callanan authored
null pointer. <rdar://problem/13745684> llvm-svn: 180663
-
rdar://problem/12529989Enrico Granata authored
Synthetic children provider for NSOrderedSet llvm-svn: 180655
-
Sean Callanan authored
presence of malformed class types. <rdar://problem/13740646> llvm-svn: 180645
-
- Apr 26, 2013
-
-
Matt Kopec authored
This fixes a problem on Linux where allocated memory would get overun in some use cases (ie. in TestExprs2.py). llvm-svn: 180614
-
Andrew Kaylor authored
llvm-svn: 180612
-
Enrico Granata authored
llvm-svn: 180588
-
Matt Kopec authored
Patch by Ashok Thirumurthi. llvm-svn: 180581
-
- Apr 25, 2013
-
-
Ashok Thirumurthi authored
- Adds unique enums for ymm registers to the ABI and the POSIX register context. - Reworks the register context data structures to support a union of FXSAVE and XSAVE --- Allows the same code base to deal with the FPU independent of the availability of AVX. - Determine if AVX is supported by attempting to read XSAVE using ptrace. --- Support an extended register set for avx registers if available. - Provide a mechanism to assemble/parse register halves into a single ymm buffer for use with RegisterValue. --- Reworked Read/WriteRegister routines to read/write/parse ymm registers. Adds tests for ymm register write with read-back, and expressions involving ymm registers. - Tests vary depending on the availability of an avx register set. Thanks to Daniel and Matt for their reviews. llvm-svn: 180572
-
Sean Callanan authored
interpreter. They are a legacy from when the IR interpreter didn't work with materialized values but rather got values directly from ClangExpressionDeclMap. Also updated the #includes for IRInterpreter accordingly. llvm-svn: 180565
-
Sean Callanan authored
disabled. llvm-svn: 180563
-
Jim Ingham authored
In Process::ProcessEventData::DoOnRemoval, we need to handle the case where NO thread has a stop reason specially, and make sure we stop. This shouldn't happen, but if it does, the user will probably want to see it. <rdar://problem/13273125> llvm-svn: 180244
-
Filipe Cabecinhas authored
llvm-svn: 180243
-
Jason Molenda authored
llvm-svn: 180242
-
rdar://problem/13565393Greg Clayton authored
If a register is in a ValueObject, be sure to print its children if it is a vector type. llvm-svn: 180237
-