From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: "'Andreas Schwab'" <schwab@redhat.com>,
"'Ralf Corsepius'" <ralf.corsepius@rtems.org>
Cc: "'Joel Brobecker'" <brobecker@adacore.com>, <gdb@sourceware.org>,
"'Jan Kratochvil'" <jan.kratochvil@redhat.com>,
"'Tom Tromey'" <tromey@redhat.com>, <gdb-patches@gnu.org>
Subject: RE: GDB 6.8.92 available for testing
Date: Thu, 01 Oct 2009 09:35:00 -0000 [thread overview]
Message-ID: <002e01ca427a$5f1363b0$1d3a2b10$@u-strasbg.fr> (raw)
In-Reply-To: <m3ljjva3tl.fsf@hase.home>
Andreas,
why don't you simply use this?
#if RL_VERSION_MAJOR >= 6
extern int _rl_echoing_p;
#define readline_echoing_p _rl_echoing_p
#else
extern int readline_echoing_p;
#endif
This would make your patch simpler, no?
Is there a reason for replacing all
readline_echoing_p by _rl_echoing_p?
Pierre Muller
Pascal language support maintainer for GDB
> -----Message d'origine-----
> De : gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] De la
> part de Andreas Schwab
> Envoyé : Thursday, October 01, 2009 10:58 AM
> À : Ralf Corsepius
> Cc : Joel Brobecker; gdb@sourceware.org; Jan Kratochvil; Tom Tromey;
> gdb-patches@gnu.org
> Objet : Re: GDB 6.8.92 available for testing
>
> Ralf Corsepius <ralf.corsepius@rtems.org> writes:
>
> > --enable-system-readline also is still broken (Jan, please submit
> your
> > gdb-readline-6.0.patch you have applied to Fedora's gdb).
>
> Here is the patch I've been using for the openSUSE package. I have
> renamed the uses of readline_echoing_p to _rl_echoing_p to emphasize
> its
> internal nature (future readline versions may even stop exporting it).
>
> Andreas.
>
> 2009-10-01 Andreas Schwab <schwab@redhat.com>
>
> * tui/tui-io.c (tui_rl_display_match_list): Use _rl_echoing_p
> instead of readline_echoing_p for version 6 or later of
> libreadline.
>
> --- gdb/tui/tui-io.c.orig 2009-03-10 11:34:01.000000000 +0100
> +++ gdb/tui/tui-io.c 2009-03-10 11:34:45.000000000 +0100
> @@ -512,8 +512,13 @@ tui_rl_display_match_list (char **matche
> void
> tui_setup_io (int mode)
> {
> +#if RL_VERSION_MAJOR >= 6
> + extern int _rl_echoing_p;
> +#else
> extern int readline_echoing_p;
> -
> +#define _rl_echoing_p readline_echoing_p
> +#endif
> +
> if (mode)
> {
> /* Redirect readline to TUI. */
> @@ -522,12 +527,12 @@ tui_setup_io (int mode)
> tui_old_rl_prep_terminal = rl_prep_term_function;
> tui_old_rl_getc_function = rl_getc_function;
> tui_old_rl_outstream = rl_outstream;
> - tui_old_readline_echoing_p = readline_echoing_p;
> + tui_old_readline_echoing_p = _rl_echoing_p;
> rl_redisplay_function = tui_redisplay_readline;
> rl_deprep_term_function = tui_deprep_terminal;
> rl_prep_term_function = tui_prep_terminal;
> rl_getc_function = tui_getc;
> - readline_echoing_p = 0;
> + _rl_echoing_p = 0;
> rl_outstream = tui_rl_outstream;
> rl_prompt = 0;
> rl_completion_display_matches_hook = tui_rl_display_match_list;
> @@ -564,7 +569,7 @@ tui_setup_io (int mode)
> rl_getc_function = tui_old_rl_getc_function;
> rl_outstream = tui_old_rl_outstream;
> rl_completion_display_matches_hook = 0;
> - readline_echoing_p = tui_old_readline_echoing_p;
> + _rl_echoing_p = tui_old_readline_echoing_p;
> rl_already_prompted = 0;
>
> /* Save tty for SIGCONT. */
>
> --
> Andreas Schwab, schwab@redhat.com
> GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00
> 984E
> "And now for something completely different."
next prev parent reply other threads:[~2009-10-01 9:35 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-30 20:48 Joel Brobecker
2009-10-01 3:17 ` Ralf Corsepius
2009-10-01 8:59 ` Andreas Schwab
2009-10-01 9:35 ` Pierre Muller [this message]
2009-10-01 9:42 ` Andreas Schwab
2009-10-01 12:11 ` Ralf Corsepius
2009-10-01 13:10 ` Jan Kratochvil
2009-10-02 15:40 ` Tom Tromey
2009-10-02 17:26 ` Jan Kratochvil
2009-10-01 10:09 ` Jan Kratochvil
2009-10-01 11:20 ` Ralf Corsepius
2009-10-01 18:16 ` Joel Brobecker
2009-10-02 2:46 ` Ralf Corsepius
2009-10-02 15:39 ` Tom Tromey
2009-10-02 17:28 ` Jan Kratochvil
2009-10-01 17:07 ` Joel Brobecker
2009-10-01 17:21 ` Ralf Corsepius
2009-10-01 17:35 ` Mark Kettenis
2009-10-01 18:27 ` Joel Brobecker
2009-10-01 18:37 ` Mark Kettenis
2009-10-01 20:22 ` Eli Zaretskii
2009-10-01 18:40 ` Paul Pluzhnikov
2009-10-01 18:25 ` Joel Brobecker
2009-10-02 15:48 ` Tom Tromey
2009-10-02 16:57 ` Ralf Corsepius
2009-10-02 17:27 ` Tom Tromey
2009-10-02 18:04 ` Mark Kettenis
2009-10-02 18:15 ` Joel Brobecker
2009-10-02 18:24 ` Mark Kettenis
2009-10-02 18:38 ` Jan Kratochvil
2009-10-02 21:46 ` Tom Tromey
2009-10-02 22:00 ` Jan Kratochvil
2009-10-02 15:35 ` Tom Tromey
2009-10-01 12:02 ` Pierre Muller
2009-10-01 17:56 ` Joel Brobecker
2009-10-01 21:22 ` [RFA] more fixes to testsuite (was RE: GDB 6.8.92 available for testing) Pierre Muller
2009-10-01 21:28 ` Joel Brobecker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='002e01ca427a$5f1363b0$1d3a2b10$@u-strasbg.fr' \
--to=muller@ics.u-strasbg.fr \
--cc=brobecker@adacore.com \
--cc=gdb-patches@gnu.org \
--cc=gdb@sourceware.org \
--cc=jan.kratochvil@redhat.com \
--cc=ralf.corsepius@rtems.org \
--cc=schwab@redhat.com \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox