Re: New scope checking patch

Eli Zaretskii
2008-07-28T03:18:58Z

> Date: Mon, 28 Jul 2008 00:45:03 +0100
> From: "Rob Quill" <rob.quill@gmail.com>
> Cc: "Jim Blandy" <jimb@red-bean.com>, gdb-patches@sourceware.org
>
> This patch (like the remove deprecated_set_value_type one) has been a
> long time coming. Please find attached what I believe should be the
> final version of this patch.

Thanks.

> --- gdb/NEWS 18 Jul 2008 20:55:32 -0000 1.282
> +++ gdb/NEWS 27 Jul 2008 23:02:48 -0000
> @@ -3,6 +3,12 @@
>
> *** Changes since GDB 6.8
>
> +* New expression type
> +
> +$in_scope(...)
> + The value of this expression is 1 if the variable within the
> + parentheses is within the current scope, 0 otherwise.

This is okay.

> +provided that you check if it is in scope before you test it's value. The operator
^^^^
"its"

Otherwise, okay.