2001-07-04 Elena Zannoni <ezannoni@redhat.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Wed, 4 Jul 2001 18:06:02 +0000 (18:06 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
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 516faac80dcc24a4ec8daae58cc6ed002efbf462..101d468a590d21e38ca8f13219edc5245c0376e8 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 c973909dcd6efd3165417497e6b7fc345f029066..8e934e7a2b6d81376c0e2d732d6af82621339f82 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));
This page took 0.039846 seconds and 4 git commands to generate.