From: Daniel Jacobowitz <drow@false.org>
To: Vladimir Prus <ghost@cs.msu.su>
Cc: gdb-patches@sources.redhat.com
Subject: Re: Check memory accesses
Date: Sun, 19 Nov 2006 00:05:00 -0000 [thread overview]
Message-ID: <20061119000516.GD28256@nevyn.them.org> (raw)
In-Reply-To: <ejf0t7$s0m$1@sea.gmane.org>
On Wed, Nov 15, 2006 at 03:24:07PM +0300, Vladimir Prus wrote:
> + /* region->hi means there's no upper bound. */
> + if (memaddr + len < region->hi || region->hi == 0)
"region->hi == 0", you mean (in the comment)? Also, two spaces after
period.
> +++ gdb/memattr.c (/patches/gdb/memcheck/gdb_mainline) (revision 2094)
> @@ -29,6 +29,7 @@
> #include "language.h"
> #include "vec.h"
> #include "gdb_string.h"
> +#include "gdb_locale.h"
Shouldn't need this? It's part of defs.h (deliberately, since
everywhere should use _()).
> if (m->enabled_p == 1)
> {
> + /* If address is in memory return, return that memory range. */
I think you mean "if the adderss is in the memory region".
> + /* When no memory map is defined at all, we always set 'default_mem_attrib',
> + so that we do not make the all memory inaccessible for targets that don't
> + provide a memory map. */
Always return, rather than "always set"? Also, "make all memory".
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2006-11-19 0:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-09 20:36 Vladimir Prus
2006-11-09 21:25 ` Eli Zaretskii
2006-11-15 12:24 ` Vladimir Prus
2006-11-15 18:20 ` Eli Zaretskii
2006-11-21 16:51 ` Vladimir Prus
2006-11-21 17:03 ` Daniel Jacobowitz
2006-11-21 20:03 ` Eli Zaretskii
2006-11-19 0:05 ` Daniel Jacobowitz [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=20061119000516.GD28256@nevyn.them.org \
--to=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
--cc=ghost@cs.msu.su \
/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