This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [python] [patch] PR python/12656 (API for special blocks)
>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:
Phil> +@defun Block.is_global ()
Phil> +@defun Block.is_static ()
Tom> Why are these methods rather than attributes?
Phil> Because is_valid is a method in py-block.c, and I decided to continue
Phil> the is_* APIs to be methods. It confuses my *why* is_valid is a method
Phil> over an attribute, too.
Just history.
I think these should be attributes. Value.is_optimized_out is one.
Symbol has various is_* attributes.
Tom