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: New scope checking patch


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


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