From 1c5f981e51948d02a7a1817e88e0749ec70d0825 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Mon, 14 Nov 2011 18:51:36 +0400 Subject: [PATCH] cleanup: dump -- Add warning on unexpected VMA Instead of simply dropping this dead code, put a warning here, just to be on a safe side. Reported-by: Pavel Emelyanov Signed-off-by: Cyrill Gorcunov --- cr-dump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cr-dump.c b/cr-dump.c index a5b203ac3..142fe09b3 100644 --- a/cr-dump.c +++ b/cr-dump.c @@ -1042,7 +1042,8 @@ static int finalize_core(pid_t pid, struct list_head *vma_area_list, struct cr_f } num_anon++; } else { - /* skip the file shared page */ + pr_warning("Unexpected VMA area found\n"); + pr_info_vma(vma_area); lseek(fd_pages, PAGE_SIZE, SEEK_CUR); } }