2011-03-01 Michael Snyder <msnyder@vmware.com>

* event-top.c (display_gdb_prompt): Remove superfluous null check.
This commit is contained in:
Michael Snyder 2011-03-01 21:12:27 +00:00
parent 6e9130cf1b
commit d014929c51
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
2011-03-01 Michael Snyder <msnyder@vmware.com>
* event-top.c (display_gdb_prompt): Remove superfluous null check.
* python/py-prettyprint.c (apply_val_pretty_printer): VAL may
be null.

View File

@ -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