This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] memattr.c infinite loop
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH] memattr.c infinite loop
- From: Elena Zannoni <ezannoni at cygnus dot com>
- Date: Wed, 4 Jul 2001 14:05:59 -0400
- CC: jtc at redback dot com
I am checking this one in as well. Hope it's Ok with you JT.
Elena
2001-07-04 Elena Zannoni <ezannoni@redhat.com>
* memattr.c (create_mem_region): Move n to next memory region,
to avoid infinite loop.
Index: memattr.c
===================================================================
RCS file: /cvs/src/src/gdb/memattr.c,v
retrieving revision 1.4
diff -u -p -r1.4 memattr.c
--- memattr.c 2001/07/04 17:59:02 1.4
+++ memattr.c 2001/07/04 18:01:34
@@ -71,6 +71,7 @@ create_mem_region (CORE_ADDR lo, CORE_AD
printf_unfiltered ("overlapping memory region\n");
return NULL;
}
+ n = n->next;
}
new = xmalloc (sizeof (struct mem_region));