summaryrefslogtreecommitdiff
path: root/gdb/python/py-frame.c
diff options
context:
space:
mode:
authorpmuldoon <pmuldoon>2010-04-14 13:18:51 +0000
committerpmuldoon <pmuldoon>2010-04-14 13:18:51 +0000
commite92d216e7f362371836c6bad86dd5d065c62260a (patch)
tree12620bbd83174ba9186e4a5c528ce75233fd3fcd /gdb/python/py-frame.c
parente5ea8d026015c2a0c7774788b425914857de1ffb (diff)
downloadgdb-e92d216e7f362371836c6bad86dd5d065c62260a.tar.gz
2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
* python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass error/warning messages. Capitalize and use complete sentences. (blpy_block_syms_iternext): Likewise. * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise. * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block) (frame_info_to_frame_object, frapy_read_var) (gdbpy_frame_stop_reason_string): Likewise. * python/py-lazy-string.c (stpy_convert_to_value) (gdbpy_create_lazy_string_object): Likewise. * python/py-objfile.c (objfpy_set_printers): Likewise. * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise. * python/python.c (parameter_to_python): Likewise. * python/py-type.c (typy_range, typy_target): Likewise. * python/py-value.c (valpy_cast, valpy_length, valpy_getitem) (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
Diffstat (limited to 'gdb/python/py-frame.c')
-rw-r--r--gdb/python/py-frame.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gdb/python/py-frame.c b/gdb/python/py-frame.c
index 3b5320c589f..e930ae29a02 100644
--- a/gdb/python/py-frame.c
+++ b/gdb/python/py-frame.c
@@ -51,7 +51,7 @@ typedef struct {
do { \
frame = frame_object_to_frame_info (frame_obj); \
if (frame == NULL) \
- error ("Frame is invalid."); \
+ error (_("Frame is invalid.")); \
} while (0)
static PyTypeObject frame_object_type;
@@ -227,7 +227,7 @@ frapy_block (PyObject *self, PyObject *args)
if (!sal.symtab || !sal.symtab->objfile)
{
PyErr_SetString (PyExc_RuntimeError,
- "Cannot locate object file for block.");
+ _("Cannot locate object file for block."));
return NULL;
}
@@ -273,7 +273,8 @@ frame_info_to_frame_object (struct frame_info *frame)
frame_obj = PyObject_New (frame_object, &frame_object_type);
if (frame_obj == NULL)
{
- PyErr_SetString (PyExc_MemoryError, "Could not allocate frame object.");
+ PyErr_SetString (PyExc_MemoryError,
+ _("Could not allocate frame object."));
return NULL;
}
@@ -436,7 +437,7 @@ frapy_read_var (PyObject *self, PyObject *args)
if (!var)
{
PyErr_Format (PyExc_ValueError,
- _("variable '%s' not found"), var_name);
+ _("Variable '%s' not found."), var_name);
do_cleanups (cleanup);
return NULL;
@@ -447,7 +448,7 @@ frapy_read_var (PyObject *self, PyObject *args)
else
{
PyErr_SetString (PyExc_TypeError,
- _("argument must be a symbol or string"));
+ _("Argument must be a symbol or string."));
return NULL;
}
@@ -524,7 +525,8 @@ gdbpy_frame_stop_reason_string (PyObject *self, PyObject *args)
if (reason < 0 || reason > UNWIND_NO_SAVED_PC)
{
- PyErr_SetString (PyExc_ValueError, "Invalid frame stop reason.");
+ PyErr_SetString (PyExc_ValueError,
+ _("Invalid frame stop reason."));
return NULL;
}