From cb26eb6868be3d7f5d40a227c8ae678d73044abe Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 28 Jun 2011 10:21:34 +0000 Subject: * fhandler_process.cc (heap_info::fill_if_match): Rename info to note that this heap is a Windows heap. (format_process_maps): Print info about application heap. --- winsup/cygwin/ChangeLog | 6 ++++++ winsup/cygwin/fhandler_process.cc | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index bd87fd394..5e7b077b1 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2011-06-28 Corinna Vinschen + + * fhandler_process.cc (heap_info::fill_if_match): Rename info to + note that this heap is a Windows heap. + (format_process_maps): Print info about application heap. + 2011-06-24 Corinna Vinschen * fhandler_console.cc (fhandler_console::read): Don't generate ^@ on diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc index 71a31ac1a..220d62456 100644 --- a/winsup/cygwin/fhandler_process.cc +++ b/winsup/cygwin/fhandler_process.cc @@ -668,7 +668,7 @@ struct heap_info for (heap *h = heap_vm_chunks; h; h = h->next) if (base >= h->base && base < h->end) { - char *p = dest + __small_sprintf (dest, "[heap %ld", h->heap_id); + char *p = dest + __small_sprintf (dest, "[win heap %ld", h->heap_id); if (!(h->flags & HEAP_FLAG_NONDEFAULT)) p = stpcpy (p, " default"); if ((h->flags & HEAP_FLAG_SHAREABLE) && (type & MEM_MAPPED)) @@ -976,6 +976,8 @@ format_process_maps (void *data, char *&destbuf) strcpy (posix_modname, "[cygwin-user-shared]"); else if (cur.abase == (char *) *proc_pinfo) strcpy (posix_modname, "[procinfo]"); + else if (cur.abase == cygheap->user_heap.base) + strcpy (posix_modname, "[heap]"); else posix_modname[0] = 0; } -- cgit v1.2.3