diff options
author | Doug Evans <dje@google.com> | 2017-03-15 15:44:45 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2017-03-16 09:31:29 -0700 |
commit | a7c0469f992721b30665ba92f4f2f74d29032a84 (patch) | |
tree | a969a42f1d28f0d33360ecbdb053d947974182d3 /gdb/ser-unix.c | |
parent | 34b433203b5f56149c27a8dfea21a921392cb158 (diff) | |
download | binutils-a7c0469f992721b30665ba92f4f2f74d29032a84.zip binutils-a7c0469f992721b30665ba92f4f2f74d29032a84.tar.gz binutils-a7c0469f992721b30665ba92f4f2f74d29032a84.tar.bz2 |
Copy lazy string handling fixes from Python.
This patch keeps the Scheme side of lazy string handling in sync
with the python size, bringing over fixes for
PRs python/17728, python/18439, python/18779.
gdb/ChangeLog:
* guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
member. Change type of TYPE member to SCM. All uses updated.
(lsscm_make_lazy_string_smob): Add assert.
(lsscm_make_lazy_string): Flag bad length values.
(lsscm_elt_type): New function.
(gdbscm_lazy_string_to_value): Rewrite to use
lsscm_safe_lazy_string_to_value.
(lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
* guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
in incoming type.
* guile/guile-internal.h (tyscm_scm_to_type): Declare.
* guile/scm-type.c (tyscm_scm_to_type): New function.
gdb/testsuite/ChangeLog:
* gdb.guile/scm-value.c (main) Delete locals sptr, sn.
* gdb.guile/scm-lazy-string.c: New file.
* gdb.guile/scm-value.exp: Move lazy string tests to ...
* gdb.guile/scm-lazy-string.exp: ... here, new file. Add more tests
for pointer, array, typedef lazy strings.
Diffstat (limited to 'gdb/ser-unix.c')
0 files changed, 0 insertions, 0 deletions