This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake_minimum_required(VERSION 2.8) | |
| SET(DynamoRIO_DIR "/home/mitake/dynamorio/exports/cmake") | |
| find_package(DynamoRIO) | |
| add_library(sample SHARED sample.c) | |
| configure_DynamoRIO_client(sample) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define -mem-heap-dump-chunk | |
| printf "%#016x: ", $mem_addr | |
| printf "%016lu %016lu %#02x ", ((long *)$mem_addr)[0], ((long *)$mem_addr)[1] & ~3, ((long*)$mem_addr)[1] & 3 | |
| printf "%016x %016x\n", ((long *)$mem_addr)[2], ((long *)$mem_addr)[3] | |
| set $mem_addr = $mem_addr + ((long *)$mem_addr)[1] & ~3 | |
| end | |
| document -mem-heap-dump-chunk | |
| !!! FOR INTERNAL USE ONLY - DO NOT CALL !!! | |
| end |