summaryrefslogtreecommitdiffstats
path: root/lldb/examples/darwin/heap_find/heap/heap_find.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [NFC] Remove ASCII lines from commentsJonas Devlieghere2019-04-101-36/+0
| | | | | | | | | | | | | | | | | | | | | | | A lot of comments in LLDB are surrounded by an ASCII line to delimit the begging and end of the comment. Its use is not really consistent across the code base, sometimes the lines are longer, sometimes they are shorter and sometimes they are omitted. Furthermore, it looks kind of weird with the 80 column limit, where the comment actually extends past the line, but not by much. Furthermore, when /// is used for Doxygen comments, it looks particularly odd. And when // is used, it incorrectly gives the impression that it's actually a Doxygen comment. I assume these lines were added to improve distinguishing between comments and code. However, given that todays editors and IDEs do a great job at highlighting comments, I think it's worth to drop this for the sake of consistency. The alternative is fixing all the inconsistencies, which would create a lot more churn. Differential revision: https://reviews.llvm.org/D60508 llvm-svn: 358135
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* Fix/unify the spelling of Objective-C.Adrian Prantl2018-06-131-2/+2
| | | | llvm-svn: 334614
* *** This commit represents a complete reformatting of the LLDB source codeKate Stone2016-09-061-815/+655
| | | | | | | | | | | | | | | | | | | | | | | *** to conform to clang-format’s LLVM style. This kind of mass change has *** two obvious implications: Firstly, merging this particular commit into a downstream fork may be a huge effort. Alternatively, it may be worth merging all changes up to this commit, performing the same reformatting operation locally, and then discarding the merge for this particular commit. The commands used to accomplish this reformatting were as follows (with current working directory as the root of the repository): find . \( -iname "*.c" -or -iname "*.cpp" -or -iname "*.h" -or -iname "*.mm" \) -exec clang-format -i {} + find . -iname "*.py" -exec autopep8 --in-place --aggressive --aggressive {} + ; The version of clang-format used was 3.9.0, and autopep8 was 1.2.4. Secondly, “blame” style tools will generally point to this commit instead of a meaningful prior commit. There are alternatives available that will attempt to look through this change and find the appropriate prior commit. YMMV. llvm-svn: 280751
* Fix typos.Bruce Mitchener2015-07-221-4/+4
| | | | | | | | | | | | Summary: Fix a bunch of typos. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11386 llvm-svn: 242856
* Fix a variety of typos.Bruce Mitchener2015-06-181-5/+5
| | | | | | No functional change. llvm-svn: 239995
* <rdar://problem/13011717>Greg Clayton2013-01-191-1/+4
| | | | | | Fixed a compilation error that occurs when "lldb.macosx.heap" is imported and "ptr_refs" is used. llvm-svn: 172876
* <rdar://problem/13011717> Greg Clayton2013-01-151-1/+1
| | | | | | Fixed a compilation error where NULL was being assigned to a uint. llvm-svn: 172566
* Checking in fixes that I used to track down a leaking module. The heap ↵Greg Clayton2012-10-081-17/+92
| | | | | | module can now search the vm regions with the --vm-regions options to any of the heap functions. This is currently slow and often will time out when run on a large program since our user expression timeout is set to 500000 usec. We need to add an API to LLDB where we can specify the timeout for an expression. llvm-svn: 165437
* Don't allow an extra entry to slip into the heap results and also add a ↵Greg Clayton2012-09-121-6/+5
| | | | | | better output format llvm-svn: 163675
* Added "heap" command to get info on all allocations on the heap. Currently ↵Greg Clayton2012-09-111-18/+92
| | | | | | only objective C objects are supported since they are easy to detect. llvm-svn: 163637
* Playing around with "objc_refs" over the weekend and improved it to work on ↵Greg Clayton2012-09-101-34/+252
| | | | | | a large ObjC program without running into expression timeouts. Now we get a full list of ObjC classes using a runtime function and then qsort the result. Also added code that can count all instances of each ObjC on the heap and also the total byte sizes for the object allocations. llvm-svn: 163520
* Don't allocate memory when enumerting stack. We now have fixed size buffers ↵Greg Clayton2012-09-081-61/+147
| | | | | | to avoid this issue. llvm-svn: 163441
* Improved "objc_refs" a bit to be able to find all instances of a class'Greg Clayton2012-09-041-6/+119
| | | | | | | superclasses on top of finding the exact class. The current attempt is still too slow, but it lays the groundwork. llvm-svn: 163135
* <rdar://problem/12069589>Greg Clayton2012-09-011-6/+2
| | | | | | | | Fixed an issue where not all text would always be seen when running any of the functions in heap.py in Xcode. Now we put the text directly into the command result object and skip STDIO since we have issues with STDIO right now in python scripts. Also fixed an issue with the "--stack-history" option where MallocStackLoggingNoCompact was assumed to have to be enabled... It doesn't, just MallocStackLogging. llvm-svn: 163042
* Added a new "objc_refs" command that will track down all allocations on the ↵Greg Clayton2012-08-111-10/+13
| | | | | | heap that have the "isa" for the objective C class at offset zero. This will need to be improved to deal with KVO classes, but it is a start. It also disallows looking up a pointer value of zero since that would return way too many matches. llvm-svn: 161724
* Added the ability to search through sections for pointer data.Greg Clayton2012-07-111-0/+27
| | | | llvm-svn: 160083
* Remove dependency on internal header file.Greg Clayton2012-06-271-4/+72
| | | | llvm-svn: 159283
* More fixes to "malloc_history".Greg Clayton2012-05-111-13/+34
| | | | llvm-svn: 156605
* "--stack-history" now works if you have MallocStackLogggingNoCompact defined ↵Greg Clayton2012-05-101-1/+1
| | | | | | in your app's environment. llvm-svn: 156588
* Fixed a build error.Greg Clayton2012-05-101-2/+2
| | | | llvm-svn: 156586
* Added the ability to get the stack history for a malloc block. This is a ↵Greg Clayton2012-05-101-0/+56
| | | | | | work in progress. Checking this in so I can work on it some more. llvm-svn: 156584
* Move the source and Makefile into a directory so it will be easier to install.Greg Clayton2012-04-251-0/+332
llvm-svn: 155523
OpenPOWER on IntegriCloud