summaryrefslogtreecommitdiff
path: root/gdb/gnu-nat.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2002-04-30 21:12:30 +0000
committerMichael Snyder <msnyder@specifix.com>2002-04-30 21:12:30 +0000
commit40b175a8db502be52ceb09af59a3a45cad551fdd (patch)
tree997998a33febdac85721d32c6fa42be84aea7fc4 /gdb/gnu-nat.c
parent51114a49c37195be2656570fd536cc448dbe43d3 (diff)
downloadgdb-40b175a8db502be52ceb09af59a3a45cad551fdd.tar.gz
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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index de4662a7f8e..a4b8020a04c 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -2536,6 +2536,7 @@ 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,
@@ -2543,6 +2544,8 @@ gnu_find_memory_regions (int (*func) (CORE_ADDR,
last_protection & VM_PROT_WRITE,
last_protection & VM_PROT_EXECUTE,
data);
+
+ return 0;
}