[unavailable values part 1, 17/17] unavailable vptr / virtual base offset

Pedro Alves pedro@codesourcery.com
Tue Mar 22 16:29:00 GMT 2011


On Monday 07 February 2011 16:20:37, Tom Tromey wrote:
> >>>>> "Pedro" == Pedro Alves <pedro@codesourcery.com> writes:
> 
> Pedro> The patch adds a new ERROR_NOT_AVAILABLE error, thrown whenever
> Pedro> something wants to get at a value's contents with value_contents()
> Pedro> and makes baseclass_offset callers that care to handle errors
> Pedro> getting at the base class offset gracefully catch the error.
> 
> This seems like something we could meaningfully expose to Python.
> That is, we could expose this as a separate exception class, and update
> gdb.Value to throw it and to expose the needed availability API.
> 
> Could you file a bug report about this?

This is PR12600 now.

-- 
Pedro Alves



More information about the Gdb-patches mailing list