delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/11/19/23:02:40

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-Authority-Analysis: v=1.0 c=1 a=r505337T3dcA:10 a=ccz8coayCkgA:10 a=CCpqsmhAAAAA:8 a=xe8BsctaAAAA:8 a=la0zJ34Z9oEhmdPgDaYA:9 a=kLU2aFoz5qX_FMiF06cdjlehQ0kA:4 a=eDFNAWYWrCwA:10 a=rPt6xJ-oxjAA:10
Message-ID: <4924E120.2090605@byu.net>
Date: Wed, 19 Nov 2008 21:01:36 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: help with bash/readline dll interaction bug
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to release readline-5.2.13-11, but before I do, I'd like to fix
this bug in bash:

http://sourceware.org/bugzilla/show_bug.cgi?id=6840

Basically, bash has a place where it calls a readline function that
returns a function pointer, then it compares the returned result against a
function pointer.  However, the function pointer returned by readline is
the rl_tab_insert local to the readline dll, while the function pointer
compared in bash is a trampoline around _imp__rl_tab_insert.  Is there
some slick way to make bash grab a function pointer that can see through
the trampoline and see that bash's trampoline version of rl_tab_insert is
indeed the same function as readline's local rl_tab_insert?  Or should I
add some extern function pointer variables in libreadline, which are
initialized to readline's notion of rl_tab_insert, so that bash compares
against *_rl_tab_insert_ptr rather than against the trampoline
&rl_tab_insert?  Or is there some other trick I should try?  Would using
gcc-4 have any impact on this?

I'm hoping that whatever is needed to make this work can be done without
having to rev to libreadline7.  But it if involves adding some additional
extern symbols to libreadline, then I need to do that soon before
releasing readline-5.2.13-11.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkk4SAACgkQ84KuGfSFAYC0zwCgt2PHqgWciukJLRB0dzGMO0lx
0B0An0f2ZMyxjQem1yzXiw9S2F0eZxqG
=WoX6
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019