From: Keith Seitz <keiths@redhat.com>
To: Insight Maling List <insight@sources.redhat.com>
Subject: [PATCH] pass varobj errors
Date: Tue, 15 Jan 2002 11:18:00 -0000 [thread overview]
Message-ID: <Pine.GSO.4.33.0201151117080.17875-100000@makita.cygnus.com> (raw)
Hi,
I seem to recall having posted this before, but just in case...
Keith
ChangeLog
2002-01-15 Keith Seitz <keiths@redhat.com>
* generic/gdbtk-varobj.c (variable_value): When varobj_get_value
fails, use error_last_message to return the error to tcl land.
This allows us to display nice messages about why "0xdeadbeef" is
not accessible!
Index: generic/gdbtk-varobj.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-varobj.c,v
retrieving revision 1.10
diff -p -r1.10 gdbtk-varobj.c
*** gdbtk-varobj.c 2001/11/05 19:42:48 1.10
--- gdbtk-varobj.c 2002/01/15 19:13:29
*************** variable_value (interp, objc, objv, var)
*** 609,615 ****
r = varobj_get_value (var);
if (r == NULL)
! return TCL_ERROR;
else
{
Tcl_SetObjResult (interp, Tcl_NewStringObj (r, -1));
--- 609,620 ----
r = varobj_get_value (var);
if (r == NULL)
! {
! char *err = error_last_message ();
! gdbtk_set_result (interp, "%s", err);
! xfree (err);
! return TCL_ERROR;
! }
else
{
Tcl_SetObjResult (interp, Tcl_NewStringObj (r, -1));
reply other threads:[~2002-01-15 19:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.GSO.4.33.0201151117080.17875-100000@makita.cygnus.com \
--to=keiths@redhat.com \
--cc=insight@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).