aboutsummaryrefslogtreecommitdiff
path: root/gdb/event-top.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-01 21:12:27 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-01 21:12:27 +0000
commitd014929c516c2960d04d7bdb0f25c631219f7448 (patch)
tree887f8c8fe567fa0b9d210f1026cbada5faa8eeac /gdb/event-top.c
parent6e9130cf1b68342311a4815f4320dc75e9f3f296 (diff)
downloadgdb-d014929c516c2960d04d7bdb0f25c631219f7448.zip
gdb-d014929c516c2960d04d7bdb0f25c631219f7448.tar.gz
gdb-d014929c516c2960d04d7bdb0f25c631219f7448.tar.bz2
2011-03-01 Michael Snyder <msnyder@vmware.com>
* event-top.c (display_gdb_prompt): Remove superfluous null check.
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r--gdb/event-top.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c
index afb0c08..71accf6 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -312,8 +312,8 @@ display_gdb_prompt (char *new_prompt)
rl_callback_handler_install (new_prompt, input_handler);
}
/* new_prompt at this point can be the top of the stack or the one
- passed in. */
- else if (new_prompt)
+ passed in. It can't be NULL. */
+ else
{
/* Don't use a _filtered function here. It causes the assumed
character position to be off, since the newline we read from