Patch to build gdb-5.0 with readline-4.1
Eli Zaretskii
eliz@delorie.com
Mon May 29 00:38:00 GMT 2000
> Date: Sun, 28 May 2000 21:03:18 +0200
> From: Andrew Gaylard <andrew.gaylard@bsw.co.za>
>
> /* readline include files */
> +/* This is needed to prevent readline-4.1 (re-)defining it. */
> +#define savestring
> #include <readline/readline.h>
> #include <readline/history.h>
>
> #include <signal.h>
>
> -/* readline defines this. */
> +/* readline needed this. */
> #undef savestring
What's the story behind this savestring gork? Is it possible to take
care of the problem in a cleaner way?
> rl_completer_quote_characters = gdb_completer_quote_characters;
> rl_readline_name = "gdb";
> + rl_terminal_name=getenv("TERM");
What does readline do with rl_terminal_name? What if getenv returns a
NULL pointer? (Non-Unix ports of GDB are likely to have $TERM
undefined.)
More information about the Gdb-patches
mailing list