From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 01594386F028 for ; Fri, 12 Jun 2020 13:27:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 01594386F028 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=ludo@gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]:35626) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjjiS-0002pG-T7; Fri, 12 Jun 2020 09:27:28 -0400 Received: from [2a01:e0a:1d:7270:6a6c:dc17:fc02:cfda] (port=54114 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jjjiR-0003KC-Qc; Fri, 12 Jun 2020 09:27:28 -0400 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: gdb-patches@sourceware.org Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Subject: [PATCH 0/2] Add support for Guile 3.0 and 2.2 Date: Fri, 12 Jun 2020 15:27:08 +0200 Message-Id: <20200612132710.14364-1-ludo@gnu.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2020 13:27:35 -0000 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