Scope Checking Patch

Rob Quill rob.quill@gmail.com
Sun Jun 10 20:55:00 GMT 2007


On 10/06/07, Rob Quill <rob.quill@gmail.com> wrote:
> Hi all,
>
> This is the first patch I have ever submitted to an open source
> project, so I'm a little bit unsure of the process. The patch adds the
> ability to check if a variable is in scope, as descibed here:
>
> http://sourceware.org/ml/gdb/2006-11/msg00149.html
>
> I have attached the diffs for the two files I've changed. However, I
> am seeing some regressions against the current cvs, which I can't
> understand, so I was wondering if a) the regressions happen for anyone
> esle? (which presumably it does), b) if anyone could offer any
> suggestions as to the cause, and c) give thier opinions on the patch.
>
> The patch allows the scope of constants, variables and variables in
> classes/structures, by using $in_scope(variable_name) as an
> expression, with value 1 if variable_name is in scope and 0 if it is
> not.
>
> Any help and thoughts you can offer is much appreciated.

...Diffs attached, sorry.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c-exp.patch
Type: text/x-patch
Size: 2625 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070610/fdd15db5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eval.patch
Type: text/x-patch
Size: 1294 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070610/fdd15db5/attachment-0001.bin>


More information about the Gdb-patches mailing list