diff options
author | Michael Snyder <msnyder@vmware.com> | 2002-04-30 19:01:57 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2002-04-30 19:01:57 +0000 |
commit | 1a113c93e59c09c65d8d96a7cb24a36f29b702fd (patch) | |
tree | a6a7ecd7a3066dd04b5fc450f8417e7714c1c1a9 /gdb/gnu-nat.c | |
parent | 94349e12d27695a9b218471e3ef01ad66db479b2 (diff) | |
download | gdb-1a113c93e59c09c65d8d96a7cb24a36f29b702fd.zip gdb-1a113c93e59c09c65d8d96a7cb24a36f29b702fd.tar.gz gdb-1a113c93e59c09c65d8d96a7cb24a36f29b702fd.tar.bz2 |
2002-04-30 Michael Snyder <msnyder@redhat.com>
* gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
Diffstat (limited to 'gdb/gnu-nat.c')
-rw-r--r-- | gdb/gnu-nat.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 824ee83..de4662a 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); } |