aboutsummaryrefslogtreecommitdiff
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
commit2ed3d0b5f147dfc670fba3664d329c38af9611ee (patch)
tree1611c6f3acc710c6d42737d07c1eba1f7d11bf05 /gdb/memattr.c
parent80629b1b75bc2a202fa3523daca89543e656d1a5 (diff)
downloadgdb-2ed3d0b5f147dfc670fba3664d329c38af9611ee.zip
gdb-2ed3d0b5f147dfc670fba3664d329c38af9611ee.tar.gz
gdb-2ed3d0b5f147dfc670fba3664d329c38af9611ee.tar.bz2
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 c973909..8e934e7 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));