2000-09-15 Fernando Nasser <fnasser@totem.to.cygnus.com>

* varobj.c (varobj_set_value): Call wrapped version of
	parse_exp_1() to avoid longjumps.
This commit is contained in:
Fernando Nasser 2000-09-16 00:49:37 +00:00
parent 3943c96b07
commit 586e589c18
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,14 @@
2000-09-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
* varobj.c (varobj_set_value): Call wrapped version of
parse_exp_1() to avoid longjumps.
2000-09-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
* remote.c (putpkt_binary): Call read_frame, not getpkt. Log message.
(read_frame): Do not call error() on communication error when
reading checksum, but return failure instead and log message.
2000-09-15 Fernando Nasser <fnasser@cygnus.com>
* ser-unix.c (do_unix_readchar): Prevent infinite read wait to be

View File

@ -781,8 +781,9 @@ varobj_set_value (struct varobj *var, char *expression)
value_ptr temp;
input_radix = 10; /* ALWAYS reset to decimal temporarily */
/* FIXME: Callee may longjump */
exp = parse_exp_1 (&s, 0, 0);
if (!gdb_parse_exp_1 (&s, 0, 0, &exp))
/* We cannot proceed without a well-formed expression. */
return 0;
if (!gdb_evaluate_expression (exp, &value))
{
/* We cannot proceed without a valid expression. */