2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
* ada-lang.c: * ada-tasks.c: * ada-varobj.c: * amd64-darwin-tdep.c: * arm-symbian-tdep.c: * arm-tdep.c: * avr-tdep.c: * ax-gdb.c: * bfin-linux-tdep.c: * breakpoint.c: * c-valprint.c: * cli/cli-cmds.c: * coffread.c: * cp-support.c: * cris-tdep.c: * dwarf2-frame-tailcall.c: * dwarf2-frame.c: * dwarf2expr.c: * dwarf2loc.c: * dwarf2read.c: * elfread.c: * eval.c: * expprint.c: * f-valprint.c: * frv-tdep.c: * h8300-tdep.c: * hppa-hpux-tdep.c: * hppa-tdep.c: * hppanbsd-tdep.c: * i386-nto-tdep.c: * i386-tdep.c: * i387-tdep.c: * ia64-tdep.c: * jit.c: * linespec.c: * linux-tdep.c: * lm32-tdep.c: * m2-valprint.c: * m32c-tdep.c: * m32r-rom.c: * m32r-tdep.c: * m68k-tdep.c: * m68klinux-tdep.c: * mi/mi-main.c: * microblaze-tdep.c: * mips-linux-tdep.c: * mips-tdep.c: * mn10300-tdep.c: * p-valprint.c: * parse.c: * ppc-linux-tdep.c: * ppc-sysv-tdep.c: * printcmd.c: * python/py-finishbreakpoint.c: * python/py-inferior.c: * python/py-infthread.c: * python/py-type.c: * python/python.c: * remote-fileio.c: * remote-m32r-sdi.c: * remote-mips.c: * reverse.c: * rl78-tdep.c: * rs6000-aix-tdep.c: * rs6000-tdep.c: * s390-tdep.c: * score-tdep.c: * sh64-tdep.c: * skip.c: * solib-darwin.c: * solib-dsbt.c: * solib-frv.c: * sparc-tdep.c: * spu-multiarch.c: * spu-tdep.c: * stack.c: * symfile.c: * symtab.c: * tic6x-tdep.c: * tracepoint.c: * v850-tdep.c: * valarith.c: * valprint.c: * value.c: * xcoffread.c: * xtensa-tdep.c: * ada-lang.c: * ada-tasks.c: * ada-varobj.c: * amd64-darwin-tdep.c: * arm-symbian-tdep.c: * arm-tdep.c: Delete unused variables.
This commit is contained in:
parent
e77afa2e83
commit
22e048c9dd
89 changed files with 139 additions and 218 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue