summaryrefslogtreecommitdiff
path: root/gdb/event-top.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2002-03-27 21:20:15 +0000
committerAndreas Schwab <schwab@suse.de>2002-03-27 21:20:15 +0000
commit408d1e8721230bdf3d420197847982ef48f18511 (patch)
treeb9419b9e0efe135d5ca5a526cc440df7ae8df7f5 /gdb/event-top.c
parent9f4b2b6d0002b6cb3997e5d851585d33ab5a9c04 (diff)
downloadgdb-408d1e8721230bdf3d420197847982ef48f18511.tar.gz
* event-top.c (command_line_handler): Remove useless if.
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r--gdb/event-top.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c
index 3bf9c3474c4..b472694a347 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -685,20 +685,17 @@ command_line_handler (char *rl)
{
p--; /* Put on top of '\'. */
- if (*p == '\\')
- {
- readline_input_state.linebuffer = savestring (linebuffer,
- strlen (linebuffer));
- readline_input_state.linebuffer_ptr = p;
-
- /* We will not invoke a execute_command if there is more
- input expected to complete the command. So, we need to
- print an empty prompt here. */
- more_to_come = 1;
- push_prompt ("", "", "");
- display_gdb_prompt (0);
- return;
- }
+ readline_input_state.linebuffer = savestring (linebuffer,
+ strlen (linebuffer));
+ readline_input_state.linebuffer_ptr = p;
+
+ /* We will not invoke a execute_command if there is more
+ input expected to complete the command. So, we need to
+ print an empty prompt here. */
+ more_to_come = 1;
+ push_prompt ("", "", "");
+ display_gdb_prompt (0);
+ return;
}
#ifdef STOP_SIGNAL