summaryrefslogtreecommitdiff
path: root/gdb/memattr.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2001-07-04 18:06:02 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2001-07-04 18:06:02 +0000
commit88c657ce73bb0fe67c9f7aae35570fca61dc75c6 (patch)
tree131e91c4580f3e738e2b4416123ac17fca9fba8a /gdb/memattr.c
parentee8c7413eacc90e8ea87b74911e1db6854ac9718 (diff)
downloadgdb-88c657ce73bb0fe67c9f7aae35570fca61dc75c6.tar.gz
2001-07-04 Elena Zannoni <ezannoni@redhat.com>
* memattr.c (create_mem_region): Move n to next memory region, to avoid infinite loop.
Diffstat (limited to 'gdb/memattr.c')
-rw-r--r--gdb/memattr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/memattr.c b/gdb/memattr.c
index c973909dcd6..8e934e7a2b6 100644
--- a/gdb/memattr.c
+++ b/gdb/memattr.c
@@ -71,6 +71,7 @@ create_mem_region (CORE_ADDR lo, CORE_ADDR hi,
printf_unfiltered ("overlapping memory region\n");
return NULL;
}
+ n = n->next;
}
new = xmalloc (sizeof (struct mem_region));