tui: Simplify tui_alloc_content
[deliverable/binutils-gdb.git] / gdb / infcmd.c
index c4d7d8b5d6d0cce0aecd84209763f3e9861df27f..54aa1ef4cc49cfa01669972978bbc3ef33dca442 100644 (file)
@@ -1794,7 +1794,8 @@ finish_command_fsm_should_stop (struct thread_fsm *self)
 
          func = read_var_value (f->function, NULL, get_current_frame ());
          rv->value = get_return_value (func, rv->type);
-         rv->value_history_index = record_latest_value (rv->value);
+         if (rv->value != NULL)
+           rv->value_history_index = record_latest_value (rv->value);
        }
     }
   else if (tp->control.stop_step)
This page took 0.023513 seconds and 4 git commands to generate.