[PATCH 0/2] Add support for Guile 3.0 and 2.2

Ludovic Courtès ludo@gnu.org
Fri Jun 12 13:27:08 GMT 2020


Hello,

This is a long overdue update to the Guile bindings to support versions
2.2 (legacy) and 3.0 (current stable), in addition to the old 2.0.

For the record, the last 2.0 release was made in February 2017, but I
think keeping 2.0 support for a while will make the transition smoother.

Most of the work is about updating code that uses Guile’s I/O ports to
the new API that was introduced in Guile 2.2.  The new API leads to more
concise and less error-prone code but of course, since we’re also keeping
the 2.0 version, we’d only adding code at this point.

Tested with Guile 3.0.2, 2.2.7, and 2.0.14 on x86_64-linux-gnu (GNU Guix).
Specifically, this passes for all three versions:

  make check -C gdb TESTS=gdb.guile/*.exp

Let me know what you think!

Thanks,
Ludo’.

Ludovic Courtès (2):
  guile: Add support for Guile 2.2.
  guile: Add support for Guile 3.0.

 gdb/configure                            |   2 +-
 gdb/configure.ac                         |   2 +-
 gdb/doc/guile.texi                       |  23 +-
 gdb/guile/scm-math.c                     |   4 +-
 gdb/guile/scm-ports.c                    | 545 ++++++++++++++++-------
 gdb/testsuite/gdb.guile/scm-error.exp    |   2 +-
 gdb/testsuite/gdb.guile/scm-ports.exp    |   2 +-
 gdb/testsuite/gdb.guile/source2.scm      |   2 +-
 gdb/testsuite/gdb.guile/types-module.exp |   6 +-
 9 files changed, 400 insertions(+), 188 deletions(-)

-- 
2.26.2



More information about the Gdb-patches mailing list