This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [unavailable values part 1, 15/17] print pointers with 'set print object on'


> +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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]