From 2ed3d0b5f147dfc670fba3664d329c38af9611ee Mon Sep 17 00:00:00 2001 From: Elena Zannoni Date: Wed, 4 Jul 2001 18:06:02 +0000 Subject: [PATCH] 2001-07-04 Elena Zannoni * memattr.c (create_mem_region): Move n to next memory region, to avoid infinite loop. --- gdb/ChangeLog | 3 +++ gdb/memattr.c | 1 + 2 files changed, 4 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 516faac80dc..101d468a590 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2001-07-04 Elena Zannoni + * 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 c973909dcd6..8e934e7a2b6 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)); -- 2.30.2