aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-03-09 18:24:59 +0000
committerPedro Alves <palves@redhat.com>2016-03-09 18:24:59 +0000
commitc5c136ea94f21e5ff968d5b402494611464c7b31 (patch)
tree3a466443ee8dd0659c9b672d21d6e9ae0b8c00bc /gdb/top.c
parent720d2e96b424bb4bb1f7021f86763ff3df078e2b (diff)
downloadfsf-binutils-gdb-c5c136ea94f21e5ff968d5b402494611464c7b31.zip
fsf-binutils-gdb-c5c136ea94f21e5ff968d5b402494611464c7b31.tar.gz
fsf-binutils-gdb-c5c136ea94f21e5ff968d5b402494611464c7b31.tar.bz2
gdb_readline -> gdb_readline_no_editing
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-03-09 Pedro Alves <palves@redhat.com> * defs.h (gdb_readline): Delete declaration. * top.c (gdb_readline): Rename to ... (gdb_readline_no_editing): ... this, and make static.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c7
1 files changed, 4 insertions, 3 deletions
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)