Starting from the default size buffer, we try to read the memory map
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 22 Jul 2014 16:06:09 +0000 (11:06 -0500)
committerBill Williams <bill@cs.wisc.edu>
Tue, 22 Jul 2014 16:06:09 +0000 (11:06 -0500)
commitf7debc8937b5f2bcad86f6643ed328e8bd21f836
tree5239741460ccf0c30eef9e0b1d14c83cd059c02c
parent5ca55bca4eb675eb7f296511889313eac2e0a328
Starting from the default size buffer, we try to read the memory map
without allocating new space. If we reach the end of the buffer before
the end of the file, we allocate a buffer twice as big and try again.
When we reach the MAX_MAP_SIZE we return an error to the calling
function.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
dyninstAPI_RT/src/RTheap-linux.c