* stack.c (backtrace_command_1): Remove dead check of NULL current
authorPedro Alves <palves@redhat.com>
Sat, 25 Jul 2009 16:03:56 +0000 (16:03 +0000)
committerPedro Alves <palves@redhat.com>
Sat, 25 Jul 2009 16:03:56 +0000 (16:03 +0000)
frame.

gdb/ChangeLog
gdb/stack.c

index ef4936d..4fc3bd8 100644 (file)
@@ -1,3 +1,8 @@
+2009-07-25  Pedro Alves  <pedro@codesourcery.com>
+
+       * stack.c (backtrace_command_1): Remove dead check of NULL current
+       frame.
+
 2009-07-23  Keith Seitz  <keiths@redhat.com>
 
        * source.c (forward_search_command): Don't fclose the stream,
index 30963a2..1c37801 100644 (file)
@@ -1275,11 +1275,6 @@ backtrace_command_1 (char *count_exp, int show_locals, int from_tty)
      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)
     {