This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

help with bash/readline dll interaction bug


-----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@byu.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]