This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[PATCH] gdbtk-stack.c: error if cannot get_current_frame
- To: Insight Maling List <insight at sources dot redhat dot com>
- Subject: [PATCH] gdbtk-stack.c: error if cannot get_current_frame
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Mon, 11 Jun 2001 13:07:46 -0700 (PDT)
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)
{