diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2002-03-27 21:20:15 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2002-03-27 21:20:15 +0000 |
commit | d96429cda9c28efea76a640032cb73f2c02679e4 (patch) | |
tree | 1ecfe6f421139d60805658562d9958d9146f16b8 /gdb/event-top.c | |
parent | 9ae8b82c04c734408d645eb8495978969992a9b2 (diff) | |
download | gdb-d96429cda9c28efea76a640032cb73f2c02679e4.zip gdb-d96429cda9c28efea76a640032cb73f2c02679e4.tar.gz gdb-d96429cda9c28efea76a640032cb73f2c02679e4.tar.bz2 |
* event-top.c (command_line_handler): Remove useless if.
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r-- | gdb/event-top.c | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c index 3bf9c34..b472694 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 |