This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [unavailable values part 1, 15/17] print pointers with 'set print object on'
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Pedro Alves <pedro at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 8 Feb 2011 08:42:58 +0400
- Subject: Re: [unavailable values part 1, 15/17] print pointers with 'set print object on'
- References: <201102071434.55408.pedro@codesourcery.com>
> +int
> +value_entirely_available (struct value *value)
> +{
> + if (value == NULL)
> + return 1;
Does it actually happen that we call this function with a NULL value?
At first, I thought that we should "obviously" return 0, in this case,
since nothing is available, but then again, thinking about it the other
way it is equally "obvious" that no part of the given value is missing,
and therefore the value is entirely available... Hum...
--
Joel