memory: register debugging information for dirty buffers

Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>