Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Small memattr fix
@ 2002-05-30 18:10 Don Howard
  2002-05-31 11:55 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Don Howard @ 2002-05-30 18:10 UTC (permalink / raw)
  To: gdb-patches



The following patch fixes gdb's bogus complaint that 

	mem 0x0 0x04 ...

overlaps with 

	mem 0x4 0x08 ...



2002-05-30  Don Howard  <dhoward@redhat.com>

	* memattr.c (create_mem_region): Don't include upper address in
	test for overlapping mem regions.

Index: memattr.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/memattr.c,v
retrieving revision 2.5.22.1
diff -p -u -w -r2.5.22.1 memattr.c
--- memattr.c   2002/02/05 00:31:36     2.5.22.1
+++ memattr.c   2002/05/31 00:55:20
@@ -55,8 +55,8 @@ create_mem_region (CORE_ADDR lo, CORE_AD
   while (n)
     {
       /* overlapping node */
-      if ((lo >= n->lo && lo <= n->hi) ||
-         (hi >= n->lo && hi <= n->hi))
+      if ((lo >= n->lo && lo < n->hi) ||
+         (hi > n->lo && hi <= n->hi))
        {
          printf_unfiltered ("overlapping memory region\n");
          return NULL;


-- 
dhoward@redhat.com
gdb engineering



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-31 17:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-30 18:10 [RFA] Small memattr fix Don Howard
2002-05-31 11:55 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox