This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Remove dead check of NULL current frame.


There's always a frame nowadays.

Checked in.

-- 
Pedro Alves

2009-07-25  Pedro Alves  <pedro@codesourcery.com>

	* stack.c (backtrace_command_1): Remove dead check of NULL current
	frame.

---
 gdb/stack.c |    5 -----
 1 file changed, 5 deletions(-)

Index: src/gdb/stack.c
===================================================================
--- src.orig/gdb/stack.c	2009-07-25 16:47:06.000000000 +0100
+++ src/gdb/stack.c	2009-07-25 16:48:26.000000000 +0100
@@ -1275,11 +1275,6 @@ backtrace_command_1 (char *count_exp, in
      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)
     {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]