binutils-gdb/gdb/testsuite/gdb.guile
Doug Evans a7c0469f99 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.
2017-03-16 09:31:29 -07:00
..
guile.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-arch.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-arch.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-block.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-block.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-breakpoint.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-breakpoint.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-cmd.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-cmd.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-disasm.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-disasm.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-equal.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-equal.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-error-1.scm update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-error-2.scm update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-error.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-frame-args.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-frame-args.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-frame-args.scm update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-frame-inline.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-frame-inline.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-frame.c
scm-frame.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-gsmob.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-iterator.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-iterator.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-lazy-string.c Copy lazy string handling fixes from Python. 2017-03-16 09:31:29 -07:00
scm-lazy-string.exp Copy lazy string handling fixes from Python. 2017-03-16 09:31:29 -07:00
scm-math.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-math.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-objfile-script-gdb.in update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-objfile-script.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-objfile-script.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-objfile.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-objfile.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-parameter.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-ports.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-ports.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-pretty-print.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-pretty-print.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-pretty-print.scm update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-progspace.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-progspace.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-section-script.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-section-script.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-section-script.scm update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-symbol.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-symbol.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-symtab-2.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-symtab.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-symtab.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-type.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-type.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-value-cc.cc update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-value-cc.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
scm-value.c Copy lazy string handling fixes from Python. 2017-03-16 09:31:29 -07:00
scm-value.exp Copy lazy string handling fixes from Python. 2017-03-16 09:31:29 -07:00
source2.scm update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
types-module.cc update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
types-module.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00