From: Jim Blandy <jimb@codesourcery.com>
To: "Pierre Muller" <muller@ics.u-strasbg.fr>
Cc: "'Joel Brobecker'" <brobecker@adacore.com>,
<gdb-patches@sourceware.org>
Subject: Re: [RFA] Add handling of null Ada arrays
Date: Wed, 09 Jan 2008 19:05:00 -0000 [thread overview]
Message-ID: <m3ir226crd.fsf@codesourcery.com> (raw)
In-Reply-To: <000401c852a1$0bdb1aa0$23914fe0$@u-strasbg.fr> (Pierre Muller's message of "Wed, 9 Jan 2008 10:21:42 +0100")
"Pierre Muller" <muller at ics.u-strasbg.fr> writes:
> At least in pascal language it is quite
> common to use things like
> type
> BigArray = Array [1..0xffffffff] of integer;
> if you want to be sure that you will never get into
> troubles due to range checking...
>
> Of course you cannot allocate a pointer to such a type
> directly, and it would eat up a lot of memory space.
> But this kind of types always gave problems
> inside gdb, because when you wanted to look at
> the value gdb would try to copy the whole array...
> even if cases where it would only display the first elements,
> which is kind of silly, no?
Interesting. I see print_command_1 calls record_latest_value, which
says:
/* We don't want this value to have anything to do with the inferior anymore.
In particular, "set $1 = 50" should not affect the variable from which
the value was taken, and fast watchpoints should be able to assume that
a value on the value history never changes. */
if (value_lazy (val))
value_fetch_lazy (val);
If GDB were to support those types of values nicely, how would GDB
save such values in the value history without reading the whole thing?
Even if that could be addressed, the common val_print routine expects
to have the whole object in memory. That's a shame.
next prev parent reply other threads:[~2008-01-09 19:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-09 6:34 Joel Brobecker
2008-01-09 9:22 ` Pierre Muller
2008-01-09 17:17 ` Joel Brobecker
2008-01-09 19:05 ` Jim Blandy [this message]
2008-01-09 12:47 ` Daniel Jacobowitz
2008-01-09 17:07 ` Joel Brobecker
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=m3ir226crd.fsf@codesourcery.com \
--to=jimb@codesourcery.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=muller@ics.u-strasbg.fr \
/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