fix py-value.c
Some code in py-value.c could exit a loop without running some cleanups made in the loop. * python/py-value.c (valpy_binop): Call do_cleanups before exiting loop.
This commit is contained in:
parent
54f72dcc36
commit
edefe1dab2
2 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-05-30 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* python/py-value.c (valpy_binop): Call do_cleanups before
|
||||||
|
exiting loop.
|
||||||
|
|
||||||
2013-05-30 Tom Tromey <tromey@redhat.com>
|
2013-05-30 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* python/py-prettyprint.c (print_children): Remove extra
|
* python/py-prettyprint.c (print_children): Remove extra
|
||||||
|
|
|
@ -769,11 +769,17 @@ valpy_binop (enum valpy_opcode opcode, PyObject *self, PyObject *other)
|
||||||
a gdb.Value object and need to convert it from python as well. */
|
a gdb.Value object and need to convert it from python as well. */
|
||||||
arg1 = convert_value_from_python (self);
|
arg1 = convert_value_from_python (self);
|
||||||
if (arg1 == NULL)
|
if (arg1 == NULL)
|
||||||
|
{
|
||||||
|
do_cleanups (cleanup);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
arg2 = convert_value_from_python (other);
|
arg2 = convert_value_from_python (other);
|
||||||
if (arg2 == NULL)
|
if (arg2 == NULL)
|
||||||
|
{
|
||||||
|
do_cleanups (cleanup);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
switch (opcode)
|
switch (opcode)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue