From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20388 invoked by alias); 29 Mar 2015 15:36:55 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 20377 invoked by uid 89); 29 Mar 2015 15:36:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout23.012.net.il Received: from mtaout23.012.net.il (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 29 Mar 2015 15:36:51 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NLZ00J00CE4MC00@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Sun, 29 Mar 2015 18:36:48 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NLZ00JBRCPCHTD0@a-mtaout23.012.net.il>; Sun, 29 Mar 2015 18:36:48 +0300 (IDT) Date: Sun, 29 Mar 2015 15:36:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] Handle unbuffered Guile memory ports, and zero sized ports In-reply-to: To: Doug Evans Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83lhifzugv.fsf@gnu.org> References: X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00962.txt.bz2 > From: Doug Evans > Date: Sat, 28 Mar 2015 16:40:19 -0700 > > This patch adds support for unbuffered Guile memory supports, > and allows for zero sized ports. > > Regression tested on amd64-linux. > > 2015-03-28 Doug Evans > > * NEWS: Mention support for unbuffered Guile memory ports. > * scm-ports.c (ioscm_memory_port): Update comments on end, size. > (ioscm_lseek_address): Improve overflow calculation. > (gdbscm_memory_port_fill_input): Add assert. > (gdbscm_memory_port_write): Handle unbuffered ports. > Handle large writes identical to Guile's fport_write. > (gdbscm_memory_port_seek): Fix seeking past end check. > (gdbscm_memory_port_close): Handle closing unbuffered port. > (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports. > (ioscm_init_memory_port): Handle unbuffered ports. > (ioscm_reinit_memory_port): Ditto. > (ioscm_init_memory_port): Update size calculation. > (gdbscm_open_memory): Support zero sized ports. > > testsuite/ > * gdb.guile/scm-ports.c: New file. > * gdb.guile/scm-ports.exp: Add memory port tests. > > doc/ > * guile.texi (Memory Ports in Guile): Document support for unbuffered > memory ports. OK for the documentation parts. Thanks.