PR 16286
authorDoug Evans <dje@google.com>
Wed, 11 Dec 2013 00:20:08 +0000 (16:20 -0800)
committerDoug Evans <dje@google.com>
Wed, 11 Dec 2013 00:20:08 +0000 (16:20 -0800)
commit0987cf351276271164c94b3bc8ca54482573bda4
tree6f5e90b28a6fcbdadcfd1a29c56c3ac5b8fde3df
parent34dc884e1711a3d00c6815bf32aa5823390ff1f6
PR 16286

* c-lang.c (c_get_string): Ignore the declared size of the object
if a specific length is requested.

testsuite/
* gdb.python/py-value.c: #include stdlib.h, string.h.
(str): New struct.
(main): New local xstr.
* gdb.python/py-value.exp (test_value_in_inferior): Add test to
fetch a value as a string with a length beyond the declared length
of the array.
gdb/ChangeLog
gdb/c-lang.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-value.c
gdb/testsuite/gdb.python/py-value.exp