summaryrefslogtreecommitdiffstats
path: root/lldb
Commit message (Collapse)AuthorAgeFilesLines
* <rdar://problem/10449092> Adding a new uppercase hex format specifier. This ↵Enrico Granata2012-08-099-19/+157
| | | | | | commit also changes the short names for formats so that uppercase hex can be 'X', which was previously assigned to hex float. hex float now has no short name. llvm-svn: 161606
* LLDB no longer prints <no result> by default ifSean Callanan2012-08-093-6/+32
| | | | | | | | | | | the expression returns nothing. There is now a setting, "notify-void." When the user enables that setting, lldb prints (void) if an expression's result is void. Otherwise, lldb is silent. <rdar://problem/11225150> llvm-svn: 161600
* <rdar://problem/11505459> Stripping off the object's type from the output of ↵Enrico Granata2012-08-095-8/+26
| | | | | | the 'po' command llvm-svn: 161592
* On Mac OS X, lldb will now build c++11 and useSean Callanan2012-08-092-7/+13
| | | | | | | | | | | | | | libc++. We also no longer use the GNU extensions to C++ and C (we didn't use them anyway). This also means that the LLVM we use must be built with the new libc++. I will commit llvm.zip next. <rdar://problem/11930775> llvm-svn: 161562
* Made lldb.swig include <string>, which it requires.Sean Callanan2012-08-091-0/+5
| | | | llvm-svn: 161560
* Removed explicit NULL checks for shared pointersSean Callanan2012-08-0916-21/+21
| | | | | | | | | and instead made us use implicit casts to bool. This generated a warning in C++11. <rdar://problem/11930775> llvm-svn: 161559
* When compiling with C++11, switch fromSean Callanan2012-08-091-0/+8
| | | | | | | | hash_multimap to unordered_multimap. <rdar://problem/11930775> llvm-svn: 161558
* Now that the testcase is fixed, it is no longerSean Callanan2012-08-091-2/+0
| | | | | | an expected failure. llvm-svn: 161556
* <rdar://problem/12061386> Fixing data-formatter-cpp test case - previous ↵Enrico Granata2012-08-091-1/+4
| | | | | | version had an unfortunate dependency on the value of uninitialized memory llvm-svn: 161555
* The C++ data formatter tests are flaky. MarkingSean Callanan2012-08-091-0/+2
| | | | | | them as expected failures until they are fixed. llvm-svn: 161547
* Fixed the delay that was happening when quitting lldb from the command line. ↵Greg Clayton2012-08-082-34/+35
| | | | | | We weren't initializing the command pipes when constructing a ConnectionFileDescriptor with a file descriptor. llvm-svn: 161533
* Added a 'void' format so that the user can manuallySean Callanan2012-08-085-31/+41
| | | | | | | | | suppress all non-error output from the "expression" command. <rdar://problem/11225150> llvm-svn: 161502
* Indentation fix for dotest.py.Filipe Cabecinhas2012-08-081-1/+1
| | | | llvm-svn: 161493
* Make dotest.py runnable from a directory other than lldb/testFilipe Cabecinhas2012-08-081-7/+8
| | | | llvm-svn: 161492
* <rdar://problem/11975483> Removing user-visible references to 'dict' as a ↵Enrico Granata2012-08-088-24/+24
| | | | | | parameter name for Python summary-generating functions since it is a Python keyword. llvm-svn: 161467
* Made "call" another alias for "expression --",Sean Callanan2012-08-081-0/+2
| | | | | | | | for people used to the GDB command. <rdar://problem/12052072> llvm-svn: 161466
* Added the ability to set the architecture from two numbers that represent ↵Greg Clayton2012-08-081-0/+39
| | | | | | the mach-o CPU type and subtype in the format "%u-%u" or "%u.%u". This can of course be followed by vendor and OS. llvm-svn: 161465
* <rdar://problem/11576169> Better documentation string for the -Y option to ↵Enrico Granata2012-08-081-1/+1
| | | | | | frame variable llvm-svn: 161464
* Added fix from Pawel Worach.Filipe Cabecinhas2012-08-071-1/+1
| | | | llvm-svn: 161420
* Start working on the test suite in FreeBSDFilipe Cabecinhas2012-08-071-0/+4
| | | | llvm-svn: 161419
* Fixing an issue where ValueObject::GetPointeeData() would not work correctly ↵Enrico Granata2012-08-071-0/+1
| | | | | | for file addresses when fetching items other than the 0-th llvm-svn: 161384
* Changed the Opcode::GetData() API so that it didn'tSean Callanan2012-08-074-15/+7
| | | | | | | | require an AddressClass, which is useless at this point since it already knows the distinction between 32-bit Thumb opcodes and 32-bit ARM opcodes. llvm-svn: 161382
* Fixed an error in the thumb opcode encoding. We need the 32 bit thumb ↵Greg Clayton2012-08-072-11/+25
| | | | | | instructions to be encoded as a 32 bit value for the EmulateARM code. llvm-svn: 161381
* Updating Xcode project version numbers for lldb-165 and debugserver-192Sean Callanan2012-08-075-27/+27
| | | | llvm-svn: 161374
* Improved raw disassembly output for Thumb.Sean Callanan2012-08-063-26/+29
| | | | llvm-svn: 161360
* <rdar://problem/12029894>Greg Clayton2012-08-062-3/+15
| | | | | | Use the built in demangler for Apple builds for now which has needed demangling fixes, and make the cxa_demangle.cpp use rtti in the Xcode project settings as it requires it be enabled. llvm-svn: 161323
* Pull in cxa_demangle.cpp/.h from llvm's libcxxabi project. Change the ↵Johnny Chen2012-08-044-0/+11190
| | | | | | | | namespace to lldb_cxxabiv1 for the time being. Mangled.cpp is not wired in to call it yet. llvm-svn: 161293
* <rdar://problem/12027563> Making sure that some class of stop-hook commands ↵Enrico Granata2012-08-033-8/+29
| | | | | | that involve po'ing objects do not cause an endless recursion llvm-svn: 161271
* Updating Xcode project version numbers for lldb-164 and debugserver-191Sean Callanan2012-08-025-27/+27
| | | | llvm-svn: 161209
* <rdar://problem/11846023> Fixing a bug where malformed DWARF could lead to ↵Enrico Granata2012-08-021-5/+19
| | | | | | an endless recursion with synthetic children llvm-svn: 161185
* Silence the "Command ... failed!" message when not running in trace mode.Johnny Chen2012-08-011-1/+1
| | | | | | You run with trace mode by passing '-t' to the test driver. llvm-svn: 161130
* Instructions generated by a disassembler can nowSean Callanan2012-08-017-28/+30
| | | | | | | | | | | | | | | | | | keep a shared pointer to their disassembler. This is important for the LLVM-C disassembler because it needs to lock its parent in order to disassemble itself. This means that every interface that returned a Disassembler* needs to return a DisassemblerSP, so that the instructions and any external owners share the same reference count on the object. I changed all clients to use this shared pointer, which also plugged a few leaks. <rdar://problem/12002822> llvm-svn: 161123
* Make the objc-runtime work with Python 2.6Filipe Cabecinhas2012-08-011-8/+20
| | | | llvm-svn: 161111
* <rdar://problem/11275622>Greg Clayton2012-07-317-22/+227
| | | | | | | | | | | | | | | | | | | | | | | | | Added new API to lldb::SBTypeMember for bitfields: bool SBTypeMember::IsBitfield(); uint32_t SBTypeMember::GetBitfieldSizeInBits(); Also added new properties for easy access. Now SBTypeMember objects in python have a "fields" property for all type fields, "bases" for all direct bases, "vbases" for all virtual base classes and "members" for a combo of all three organized by bit offset. They all return a python list() of SBTypeMember objects. Usage: (lldb) script >>> t = lldb.target.FindFirstType("my_type") >>> for field in t.fields: ... print field >>> for vbase in t.vbases: ... print vbase >>> for base in t.bases: ... print base >>> for member in t.members: ... print member Also added new "is_bitfield" property to the SBTypeMember objects that will return the result of SBTypeMember::IsBitfield(), and "bitfield_bit_size" which will return the result of SBTypeMember::GetBitfieldSizeInBits(); I also fixed "SBTypeMember::GetOffsetInBytes()" to return the correct byte offset. llvm-svn: 161091
* When building up the UnwindPlan based on eh_frame unwindJason Molenda2012-07-311-8/+28
| | | | | | | | | | | | | instructions, be sure to allocate new UnwindPlan::Row's each time we push a row on to the UnwindPlan so we don't mutate it any further. (fallout from changing the UnwindPlan from having a vector of Row's to having a vector of RowSP shared pointers.) <rdar://problem/11997385> llvm-svn: 161089
* Fixed a problem where stepping out would turn intoSean Callanan2012-07-312-3/+16
| | | | | | | | a continue if the unwinder didn't unwind correctly. <rdar://problem/11989668> llvm-svn: 161086
* <rdar://problem/11862570> Fixing a potential crasher related to Python lockingEnrico Granata2012-07-311-2/+2
| | | | llvm-svn: 161054
* <rdar://problem/11620586>Greg Clayton2012-07-311-6/+10
| | | | | | Fixed an issue where warning logs were causing a crash. llvm-svn: 161013
* Don't set the thread when adopting selected execution context entries, and ↵Greg Clayton2012-07-301-11/+17
| | | | | | use the "lldb_private::StateIsStoppedState(StateType, bool)" function to tell if the state is stopped. llvm-svn: 161000
* Make glibc and its developers happy. Circumvent the lack of strlcat in glibc.Filipe Cabecinhas2012-07-301-1/+3
| | | | llvm-svn: 160979
* Fixed ePathTypePythonDir for Linux and FreeBSD (at least). This works for ↵Filipe Cabecinhas2012-07-301-3/+7
| | | | | | non-installed compilations. I will test further. llvm-svn: 160963
* Added a few more summaries I find useful for lldb.Jim Ingham2012-07-281-14/+27
| | | | llvm-svn: 160909
* Fixed the expression parser to ignore C++ andSean Callanan2012-07-281-2/+18
| | | | | | | | | | Objective-C method names when looking for functions in the top level or a namespace. Method names should only be found via FindExternalLexicalDecls. <rdar://problem/11711679> llvm-svn: 160907
* Added an lldb_private & equivalent SB API to send an AsyncInterrupt to the ↵Jim Ingham2012-07-2710-125/+207
| | | | | | | | | | | | | | event loop. Convert from calling Halt in the lldb Driver.cpp's input reader's sigint handler to sending this AsyncInterrupt so it can be handled in the event loop. If you are attaching and get an async interrupt, abort the attach attempt. Also remember to destroy the process if get interrupted while attaching. Getting this to work also required handing the eBroadcastBitInterrupt in a few more places in Process WaitForEvent & friends. <rdar://problem/10792425> llvm-svn: 160903
* Changed the IRForTarget pass to ensure that allSean Callanan2012-07-271-0/+5
| | | | | | | | | | | | | | sel_getName() calls are generated for all Objective-C selectors before static literals are moved to the static allocation. This prevents errors of the form Internal error [IRForTarget]: Couldn't change a static reference to an Objective-C selector to a dynamic reference <rdar://problem/11331906> llvm-svn: 160887
* Don't have ExecutionContextRef::SetTargetPtr fill in the frameJason Molenda2012-07-261-1/+1
| | | | | | | | | | | information if we're not stopped. This could try to read registers etc when the process is still running and debug builds of lldb would assert down in GDBRemoteRegisterContext.cpp ReadRegisterBytes because we couldn't get the sequence mutex for talking to the remote system. Non-debug builds would just silently fail when doing this. <rdar://problem/11941758> llvm-svn: 160829
* Relax the test for "is the frame I am going to step back out to the one I ↵Jim Ingham2012-07-262-1/+31
| | | | | | | | | | | | started from" in ThreadPlanStepOverRange so you don't artificially reject stepping out of a function you stepped into when stepping through an inlined range. Also fill in the target in the symbol context we make up for the inlined stepping range in ThreadPlanStepOut. <rdar://problem/11765912> llvm-svn: 160794
* Updating Xcode project version numbers for lldb-163 and debugserver-190Sean Callanan2012-07-265-28/+28
| | | | llvm-svn: 160770
* Integrated a fix to LLVM's disassembler thatSean Callanan2012-07-261-1/+1
| | | | | | | | | corrected the offsets for x86_64 conditional branch instructions. <rdar://problem/11502148> llvm-svn: 160769
* Add a call to "sync" a thread state before checkpointing registers in ↵Jim Ingham2012-07-2512-4/+130
| | | | | | | | | | | preparation for calling functions. This is necessary on Mac OS X, since bad things can happen if you set the registers of a thread that's sitting in a kernel trap. <rdar://problem/11145013> llvm-svn: 160756
OpenPOWER on IntegriCloud