From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81334 invoked by alias); 18 Feb 2016 17:40:46 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 81244 invoked by uid 89); 18 Feb 2016 17:40:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1499 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 18 Feb 2016 17:40:44 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id A370D25891 for ; Thu, 18 Feb 2016 17:40:42 +0000 (UTC) Received: from brno.lan (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1IHea7C012351 for ; Thu, 18 Feb 2016 12:40:42 -0500 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 06/10] gdb_readline -> gdb_readline_no_editing Date: Thu, 18 Feb 2016 17:40:00 -0000 Message-Id: <1455817236-13642-7-git-send-email-palves@redhat.com> In-Reply-To: <1455817236-13642-1-git-send-email-palves@redhat.com> References: <1455817236-13642-1-git-send-email-palves@redhat.com> X-SW-Source: 2016-02/txt/msg00560.txt.bz2 Name this such that it's clearer that this is not a wrapper for the real readline, but instead a replacement that provides no command line editing features. gdb/ChangeLog: 2016-02-18 Pedro Alves * defs.h (gdb_readline): Delete declaration. * top.c (gdb_readline): Rename to ... (gdb_readline_no_editing): ... this, and make static. --- gdb/defs.h | 2 -- gdb/top.c | 7 ++++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gdb/defs.h b/gdb/defs.h index f6ffeac..b94df30 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -285,8 +285,6 @@ extern void print_transfer_performance (struct ui_file *stream, typedef void initialize_file_ftype (void); -extern char *gdb_readline (const char *); - extern char *gdb_readline_wrapper (const char *); extern char *command_line_input (const char *, int, char *); diff --git a/gdb/top.c b/gdb/top.c index fb1657a..e781cdd 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -608,8 +608,9 @@ prevent_dont_repeat (void) malloc'd and should be freed by the caller. A NULL return means end of file. */ -char * -gdb_readline (const char *prompt_arg) + +static char * +gdb_readline_no_editing (const char *prompt_arg) { int c; char *result; @@ -1117,7 +1118,7 @@ command_line_input (const char *prompt_arg, int repeat, char *annotation_suffix) } else { - rl = gdb_readline (prompt); + rl = gdb_readline_no_editing (prompt); } if (annotation_level > 1 && instream == stdin) -- 1.9.3