Description of problem: problem description + reproducer by hand + GDB testcase: [patch] testsuite: Test readline-6.2 "ask" regression http://sourceware.org/ml/gdb-patches/2011-05/msg00002.html readline workaround: [patch 2/3] readline-6.2: Workaround "ask" regression http://sourceware.org/ml/gdb-patches/2011-05/msg00005.html Version-Release number of selected component (if applicable): readline-6.2-2.fc15.x86_64 How reproducible: Always. Steps to Reproduce: $ gdb gdb (gdb) p <tab><tab> Actual results: Display all 22129 possibilities? (y or n) ../../bfd/aout-target.h cs_to_section ../../bfd/aout32.c ctime <screens and screens of dumps without any question> Expected results: Display all 21482 possibilities? (y or n)_ Additional info: I see three ways how to solve it: (1) Patch Fedora readline-6.2 by the workaround unconditionally. It may have readline regression for non-GDB apps: https://lists.gnu.org/archive/html/bug-readline/2011-04/msg00012.html That's a blocking read; it makes many multithreaded programs that use callback mode not useful. (Especially window-based programs, which can't get the input they need to satisfy the request.) (2) Patch Fedora readline-6.2 by the workaround only when the library is in use by GDB - using some variable flag activated by GDB Fedora-specific patch. (3) Keep Fedore readline package as is and link patched readline into GDB statically until readline-7.0 gets released. I would choose (3). This is a Fedora 15 GDB regression.
If you feel comfortable with (3), please go ahead. I think we could also extend the readline API to disable that part of the code.
OK: (3) Keep Fedore readline package as is and link patched readline into GDB statically until readline-7.0 gets released.
gdb-7.2.90.20110429-36.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/gdb-7.2.90.20110429-36.fc15
Package gdb-7.2.90.20110429-36.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing gdb-7.2.90.20110429-36.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/gdb-7.2.90.20110429-36.fc15 then log in and leave karma (feedback).
gdb-7.2.90.20110429-36.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
Please discuss it at https://fedorahosted.org/fpc/ticket/129 whether (3) is appropriate. FESCo says it probably is not.
Created attachment 552121 [details] Add possibility to bypass RL_STATE_CALLBACK check If we are talking about temporary fix (and solution (1) probably is not completely correct), I would suggest to alter readline with this potential patch. In gdb then you can just call RL_SETSTATE(RL_STATE_FEDORA_GDB) and problem should disappear.
Created attachment 552133 [details] GDB patch to use RL_STATE_FEDORA_GDB. Confirming it works as expected, thanks. Please build new readline into Rawhide so I can build new patched gdb with it in the Koji buildroots.
Fix committed to git -> http://lists.fedoraproject.org/pipermail/scm-commits/2012-January/703853.html -> modified And build should be done by now.
It is now built also into gdb: gdb-7.4.50.20120103-7.fc17