From 1a113c93e59c09c65d8d96a7cb24a36f29b702fd Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 30 Apr 2002 19:01:57 +0000 Subject: [PATCH] 2002-04-30 Michael Snyder * gnu-nat.c (gnu_find_memory_regions): Fix merge botch. --- gdb/ChangeLog | 4 ++++ gdb/gnu-nat.c | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0c2b2feee2..561090ea32 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2002-04-30 Michael Snyder + + * gnu-nat.c (gnu_find_memory_regions): Fix merge botch. + 2002-04-29 Elena Zannoni * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR. diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 824ee83899..de4662a7f8 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -2536,6 +2536,13 @@ gnu_find_memory_regions (int (*func) (CORE_ADDR, last_protection = protection; } } + /* Report the final region. */ + if (last_region_end > last_region_address && last_protection != VM_PROT_NONE) + (*func) (last_region_address, last_region_end - last_region_address, + last_protection & VM_PROT_READ, + last_protection & VM_PROT_WRITE, + last_protection & VM_PROT_EXECUTE, + data); }