Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
lldb
/
refs/heads/int/n/fp2
/
examples
/
darwin
/
heap_find
5b57823
<rdar://problem/13416800>
by Greg Clayton
· 11 years ago
3801be7
Using __package__ and __name__ seems redundant - __name__ should always contain the fully qualified module name
by Enrico Granata
· 11 years ago
ad72e52
Allow the target to give out the size of the red zone for given ABIs.
by Greg Clayton
· 11 years ago
549294a
Added the ability to search segments for data. Currently __TEXT, __LINKEDIT and __PAGEZERO are excluded.
by Greg Clayton
· 11 years ago
849acc8
expressions + C++11 lambdas == cooooool!!!
by Greg Clayton
· 11 years ago
4690358
<rdar://problem/13011717>
by Greg Clayton
· 11 years ago
eea1f98
<rdar://problem/13011717>
by Greg Clayton
· 11 years ago
130a312
Checking in fixes that I used to track down a leaking module. The heap 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.
by Greg Clayton
· 12 years ago
a936c6e
Don't allow an extra entry to slip into the heap results and also add a better output format
by Greg Clayton
· 12 years ago
393fc5f
Added "heap" command to get info on all allocations on the heap. Currently only objective C objects are supported since they are easy to detect.
by Greg Clayton
· 12 years ago
a48bf37
Playing around with "objc_refs" over the weekend and improved it to work on 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.
by Greg Clayton
· 12 years ago
e820139
Don't allocate memory when enumerting stack. We now have fixed size buffers to avoid this issue.
by Greg Clayton
· 12 years ago
aaf7fad
Improved "objc_refs" a bit to be able to find all instances of a class'
by Greg Clayton
· 12 years ago
85df60c
<rdar://problem/12069589>
by Greg Clayton
· 12 years ago
ab20f29
Added a new "objc_refs" command that will track down all allocations on the 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.
by Greg Clayton
· 12 years ago
4c5c429
Added the ability to search through sections for pointer data.
by Greg Clayton
· 12 years ago
0d0f56d
Make const result value objects able to return dynamic types.
by Greg Clayton
· 12 years ago
0cae063
Check the return status of the make command.
by Greg Clayton
· 12 years ago
073d595
Remove dependency on internal header file.
by Greg Clayton
· 12 years ago
07f258f
Remove comments and an extra print statement.
by Greg Clayton
· 12 years ago
bf47965
More fixes to "malloc_history".
by Greg Clayton
· 12 years ago
6f446f3
"--stack-history" now works if you have MallocStackLogggingNoCompact defined in your app's environment.
by Greg Clayton
· 12 years ago
f4e3044
Fixed a build error.
by Greg Clayton
· 12 years ago
7a24576
Added the ability to get the stack history for a malloc block. This is a work in progress. Checking this in so I can work on it some more.
by Greg Clayton
· 12 years ago
3e33979
Make the libheap.dylib build into a consistent temp directory so it can be reused between lldb invocations. Also add the module name into the directory path that is used to store the target triple specific build of libheap.dylib.
by Greg Clayton
· 12 years ago
1dae6f3
Remove the "-x" from the finish-swig-Python-LLDB.sh shell options so it doesn't print out all of the commands when executing the shell script.
by Greg Clayton
· 12 years ago
6f2f0ab
Now that we have an LLDB package, make the "lldb.macosx.crashlog" module work with all of the new module paths.
by Greg Clayton
· 12 years ago
a666550
Remove unneeded files.
by Greg Clayton
· 12 years ago
aa0489c
Move the source and Makefile into a directory so it will be easier to install.
by Greg Clayton
· 12 years ago
f4c2c68
Make the Makefile stand alone.
by Greg Clayton
· 12 years ago
9098fee
Added code to automatically load the libheap.dylib when ptr_refs, cstr_refs or malloc_info are called. If MallocStackLogging is enabled, then you can now use --stack to dump the backtrace of the code that allocated each malloc block.
by Greg Clayton
· 12 years ago
93e5ba5
Added a --memory option to allow dumping the matching malloc block memory with a default format that makes sense, or that format can be overridden with the --format option.
by Greg Clayton
· 12 years ago
f5902cb
Fixed some expression issues after switching to void * args.
by Greg Clayton
· 12 years ago
bff7841
A few tweaks done to the heap.py in me free time where we now have:
by Greg Clayton
· 12 years ago
9666644
Cleaned up the code and we now also dump the dynamic object for the malloc block. Using this on the lldb/test/lang/objc/foundation test we can see this in action:
by Greg Clayton
· 12 years ago
466ea1f
Get rid of absolute path in "process load" command.
by Greg Clayton
· 12 years ago
e93e24f
Added a new "heap.py" module that adds a new command line command that can find values on the heap and print out the dynamic type of the malloc block that contains the data. I will be modifying this a bit more to tweak the output and make the output more useful.
by Greg Clayton
· 12 years ago
1629856
Added more documentation in the header file to explain how to use the results that are found by the function calls to find_pointer_in_heap().
by Greg Clayton
· 12 years ago
a59bc3f
Fixed head_find to compile again.
by Greg Clayton
· 12 years ago
3508c38
<rdar://problem/10103468>
by Greg Clayton
· 12 years ago
8f83b75
Add some usage documentation to the top of the source file.
by Greg Clayton
· 12 years ago
824da9b
Added a new tool that can be loaded into a user space darwin application and allows you
by Greg Clayton
· 12 years ago