2011-02-28 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 1 Mar 2011 19:00:16 +0000 (19:00 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 1 Mar 2011 19:00:16 +0000 (19:00 +0000)
* python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.

gdb/ChangeLog
gdb/python/py-utils.c

index 8695f7ff9c366aa40e52c7321b321fb8927b45c2..81957f4ce85ce2137815d69a49462c74333de596 100644 (file)
@@ -1,5 +1,7 @@
 2011-03-01  Michael Snyder  <msnyder@vmware.com>
 
+       * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
+
        * objc-lang.c (selectors_info): Add explanitory comment.
        (classes_info): Ditto.
 
index 79e17c47bd7993c5522c5980e225e181fcf54b7a..601bcb05eafe8d1cbd1330dc3576036e8d055aed 100644 (file)
@@ -253,7 +253,6 @@ gdbpy_obj_to_string (PyObject *obj)
 char *
 gdbpy_exception_to_string (PyObject *ptype, PyObject *pvalue)
 {
-  PyObject *str_obj = PyObject_Str (pvalue);
   char *str;
 
   /* There are a few cases to consider.