OSDN Git Service

2001-07-04 Elena Zannoni <ezannoni@redhat.com>
authorezannoni <ezannoni>
Wed, 4 Jul 2001 18:06:02 +0000 (18:06 +0000)
committerezannoni <ezannoni>
Wed, 4 Jul 2001 18:06:02 +0000 (18:06 +0000)
* memattr.c (create_mem_region): Move n to next memory region,
to avoid infinite loop.

gdb/ChangeLog
gdb/memattr.c

index 516faac..101d468 100644 (file)
@@ -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.
 
index c973909..8e934e7 100644 (file)
@@ -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));