Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Don Howard <dhoward@redhat.com>
To: <gdb-patches@sources.redhat.com>
Subject: [Patch] Another small memattr fix.
Date: Wed, 12 Jun 2002 16:32:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.33.0206121614370.26915-100000@theotherone> (raw)


The following patch fixes a buglet involving memory regions.  

(gdb) mem 0 4 32 wo
(gdb) mem 0xfffffff0 0x100000000 32 wo
invalid memory region: low >= high


2002-06-12  Don Howard  <dhoward@redhat.com>

	* memattr.c (create_mem_region): Permit max addr+1 for upper bound
	of memory regions.


Index: gdb/memattr.c
===================================================================
RCS file: /cvs/src/src/gdb/memattr.c,v
retrieving revision 1.11
diff -p -u -w -r1.11 memattr.c
--- gdb/memattr.c       12 May 2002 04:20:05 -0000      1.11
+++ gdb/memattr.c       12 Jun 2002 23:16:20 -0000
@@ -47,7 +47,7 @@ create_mem_region (CORE_ADDR lo, CORE_AD
   struct mem_region *n, *new;

   /* lo == hi is a useless empty region */
-  if (lo >= hi)
+  if (lo > hi-1)
     {
       printf_unfiltered ("invalid memory region: low >= high\n");


-- 
dhoward@redhat.com
gdb engineering





             reply	other threads:[~2002-06-12 23:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-12 16:32 Don Howard [this message]
2002-06-12 19:40 ` Andrew Cagney
2002-06-13 10:33   ` Don Howard
2002-06-14 11:28 ` Kevin Buettner
2002-06-14 12:44   ` Don Howard
2002-06-14 13:00     ` Kevin Buettner
2002-06-14 13:30       ` Andrew Cagney
2002-06-14 14:19         ` Don Howard
2002-06-15 18:28           ` Andrew Cagney
2002-06-17 10:47             ` Don Howard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.33.0206121614370.26915-100000@theotherone \
    --to=dhoward@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox