This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.  */



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]