diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-finishbreakpoint.c | 1 | ||||
-rw-r--r-- | gdb/python/py-inferior.c | 2 | ||||
-rw-r--r-- | gdb/python/py-infthread.c | 1 | ||||
-rw-r--r-- | gdb/python/py-type.c | 4 | ||||
-rw-r--r-- | gdb/python/python.c | 2 |
5 files changed, 0 insertions, 10 deletions
diff --git a/gdb/python/py-finishbreakpoint.c b/gdb/python/py-finishbreakpoint.c index 761ad32..56ab775 100644 --- a/gdb/python/py-finishbreakpoint.c +++ b/gdb/python/py-finishbreakpoint.c @@ -319,7 +319,6 @@ bpfinishpy_init (PyObject *self, PyObject *args, PyObject *kwargs) static void bpfinishpy_out_of_scope (struct finish_breakpoint_object *bpfinish_obj) { - volatile struct gdb_exception except; breakpoint_object *bp_obj = (breakpoint_object *) bpfinish_obj; PyObject *py_obj = (PyObject *) bp_obj; diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index 06d3272..86b478d 100644 --- a/gdb/python/py-inferior.c +++ b/gdb/python/py-inferior.c @@ -180,7 +180,6 @@ inferior_to_inferior_object (struct inferior *inferior) PyObject * find_inferior_object (int pid) { - struct inflist_entry *p; struct inferior *inf = find_inferior_pid (pid); if (inf) @@ -257,7 +256,6 @@ delete_thread_object (struct thread_info *tp, int ignore) { struct cleanup *cleanup; inferior_object *inf_obj; - thread_object *thread_obj; struct threadlist_entry **entry, *tmp; cleanup = ensure_python_env (python_gdbarch, python_language); diff --git a/gdb/python/py-infthread.c b/gdb/python/py-infthread.c index 3a37ef7..8821f20 100644 --- a/gdb/python/py-infthread.c +++ b/gdb/python/py-infthread.c @@ -162,7 +162,6 @@ static PyObject * thpy_switch (PyObject *self, PyObject *args) { thread_object *thread_obj = (thread_object *) self; - struct cleanup *cleanup; volatile struct gdb_exception except; THPY_REQUIRE_VALID (thread_obj); diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index 5c1d8e6..98030a6 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -1072,7 +1072,6 @@ check_types_equal (struct type *type1, struct type *type2, if (TYPE_TARGET_TYPE (type1) != NULL) { struct type_equality_entry entry; - int added; if (TYPE_TARGET_TYPE (type2) == NULL) return Py_NE; @@ -1272,7 +1271,6 @@ typy_getitem (PyObject *self, PyObject *key) struct type *type = ((type_object *) self)->type; char *field; int i; - volatile struct gdb_exception except; field = python_string_to_host_string (key); if (field == NULL) @@ -1334,7 +1332,6 @@ typy_has_key (PyObject *self, PyObject *args) struct type *type = ((type_object *) self)->type; const char *field; int i; - volatile struct gdb_exception except; if (!PyArg_ParseTuple (args, "s", &field)) return NULL; @@ -1431,7 +1428,6 @@ typy_iterator_iternext (PyObject *self) { typy_iterator_object *iter_obj = (typy_iterator_object *) self; struct type *type = iter_obj->source->type; - int i; PyObject *result; if (iter_obj->field < TYPE_NFIELDS (type)) diff --git a/gdb/python/python.c b/gdb/python/python.c index 57ef643..19eb7b5 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -556,7 +556,6 @@ gdbpy_decode_line (PyObject *self, PyObject *args) for (i = 0; i < sals.nelts; ++i) { PyObject *obj; - char *str; obj = symtab_and_line_to_sal_object (sals.sals[i]); if (! obj) @@ -694,7 +693,6 @@ static void gdbpy_run_events (struct serial *scb, void *context) { struct cleanup *cleanup; - int r; cleanup = ensure_python_env (get_current_arch (), current_language); |