diff options
author | Doug Evans <xdje42@gmail.com> | 2013-11-29 12:00:47 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2013-11-29 12:00:47 -0800 |
commit | 256458bc0ed6b39c34afefb60d2b1009603fd62a (patch) | |
tree | de6071fd88ee670a6228a55bca2d954e0aa62694 /gdb/python/py-value.c | |
parent | c9ae340d17015d64f6959ea63ca80a26af5540be (diff) | |
download | gdb-256458bc0ed6b39c34afefb60d2b1009603fd62a.zip gdb-256458bc0ed6b39c34afefb60d2b1009603fd62a.tar.gz gdb-256458bc0ed6b39c34afefb60d2b1009603fd62a.tar.bz2 |
Remove trailing whitespace.
Whitespace cleanup.
* python/py-breakpoint.c: Remove trailing whitespace.
* python/py-cmd.c: Ditto.
* python/py-evts.c: Ditto.
* python/py-finishbreakpoint.c: Ditto.
* python/py-frame.c: Ditto.
* python/py-function.c: Ditto.
* python/py-inferior.c: Ditto.
* python/py-infthread.c: Ditto.
* python/py-param.c: Ditto.
* python/py-prettyprint.c: Ditto.
* python/py-symbol.c: Ditto.
* python/py-type.c: Ditto.
* python/py-utils.c: Ditto.
* python/py-value.c: Ditto.
* python/python-internal.h: Ditto.
* python/python.c: Ditto.
Diffstat (limited to 'gdb/python/py-value.c')
-rw-r--r-- | gdb/python/py-value.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index 4054808..40254b9 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -437,7 +437,7 @@ valpy_do_cast (PyObject *self, PyObject *args, enum exp_opcode op) type = type_object_to_type (type_obj); if (! type) { - PyErr_SetString (PyExc_RuntimeError, + PyErr_SetString (PyExc_RuntimeError, _("Argument must be a type.")); return NULL; } @@ -510,7 +510,7 @@ valpy_getitem (PyObject *self, PyObject *key) PyObject *result = NULL; if (gdbpy_is_string (key)) - { + { field = python_string_to_host_string (key); if (field == NULL) return NULL; @@ -723,7 +723,7 @@ valpy_fetch_lazy (PyObject *self, PyObject *args) /* Calculate and return the address of the PyObject as the value of the builtin __hash__ call. */ -static long +static long valpy_hash (PyObject *self) { return (long) (intptr_t) self; @@ -1248,7 +1248,7 @@ convert_value_from_python (PyObject *obj) TRY_CATCH (except, RETURN_MASK_ALL) { - if (PyBool_Check (obj)) + if (PyBool_Check (obj)) { cmp = PyObject_IsTrue (obj); if (cmp >= 0) @@ -1431,7 +1431,7 @@ Return a lazy string representation of the value." }, { "string", (PyCFunction) valpy_string, METH_VARARGS | METH_KEYWORDS, "string ([encoding] [, errors] [, length]) -> string\n\ Return Unicode string representation of the value." }, - { "fetch_lazy", valpy_fetch_lazy, METH_NOARGS, + { "fetch_lazy", valpy_fetch_lazy, METH_NOARGS, "Fetches the value from the inferior, if it was lazy." }, {NULL} /* Sentinel */ }; |