summaryrefslogtreecommitdiffstats
path: root/lldb/source
Commit message (Collapse)AuthorAgeFilesLines
* Formatting cleanup.Jim Ingham2013-07-011-3/+10
| | | | llvm-svn: 185357
* Following the modification introduced in llvm by commit 185311Sylvestre Ledru2013-07-015-11/+19
| | | | | | | | | | | | | | | | | | The build system is currently miss-identifying GNU/kFreeBSD as FreeBSD. This kind of simplification is sometimes useful, but in general it's not correct. As GNU/kFreeBSD is an hybrid system, for kernel-related issues we want to match the build definitions used for FreeBSD, whereas for userland-related issues we want to match the definitions used for other systems with Glibc. The current modification adjusts the build system so that they can be distinguished, and explicitly adds GNU/kFreeBSD to the build checks in which it belongs. Fixes bug #16446. Patch by Robert Millan in the context of Debian. llvm-svn: 185313
* Fixed SBProcess::RemoteLaunch() to use the platform executable path. Patch ↵Greg Clayton2013-06-291-1/+1
| | | | | | from Sebastien Metrot. llvm-svn: 185245
* Missed a place where we have to pass the source location twice to ↵Jim Ingham2013-06-281-0/+1
| | | | | | FunctionDecl::Create. llvm-svn: 185233
* Hitherto the IRForTarget infrastructure has mainlySean Callanan2013-06-281-178/+252
| | | | | | | | | | | | | | | | | | | | | been suitable for preparing a single IR function for operation in the target. However, using blocks and lambdas creates other IR functions that also need to be processed. I have audited IRForTarget to make it process multiple functions. Where IRForTarget would add new instructions at the beginning of the main expression function, it now adds them on-demand in the function where they are needed. This is enabled by a system of FunctionValueCaches, which invoke a lambda to create or derive the values as needed, or report the result of that lambda if it has already been called for the given function. <rdar://problem/14180236> llvm-svn: 185224
* Default parameters are evil and should not be used. Case and point this ↵Greg Clayton2013-06-282-9/+18
| | | | | | checkin that fixes implicit conversions that were happening. llvm-svn: 185217
* Don't check for "are there any loaded sections" before trying to resolve a ↵Jim Ingham2013-06-281-3/+0
| | | | | | | | | | breakpoint site. We've already got a process, and any breakpoints with section relative addresses won't resolve their load addresses so they will error out at that point. <rdar://problem/13900130> llvm-svn: 185170
* Move sys/sysctl.h include after its dependency sys/types.hEd Maste2013-06-281-1/+1
| | | | llvm-svn: 185147
* Prevent race in when stopping a "read thread"Tim Northover2013-06-271-2/+0
| | | | | | | | | | | Both StopReadThread and the thread being stopped set the thread id to 0 after m_read_thread_enabled was set to false. If the thread being stopped got there first then StopReadThread called pthread_join on an invalid thread number. This is not a Good Thing, Should fix a fairly regular segfault when quitting on Linux. llvm-svn: 185107
* Cleanup of IRForTarget. Removed some relics ofSean Callanan2013-06-271-80/+0
| | | | | | | the time when the IRInterpreter ran inside IRForTarget. llvm-svn: 185088
* Fixed the IRInterpreter to reject any code thatSean Callanan2013-06-271-0/+14
| | | | | | | | | | | has more than one function with a body. This prevents declarations e.g. of blocks from being passed to the IRInterpreter; they must pass through to the JIT. <rdar://problem/14180236> llvm-svn: 185057
* Adding support for extracting line table information from .o files that do ↵Enrico Granata2013-06-273-10/+52
| | | | | | not have aranges llvm-svn: 185055
* Fixed IRExecutionUnit so that it looks up addressesSean Callanan2013-06-271-2/+17
| | | | | | | | | | | correctly. We have been getting lucky since most expressions generate only one section (or the first code section contains all the code), but sometimes it actually matters. <rdar://problem/14180236> llvm-svn: 185054
* Remove the process's reservation cache and don'tSean Callanan2013-06-272-82/+2
| | | | | | | | | | | | | | | | | | | | | | bother checking if a region is safe to use. In cases where regions need to be synthesized rather than properly allocated, the memory reads required to determine whether the area is used are - insufficient, because intermediate locations could be in use, and - unsafe, because on some platforms reading from memory can trigger events. All this only makes a difference on platforms where memory allocation in the target is impossible. Behavior on platforms where it is possible should stay the same. <rdar://problem/14023970> llvm-svn: 185046
* Remove unneeded limbo state flag.Matt Kopec2013-06-262-20/+2
| | | | llvm-svn: 185010
* Remove unused include.Rafael Espindola2013-06-261-1/+0
| | | | llvm-svn: 184954
* Don't explicitly set update versionEd Maste2013-06-261-1/+0
| | | | | | | Host::GetOSVersion's caller already sets it to UINT32_MAX to determine which version number components are set. llvm-svn: 184953
* Fix the lldb build.Rafael Espindola2013-06-261-12/+10
| | | | llvm-svn: 184948
* Remove the #define USE_CACHE since the formatters cache has been operational ↵Enrico Granata2013-06-261-23/+7
| | | | | | | | for a while now and has not caused issues that warrant disabling it Also, print the cache hits statistics if the log is in debugging mode vs. LLDB being a debug build - this should make it easier to gather useful metrics on cache success rate for real users llvm-svn: 184900
* <rdar://problem/14266578>Enrico Granata2013-06-261-3/+1
| | | | | | "command source" was not properly setting the stop-on-error option llvm-svn: 184899
* <rdar://problem/14243761>Enrico Granata2013-06-261-5/+5
| | | | | | | | | The argument to -w (--category) in type * list is a regular expression This caused unhappiness with the gnu-libstdc++ category because of the double ++ Now we check for exact textual match as-well-as regexp matching llvm-svn: 184898
* <rdar://problem/14266411>Enrico Granata2013-06-254-7/+37
| | | | | | | | | | | | The semi-unofficial way of returning a status from a Python command was to return a string (e.g. return "no such variable was found") that LLDB would pick as a clue of an error having happened This checkin changes that: - SBCommandReturnObject now exports a SetError() call, which can take an SBError or a plain C-string - script commands now drop any return value and expect the SBCommandReturnObject ("return object") to be filled in appropriately - if you do nothing, a success will be assumed If your commands were relying on returning a value and having LLDB pick that up as an error, please change your commands to SetError() through the return object or expect changes in behavior llvm-svn: 184893
* Fixed a bug in ClangASTSource where we would returnSean Callanan2013-06-251-9/+9
| | | | | | the target of a typedef when asked for a typedef. llvm-svn: 184886
* Update version sscanf to match FreeBSD release infoEd Maste2013-06-251-2/+3
| | | | | | Release strings are of the form 9.1-RELEASE-p3 or 10.0-CURRENT. llvm-svn: 184876
* Correct use of __FreeBSD_kernel__Ed Maste2013-06-251-6/+4
| | | | | | | | | | | It is defined on recent FreeBSD versions, so must not be mutually exclusive with an #elif FreeBSD block. Patch submitted by Robert Millan. Fixes PR#16447. llvm-svn: 184867
* Match printf format specifiers and argumentsEd Maste2013-06-251-2/+2
| | | | llvm-svn: 184854
* Update comment after Linux->POSIX renameEd Maste2013-06-251-2/+2
| | | | llvm-svn: 184850
* Fixed the instruction emulation so that it doesn'tSean Callanan2013-06-251-0/+6
| | | | | | | | | print to standard output as part of normal operation. <rdar://problem/14247606> llvm-svn: 184797
* <rdar://problem/14182286>Han Ming Ong2013-06-242-9/+10
| | | | | | | | Made sure that temporary object created from HarmonizeThreadIdsForProfileData() doesn’t get passed around without creating an object first. Reviewed by Greg llvm-svn: 184769
* We set the error when a breakpoint conditionSean Callanan2013-06-241-0/+1
| | | | | | | | | | | doesn't return anything; that's great. We should probably also return rather than trying to access the nonexistent return value. <rdar://problem/14009519> llvm-svn: 184765
* Sync FreeBSD files to Linux equivalents, to reduce noise in diffEd Maste2013-06-244-29/+25
| | | | | | | | | - Sort functions in the same order - Match whitespace - Remove commetned out code - Make filename in comments match filename llvm-svn: 184746
* Update comment to match class nameEd Maste2013-06-242-2/+2
| | | | llvm-svn: 184745
* Use canonical termios.h locationEd Maste2013-06-241-1/+1
| | | | llvm-svn: 184744
* Eliminate missing virtual destructor warning on FreeBSDEd Maste2013-06-241-0/+1
| | | | | | Akin to r181712 (88e529b7) of Linux/ProcessMonitor.cpp llvm-svn: 184742
* Update for Linux->POSIX renameEd Maste2013-06-241-8/+8
| | | | | | | Revision r147613 (2341d35) renamed this file with s/Linux/POSIX/, but header guards and comments were not updated to match. llvm-svn: 184741
* Using offsetof to an item within an array is an extension so mark it as such ↵Andy Gibbs2013-06-243-11/+14
| | | | | | to avoid compiler warnings. llvm-svn: 184738
* Fix some more mismatched integer types causing compiler warnings.Andy Gibbs2013-06-243-15/+15
| | | | llvm-svn: 184737
* Remember to update the m_thread_list_real after you do UpdateThreadList.Jim Ingham2013-06-221-0/+2
| | | | | | <rdar://problem/14147303> llvm-svn: 184622
* Add some useful logging for tracking thread matching problems.Jim Ingham2013-06-223-9/+42
| | | | llvm-svn: 184619
* <rdar://problem/14004410>Han Ming Ong2013-06-211-9/+0
| | | | | | Remove old GetNextThreadIndexID() from lldb llvm-svn: 184600
* <rdar://problem/13980489>Han Ming Ong2013-06-211-1/+1
| | | | | | I added scan type to ‘qGetProfileData’ previously but forgot to update the check to be a substring search. llvm-svn: 184588
* Adding two new markers to the ${var..} specifierEnrico Granata2013-06-212-0/+19
| | | | | | | - %N = show the name of the variable - %> = show the expression path of the variable llvm-svn: 184502
* In thread and frame format strings, it is now allowed to use Python ↵Enrico Granata2013-06-202-0/+232
| | | | | | | | | | | | | | | functions to generate part or all of the output text Specifically, the ${target ${process ${thread and ${frame specifiers have been extended to allow a subkeyword .script:<fctName> (e.g. ${frame.script:FooFunction}) The functions are prototyped as def FooFunction(Object,unused) where object is of the respective SB-type (SBTarget for target.script, ... and so on) This has not been implemented for ${var because it would be akin to a Python summary which is already well-defined in LLDB llvm-svn: 184500
* Don't go to the trouble of trying to figure out the implementation function ↵Jim Ingham2013-06-201-0/+8
| | | | | | | | for selectors sent to nil objects, it won't work anyway. llvm-svn: 184474
* Fixed a problem with materialization andSean Callanan2013-06-201-1/+6
| | | | | | | | | | dematerialization of registers that caused conditional breakpoint expressions not to work properly. Also added a testcase. <rdar://problem/14129252> llvm-svn: 184451
* Fixed a crasher that I encountered when looking up a virtual base class offset.Greg Clayton2013-06-201-3/+3
| | | | llvm-svn: 184390
* Unique types a bit more using the clang type to make sure we don't get ↵Greg Clayton2013-06-201-2/+8
| | | | | | multiple copies of the same type due to the debug info having multiple types that get uniqued. llvm-svn: 184388
* Implemented a types.py module that allows types to be inspected for padding.Greg Clayton2013-06-195-20/+58
| | | | | | The script was able to point out and save 40 bytes in each lldb_private::Section by being very careful where we need to have virtual destructors and also by re-ordering members. llvm-svn: 184364
* Use LLDB_INVALID_REGNUM at Mike Sartain's suggestionAndy Gibbs2013-06-191-1/+1
| | | | llvm-svn: 184342
* <rdar://problem/14005652>Enrico Granata2013-06-191-105/+2
| | | | | | Fixing a bug with the NSString data formatter where some strings would be truncated llvm-svn: 184336
OpenPOWER on IntegriCloud