This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

Re: [readline-mingw] backspace key and TUI size


Daniel Jacobowitz wrote:

On Wed, Feb 08, 2006 at 09:02:57AM +0100, Denis PILAT wrote:


Hi,

When compiling gdb 6.4 for native window host (minGW) I get a gdb.exe and a gdbtui.exe where there were 2 problems.
- In the gdbtui.exe version, the TUI interface do not fit in the DOS command window.
- In the gdb.exe version, the backspace key do not behave correctly.


I did some little modification in readline to fix both problems. I attach the patch applied.
I've already submitted it to Chet Ramey (the readline maintainer at bash-maintainers@gnu.org) who accepted it.
I don't know the gdb policy with readline synchronization, but I would like it to be integrated as well in gdb distribution.



We can import readline patches; I assume Chet didn't take this as-is (it has a stray printf in it). Chet, if you have a chance, could you send us the version you've applied, so we can merge it?

Denis, I'm not sure why the backspace fix was necessary for you; my
backspace works fine.  What did this fix?



You're right, I forgot to remove a printf ...

Our host is i686-pc-mingw32, gdb is compiled under cygwin with "-mno-cygwin" flag to avoid cygwin dependencies.
We also use pdcurses library since ncurse is not available on windows.
I think that's why you don't see the problem. With this patch, I'm not using the tputs() function anymore on Windows, as it was not used for MSDOS.


Denis




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