From: Andrew Cagney <ac131313@cygnus.com>
To: Don Howard <dhoward@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Small memattr fix
Date: Fri, 31 May 2002 11:55:00 -0000 [thread overview]
Message-ID: <3CF7B10C.4050805@cygnus.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0205301759350.8589-100000@theotherone>
> The following patch fixes gdb's bogus complaint that
>
> mem 0x0 0x04 ...
>
> overlaps with
>
> mem 0x4 0x08 ...
Hmm, checking:
http://sources.redhat.com/gdb/current/onlinedocs/gdb_9.html#IDX375
it indicates that the upper bound is exclusive (see under `info mem') so
yes definitly, good catch.
Perhaphs [separate problem] the doco should mention this earlier and
more clearly?
enjoy,
Andrew
> 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;
prev parent reply other threads:[~2002-05-31 17:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-30 18:10 Don Howard
2002-05-31 11:55 ` Andrew Cagney [this message]
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=3CF7B10C.4050805@cygnus.com \
--to=ac131313@cygnus.com \
--cc=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