This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


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

[PATCH] gdbtk-stack.c: error if cannot get_current_frame


Hi,

Uncovered the following buglet while doing my inferior_stop rennovation...

Keith

ChangeLog
2001-06-11  Keith Seitz  <keiths@redhat.com>

	* generic/gdbtk-stack.c (gdb_stack): Return TCL_ERROR if
	we are unable to get the current frame. get_current_frame
	may have output an error message.

Patch
Index: gdbtk-stack.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-stack.c,v
retrieving revision 1.1
diff -u -p -r1.1 gdbtk-stack.c
--- gdbtk-stack.c	2001/05/10 18:04:23	1.1
+++ gdbtk-stack.c	2001/06/11 20:06:19
@@ -508,7 +508,7 @@ gdb_stack (clientData, interp, objc, obj
       /* Find the outermost frame */
       r  = GDB_get_current_frame (&fi);
       if (r != GDB_OK)
-	return TCL_OK;
+	return TCL_ERROR;

       while (fi != NULL)
         {



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