2011-03-01 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 1 Mar 2011 21:12:27 +0000 (21:12 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 1 Mar 2011 21:12:27 +0000 (21:12 +0000)
* event-top.c (display_gdb_prompt): Remove superfluous null check.

gdb/ChangeLog
gdb/event-top.c

index 0b3490ba7aa7b0497fb5a1cfafcd0e279adef5f2..756a4c17812658c8c6024a48bebdb227ec073cd0 100644 (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.
 
index afb0c08b004a976c57e56c872d67ba06e565d8e6..71accf6363860ad3634c24a809a0f6787f274027 100644 (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
This page took 0.027818 seconds and 4 git commands to generate.