+Tue Feb 29 17:33:49 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ From Wed, 23 Feb 2000 Fernando Nasser <fnasser@redhat.com>:
+ * stack.c (backtrace_command_1), infrun.c (normal_stop): Check
+ that the target's stack was valid.
+
Tue Feb 29 15:14:56 2000 Andrew Cagney <cagney@b1.cygnus.com>
From 2000-02-22 Stephane Carrez <stcarrez@worldnet.fr>:
bpstat_print() contains the logic deciding in detail
what to print, based on the event(s) that just occurred. */
- if (stop_print_frame)
+ if (stop_print_frame
+ && selected_frame)
{
int bpstat_ret;
int source_flag;
printing. Second, it must set the variable count to the number
of frames which we should print, or -1 if all of them. */
trailing = get_current_frame ();
+
+ /* The target can be in a state where there is no valid frames
+ (e.g., just connected). */
+ if (trailing == NULL)
+ error ("No stack.");
+
trailing_level = 0;
if (count_exp)
{