diff options
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/memattr.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 516faac..101d468 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2001-07-04 Elena Zannoni <ezannoni@redhat.com> + * memattr.c (create_mem_region): Move n to next memory region, + to avoid infinite loop. + * memattr.h: Add copyright statement. * memattr.c: Ditto. 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)); |