[PATCH master + gdb-10-branch] gdb: fix getting range of flexible array member in Python
Luis Machado
luis.machado@linaro.org
Thu Apr 22 19:40:03 GMT 2021
Hi Simon,
On 4/22/21 4:07 PM, Simon Marchi via Gdb-patches wrote:
> On 2021-04-22 1:50 p.m., Andrew Burgess wrote:
>>> diff --git a/gdb/testsuite/gdb.python/flexible-array-member.c b/gdb/testsuite/gdb.python/flexible-array-member.c
>>> new file mode 100644
>>> index 000000000000..79815e2d38e0
>>> --- /dev/null
>>> +++ b/gdb/testsuite/gdb.python/flexible-array-member.c
>>> @@ -0,0 +1,70 @@
>>> +/* This testcase is part of GDB, the GNU debugger.
>>> +
>>> + Copyright 2020-2021 Free Software Foundation, Inc.
>>
>> In this file and the .exp the date range is 2020-2021, is this
>> correct?
>
> Since I copied it from gdb.base/flexible-array-member.c, it should
> retain the original copyright date.
>
>> Otherwise, looks good.
>
> Thanks, pushed to both branches!
>
> Simon
>
I notice this test being executed without python support. I think we
need this guard:
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
More information about the Gdb-patches
mailing list