* varobj.c (update_dynamic_varobj_children): Wrap error text in
_(). (install_visualizer): Likewise. (varobj_set_visualizer): Likewise.
This commit is contained in:
parent
4b45997780
commit
da1f277114
@ -1,3 +1,10 @@
|
|||||||
|
2009-06-05 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* varobj.c (update_dynamic_varobj_children): Wrap error text in
|
||||||
|
_().
|
||||||
|
(install_visualizer): Likewise.
|
||||||
|
(varobj_set_visualizer): Likewise.
|
||||||
|
|
||||||
2009-06-05 Marc Khouzam <marc.khouzam@ericsson.com>
|
2009-06-05 Marc Khouzam <marc.khouzam@ericsson.com>
|
||||||
|
|
||||||
* mi/mi-main.c (mi_cmd_exec_continue)
|
* mi/mi-main.c (mi_cmd_exec_continue)
|
||||||
|
14
gdb/varobj.c
14
gdb/varobj.c
@ -850,19 +850,19 @@ update_dynamic_varobj_children (struct varobj *var,
|
|||||||
if (!children)
|
if (!children)
|
||||||
{
|
{
|
||||||
gdbpy_print_stack ();
|
gdbpy_print_stack ();
|
||||||
error ("Null value returned for children");
|
error (_("Null value returned for children"));
|
||||||
}
|
}
|
||||||
|
|
||||||
make_cleanup_py_decref (children);
|
make_cleanup_py_decref (children);
|
||||||
|
|
||||||
if (!PyIter_Check (children))
|
if (!PyIter_Check (children))
|
||||||
error ("Returned value is not iterable");
|
error (_("Returned value is not iterable"));
|
||||||
|
|
||||||
iterator = PyObject_GetIter (children);
|
iterator = PyObject_GetIter (children);
|
||||||
if (!iterator)
|
if (!iterator)
|
||||||
{
|
{
|
||||||
gdbpy_print_stack ();
|
gdbpy_print_stack ();
|
||||||
error ("Could not get children iterator");
|
error (_("Could not get children iterator"));
|
||||||
}
|
}
|
||||||
make_cleanup_py_decref (iterator);
|
make_cleanup_py_decref (iterator);
|
||||||
|
|
||||||
@ -879,7 +879,7 @@ update_dynamic_varobj_children (struct varobj *var,
|
|||||||
inner = make_cleanup_py_decref (item);
|
inner = make_cleanup_py_decref (item);
|
||||||
|
|
||||||
if (!PyArg_ParseTuple (item, "sO", &name, &py_v))
|
if (!PyArg_ParseTuple (item, "sO", &name, &py_v))
|
||||||
error ("Invalid item from the child list");
|
error (_("Invalid item from the child list"));
|
||||||
|
|
||||||
if (PyObject_TypeCheck (py_v, &value_object_type))
|
if (PyObject_TypeCheck (py_v, &value_object_type))
|
||||||
{
|
{
|
||||||
@ -1383,7 +1383,7 @@ install_visualizer (struct varobj *var, PyObject *visualizer)
|
|||||||
if (!visualizer && var->children_requested)
|
if (!visualizer && var->children_requested)
|
||||||
varobj_list_children (var);
|
varobj_list_children (var);
|
||||||
#else
|
#else
|
||||||
error ("Python support required");
|
error (_("Python support required"));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1454,7 +1454,7 @@ varobj_set_visualizer (struct varobj *var, const char *visualizer)
|
|||||||
if (! pretty_printer)
|
if (! pretty_printer)
|
||||||
{
|
{
|
||||||
gdbpy_print_stack ();
|
gdbpy_print_stack ();
|
||||||
error ("Could not evaluate visualizer expression: %s", visualizer);
|
error (_("Could not evaluate visualizer expression: %s"), visualizer);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pretty_printer == Py_None)
|
if (pretty_printer == Py_None)
|
||||||
@ -1467,7 +1467,7 @@ varobj_set_visualizer (struct varobj *var, const char *visualizer)
|
|||||||
|
|
||||||
do_cleanups (back_to);
|
do_cleanups (back_to);
|
||||||
#else
|
#else
|
||||||
error ("Python support required");
|
error (_("Python support required"));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user