From: Michael Snyder Date: Tue, 1 Mar 2011 21:12:27 +0000 (+0000) Subject: 2011-03-01 Michael Snyder X-Git-Tag: cgen-snapshot-20110401~470 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d014929c516c2960d04d7bdb0f25c631219f7448;p=platform%2Fupstream%2Fbinutils.git 2011-03-01 Michael Snyder * event-top.c (display_gdb_prompt): Remove superfluous null check. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0b3490b..756a4c1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2011-03-01 Michael Snyder + * event-top.c (display_gdb_prompt): Remove superfluous null check. + * python/py-prettyprint.c (apply_val_pretty_printer): VAL may be null. 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