From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org, Tom Tromey <tromey@redhat.com>
Subject: Re: [unavailable values part 1, 01/17] base support for unavailable value contents
Date: Mon, 14 Feb 2011 17:28:00 -0000 [thread overview]
Message-ID: <20110214160002.GA14664@host1.dyn.jankratochvil.net> (raw)
In-Reply-To: <201102141259.11583.pedro@codesourcery.com>
On Mon, 14 Feb 2011 13:59:11 +0100, Pedro Alves wrote:
> On Monday 14 February 2011 11:59:19, Jan Kratochvil wrote:
> > On Thu, 10 Feb 2011 20:30:26 +0100, Pedro Alves wrote:
> > > +static int
> > > +ranges_contain_p (VEC(range_s) *ranges, int offset, int length)
> >
> > Couldn't even this function stick with the `overlap' term?
>
> I guess it could. There's already a ranges_overlap function
> though. I'm open to concrete suggestions, though IMO this
> isn't worth the bother.
mem_ranges_list_overlaps?
Contrary to:
mem_ranges_overlap (CORE_ADDR start1, int len1, CORE_ADDR start2, int len2)
> If we switch the logic, we need to always allocate the VEC with a single
> range covering the whole contents, and then punch holes as we
> find them. As that's more wasteful in terms of memory, I opted
> for the current logic. Or maybe we could special case the empty
> case as meaning all-available? It might work.
I agree but I do not consider this difference so important.
> > it would also enable storing discontiguous memory with
> > a value.
>
> Can't see why you can't keep the "unavailable" ranges logic
> even if we store discontiguous memory in values.
It is questionable if it is the same. I thought that any memory which is not
stored is <unavailable>. Another look may be the memory is of three kinds:
* stored/available
* marked as <unavailable>
* not stored, internal GDB error if an access is attempted
In the three-kinds model you are right these two features are unrelated.
Anyway your patchset is checked in and I do not plan to place much new
features on top of archer-jankratochvil-vla before it gets merged in some
form.
> I haven't looked at your code yet though.
archer-jankratochvil-vla currently does not contain any discontiguous memory
ranges code. I mentioned it as it could benefit from such a feature.
Thanks,
Jan
next prev parent reply other threads:[~2011-02-14 16:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-07 14:28 Pedro Alves
2011-02-07 15:47 ` Tom Tromey
2011-02-10 18:46 ` Pedro Alves
2011-02-10 19:30 ` Pedro Alves
2011-02-14 11:59 ` Jan Kratochvil
2011-02-14 13:18 ` Pedro Alves
2011-02-14 17:28 ` Jan Kratochvil [this message]
2011-02-11 21:11 ` Tom Tromey
2011-02-14 11:45 ` Pedro Alves
2011-02-08 4:17 ` Joel Brobecker
2011-02-10 18:53 ` Pedro Alves
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=20110214160002.GA14664@host1.dyn.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.com \
--cc=tromey@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