This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: New scope checking patch
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Rob Quill <rob dot quill at gmail dot com>
- Cc: jimb at red-bean dot com, gdb-patches at sourceware dot org
- Date: Mon, 28 Jul 2008 06:17:19 +0300
- Subject: Re: New scope checking patch
- References: <baf6008d0711120829l3c0201aakf477dd4d6cfd440e@mail.gmail.com> <m3hchcm7x5.fsf@codesourcery.com> <baf6008d0801171935s225a9dd2q664953b53bc68401@mail.gmail.com> <m3r6gf6kcz.fsf@codesourcery.com> <baf6008d0801181443s5321e5d5ud1c935aa8487a549@mail.gmail.com> <m34pda7ira.fsf@codesourcery.com> <baf6008d0801300405i47646b05pdb799d32ab71e005@mail.gmail.com> <u1w7zxjid.fsf@gnu.org> <8f2776cb0801301557t2e265b62u56d6df7cbcec1c84@mail.gmail.com> <utzkuws6q.fsf@gnu.org> <baf6008d0807271645o7d03dd94rd5b3f0d08302085a@mail.gmail.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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.