'Dump process memory from start to end
Args:
- start: start address (Int)
- end: end address (Int)
Returns:
- memory content (raw bytes)'

def dumpmem(self, start, end):

    mem = None
    logfd = tmpfile(is_binary_file=True)
    logname = logfd.name
    out = self.execute_redirect(('dump    memory    %s    0x%x    0x%x' % (logname, start, end)))
    if (out is None):
        return None
    else:
        logfd.flush()
        mem = logfd.read()
        logfd.close()
    return mem
