diff options
| author | Vedant Kumar <vsk@apple.com> | 2019-08-22 18:51:03 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2019-08-22 18:51:03 +0000 |
| commit | cc62e38d258f414c196b566374c606e83a85a034 (patch) | |
| tree | b1d2dd0e6a3f7a80c1cd5a3856214ded7e382f9c /lldb/examples | |
| parent | 9148302a2ae5ac6e5d69ae84042361889247ce64 (diff) | |
| download | bcm5719-llvm-cc62e38d258f414c196b566374c606e83a85a034.tar.gz bcm5719-llvm-cc62e38d258f414c196b566374c606e83a85a034.zip | |
[heap.py] Add missing declaration for malloc_get_all_zones
The evaluation context isn't guaranteed to have this declaration.
Fixes "error: use of undeclared identifier 'malloc_get_all_zones'" bugs.
llvm-svn: 369684
Diffstat (limited to 'lldb/examples')
| -rw-r--r-- | lldb/examples/darwin/heap_find/heap.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/examples/darwin/heap_find/heap.py b/lldb/examples/darwin/heap_find/heap.py index 0c8744ff15f..7753d3ab74b 100644 --- a/lldb/examples/darwin/heap_find/heap.py +++ b/lldb/examples/darwin/heap_find/heap.py @@ -129,6 +129,7 @@ typedef struct malloc_zone_t { void *reserved1[12]; struct malloc_introspection_t *introspect; } malloc_zone_t; +kern_return_t malloc_get_all_zones(task_t task, memory_reader_t reader, vm_address_t **addresses, unsigned *count); memory_reader_t task_peek = [](task_t task, vm_address_t remote_address, vm_size_t size, void **local_memory) -> kern_return_t { *local_memory = (void*) remote_address; return KERN_SUCCESS; |

