[Lldb-commits] [lldb] r369684 - [heap.py] Add missing declaration for malloc_get_all_zones
Vedant Kumar via lldb-commits
lldb-commits at lists.llvm.org
Thu Aug 22 11:51:03 PDT 2019
Author: vedantk
Date: Thu Aug 22 11:51:03 2019
New Revision: 369684
URL: http://llvm.org/viewvc/llvm-project?rev=369684&view=rev
Log:
[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.
Modified:
lldb/trunk/examples/darwin/heap_find/heap.py
Modified: lldb/trunk/examples/darwin/heap_find/heap.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/darwin/heap_find/heap.py?rev=369684&r1=369683&r2=369684&view=diff
==============================================================================
--- lldb/trunk/examples/darwin/heap_find/heap.py (original)
+++ lldb/trunk/examples/darwin/heap_find/heap.py Thu Aug 22 11:51:03 2019
@@ -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;
More information about the lldb-commits
mailing list