This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Remove unused variables in gdbpy_write_memory.
- From: Thiago Jung Bauermann <bauerman at br dot ibm dot com>
- To: archer ml <archer at sourceware dot org>
- Date: Mon, 29 Dec 2008 19:48:58 -0200
- Subject: Remove unused variables in gdbpy_write_memory.
Hi,
The inevitable patch fixing things I should have seen before. I was
still able to compile with -O2 though.
--
[]'s
Thiago Jung Bauermann
IBM Linux Technology Center
2008-12-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
* gdb/python/python-membuf.c (gdbpy_write_memory): Remove unused
variables.
diff --git a/gdb/python/python-membuf.c b/gdb/python/python-membuf.c
index b1fc491..f4a500f 100644
--- a/gdb/python/python-membuf.c
+++ b/gdb/python/python-membuf.c
@@ -91,8 +91,6 @@ gdbpy_write_memory (PyObject *self, PyObject *args)
const char *buffer;
long length = -1;
CORE_ADDR addr;
- membuf_object *membuf_obj;
- struct cleanup *cleanups;
volatile struct gdb_exception except;
/* Assume CORE_ADDR corresponds to unsigned long. */