[pushed] gdb/python: exception trying to create empty array

Joel Brobecker brobecker@adacore.com
Wed Jan 7 03:38:00 GMT 2015


> I think it might not be immediately obvious to the reader why the test
> is "n2 < n1 - 1".
> [E.g, there's no
> Can you add a comment?

Sure. Attached is the patch I just pushed.

gdb/ChangeLog:

        * guile/scm-type.c (tyscm_array_1): Add comment.
        * python/py-type.c (typy_array_1): Add comment.

-- 
Joel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-python-guile-Add-comment-beside-conditions-testing-e.patch
Type: text/x-diff
Size: 1796 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20150107/535d9821/attachment.bin>


More information about the Gdb-patches mailing list