- Mar 14, 2012
-
-
rdar://problem/10434005Greg Clayton authored
Prepare LLDB to be built with C++11 by hiding all accesses to std::tr1 behind macros that allows us to easily compile for either C++. llvm-svn: 152698
-
rdar://problem/11042408Greg Clayton authored
Fixed an issue with the FUNC_STARTS load command where we would get the symbol size wrong and we would add all sorts of symbols due to bit zero being set to indicate thumb. llvm-svn: 152696
-
Jason Molenda authored
llvm-svn: 152689
-
rdar://problem/11034170Greg Clayton authored
Simplify the locking strategy for Module and its owned objects to always use the Module's mutex to avoid A/B deadlocks. We had a case where a symbol vendor was locking itself and then calling a function that would try to get it's Module's mutex and at the same time another thread had the Module mutex that was trying to get the SymbolVendor mutex. Now any classes that inherit from ModuleChild should use the module lock using code like: void ModuleChildSubclass::Function { ModuleSP module_sp(GetModule()); if (module_sp) { lldb_private::Mutex::Locker locker(module_sp->GetMutex()); ... do work here... } } This will help avoid deadlocks by using as few locks as possible for a module and all its child objects and also enforce detecting if a module has gone away (the ModuleSP will be returned empty if the weak_ptr does refer to a valid object anymore). llvm-svn: 152679
-
- Mar 13, 2012
-
-
Enrico Granata authored
The Cocoa formatters now provide error messages for many of the common things-went-wrong situations. Previously they would say nothing or log failures to the Python console llvm-svn: 152673
-
Johnny Chen authored
For EmulateInstructionARM::EmulatePUSH(), fix the logical branch for when pc is pushed to behave like the other cases where: context.SetRegisterToRegisterPlusOffset (reg_info, sp_reg, addr - sp); is called to inform of the operation to set a register value to a memory location calculated from a base register plus an offset. llvm-svn: 152670
-
Sean Callanan authored
bad stack IDs. llvm-svn: 152630
-
Greg Clayton authored
llvm-svn: 152606
-
Jason Molenda authored
llvm-svn: 152603
-
Jason Molenda authored
llvm-svn: 152599
-
Enrico Granata authored
Changed several of the Cocoa formatters to match the output style that Xcode uses internally to provide summaries This has been done for those summaries where the difference is only cosmetic (e.g. naming things as items instead of values, ...) The LLDB output style has been preserved when it provides more information (e.g. telling the type as well as the value of an NSNumber) Test cases have been updated to reflect the updated output style where necessary llvm-svn: 152592
-
- Mar 12, 2012
-
-
http://libcxx.llvm.orgEnrico Granata authored
std::string has a summary provider std::vector std::list and std::map have both a summary and a synthetic children provider Given the usage of a custom namespace (std::__1::classname) for the implementation of libc++, we keep both libstdcpp and libc++ formatters enabled at the same time since that raises no conflicts and enabled for seamless transition between the two The formatters for libc++ reside in a libcxx category, and are loaded from libcxx.py (to be found in examples/synthetic) The formatters-stl test cases have been divided to be separate for libcxx and libstdcpp. This separation is necessary because (a) we need different compiler flags for libc++ than for libstdcpp (b) libc++ inlines a lot more than libstdcpp and some code changes were required to accommodate this difference llvm-svn: 152570
-
- Mar 10, 2012
-
-
Sean Callanan authored
on behalf of a DWARF expression. llvm-svn: 152477
-
Jim Ingham authored
<rdar://problem/11021925> llvm-svn: 152473
-
Sean Callanan authored
llvm-svn: 152472
-
Sean Callanan authored
llvm-svn: 152471
-
Jason Molenda authored
llvm-svn: 152465
-
Jim Ingham authored
Fix the process of getting the ObjC runtime - if we ask for it too early (in the process of handling the load notification for the first load) then we will set it the runtime to NULL and won't re-search for it. Added a way for the dynamic loader to force a re-search, since it knows the world has changed. llvm-svn: 152453
-
- Mar 09, 2012
-
-
Jim Ingham authored
Handle the case where we get called to determine the ObjC runtime version BEFORE the loader code has winnowed all the unloaded libraries from the process module list. <rdar://problem/11015223> llvm-svn: 152427
-
Greg Clayton authored
llvm-svn: 152384
-
rdar://problem/11016907Greg Clayton authored
Get function boundaries from the LC_FUNCTION_STARTS load command. This helps to determine symbol sizes and also allows us to be able to debug stripped binaries. If you have a stack backtrace that goes through a function that has been stripped from the symbol table, the variables for any functions above that stack frame will most likely be incorrect. It can also affect our ability to step in/out/through of a function. llvm-svn: 152381
-
rdar://problem/11016922Greg Clayton authored
Don't show variable values in Xcode when they are out of scope. This allows Xcode to step a lot faster when there are many variables in the variables view. llvm-svn: 152380
-
Jim Ingham authored
<rdar://problem/10975912> llvm-svn: 152376
-
Enrico Granata authored
Changed ValueObject to use a dedicated ChildrenManager class to store its children, instead of an std::vector This solves an issue where a ValueObject was getting a wrong children count (usually, a huge value) and trying to resize the vector of children to fit that many ValueObject* Added a loop detection algorithm to the synthetic children provider for std::list Added a few more checks to the synthetic children provider for std::vector Both std::list and std::vector's synthetic children providers now cache the count of children instead of recomputing it every time std::map has a field that stores the count, so there is little need to cache it on our side llvm-svn: 152371
-
Jason Molenda authored
llvm-svn: 152353
-
- Mar 08, 2012
-
-
Johnny Chen authored
The Locker should only perform acquire/free lock operation, but no enter/leave session at all. Also added sanity checks for items passed to the PyDict_SetItemString() calls. llvm-svn: 152337
-
Greg Clayton authored
llvm-svn: 152294
-
Jason Molenda authored
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
-
Sean Callanan authored
This takes two important changes: - Calling blocks is now supported. You need to cast their return values, but that works fine. - We now can correctly run JIT-compiled expressions that use floating-point numbers. Also, we have taken a fix that allows us to ignore access control in Objective-C as in C++. llvm-svn: 152286
-
Greg Clayton authored
Moved inline functions into SBTarget.cpp and made destructors for SBLaunchInfo and SBAttachInfo to avoid link warnings. llvm-svn: 152267
-
Greg Clayton authored
llvm-svn: 152265
-
- Mar 07, 2012
-
-
Sean Callanan authored
treat Objective-C ivar symbols as their own kind of symbol rather than lumping them in with generic "runtime" symbols. llvm-svn: 152251
-
Jim Ingham authored
When comparing a Thread against a ThreadSpec, don't fetch the Thread's Name or QueueName if the ThreadSpec doesn't specify them. llvm-svn: 152245
-
rdar://problem/10997402Greg Clayton authored
This fix really needed to happen as a previous fix I had submitted for calculating symbol sizes made many symbols appear to have zero size since the function that was calculating the symbol size was calling another function that would cause the calculation to happen again. This resulted in some symbols having zero size when they shouldn't. This could then cause infinite stack traces and many other side affects. llvm-svn: 152244
-
Johnny Chen authored
lldb crashes under guard malloc Fix CommandObjectSettingsAppend::ExecuteRawCommandString() so that it does not perform the cmd_args.Shift() operation after it has got the var_name out of the raw string, since StringRef is manipulating the raw string later on. llvm-svn: 152194
-
Johnny Chen authored
expression command doesn't handle xmm or stmm registers... o Update ClangASTContext::GetBuiltinTypeForEncodingAndBitSize() to now handle eEncodingVector. o Modify RegisterValue::SetFromMemoryData() to fix the subtle error due to unitialized variables. o Add a test file for "expr $xmm0". llvm-svn: 152190
-
rdar://10996650Han Ming Ong authored
Passed in the right number of parameters for CFDictionaryCreate llvm-svn: 152182
-
Enrico Granata authored
Using the new ScriptInterpreterObject in the implementation of synthetic children to enhance type safety Several places in the ScriptInterpreter interface used StringList objects where an std::string would suffice - Fixed Refactoring calls that generated special-purposes functions in the Python interpreter to use helper functions instead of duplicating blobs of code llvm-svn: 152164
-
Enrico Granata authored
Fixing an issue where a ValueObject had changed its value but the 'value changed' flag was not being set. This was breaking one of our test cases llvm-svn: 152161
-
- Mar 06, 2012
-
-
Greg Clayton authored
This was done in SBTarget: lldb::SBInstructionList lldb::SBTarget::ReadInstructions (lldb::SBAddress base_addr, uint32_t count); Also cleaned up a few files in the LLDB.framework settings. llvm-svn: 152152
-