Home
last modified time | relevance | path

Searched refs:malloc_ptr (Results 1 – 2 of 2) sorted by relevance

/tools/security/gdb/heap_print/test/
Dsample_heap_test.cc10 int *malloc_ptr = (int *)malloc(n * sizeof(int)); in main() local
12 if (malloc_ptr != NULL) in main()
17 malloc_ptr[i] = i + 1; in main()
21 malloc_ptr = (int *)realloc(malloc_ptr, new_n * sizeof(int)); in main()
24 malloc_ptr[i] = i + 1; in main()
27 free(malloc_ptr); in main()
/tools/security/gdb/heap_print/
DREADME.md7 (gdb) print_ptr malloc_ptr
37 To handle pointer offset, for eg, (gdb) print_ptr malloc_ptr + 3