* python/python.c (execute_gdb_command): Remove unused variables.
* python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
* python/py-breakpoint.c (gdbpy_breakpoint_created):
Remove unused variable.
* python/py-cmd.c (cmdpy_function): Remove unused variable.
(cmdpy_completer): Remove unused variable.
* python/py-frame.c (frapy_find_sal): Remove unused variable.
* python/py-function.c (fnpy_call): Remove unused variable.
* python/py-objfile.c (objfile_to_objfile_object):
Remove unused variable.
* python/py-param.c (parmpy_init): Remove unused variable.
* python/py-prettyprint.c (apply_varobj_pretty_printer):
Remove unused variable.
(gdbpy_default_visualizer): Remove unused variable.
* python/py-progspace.c (pspace_to_pspace_object):
Remove unused variable.
* python/py-symtab.c (symtab_and_line_to_sal_object):
Remove unused variable.
* python/py-type.c (typy_template_argument):
Remove unused variable.
* python/py-value.c (valpy_string): Remove unused variable.
(convert_value_from_python): Remove unused variables.
+2010-05-07 Michael Snyder <msnyder@vmware.com>
+
+ * python/python.c (execute_gdb_command): Remove unused variables.
+ * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
+ * python/py-breakpoint.c (gdbpy_breakpoint_created):
+ Remove unused variable.
+ * python/py-cmd.c (cmdpy_function): Remove unused variable.
+ (cmdpy_completer): Remove unused variable.
+ * python/py-frame.c (frapy_find_sal): Remove unused variable.
+ * python/py-function.c (fnpy_call): Remove unused variable.
+ * python/py-objfile.c (objfile_to_objfile_object):
+ Remove unused variable.
+ * python/py-param.c (parmpy_init): Remove unused variable.
+ * python/py-prettyprint.c (apply_varobj_pretty_printer):
+ Remove unused variable.
+ (gdbpy_default_visualizer): Remove unused variable.
+ * python/py-progspace.c (pspace_to_pspace_object):
+ Remove unused variable.
+ * python/py-symtab.c (symtab_and_line_to_sal_object):
+ Remove unused variable.
+ * python/py-type.c (typy_template_argument):
+ Remove unused variable.
+ * python/py-value.c (valpy_string): Remove unused variable.
+ (convert_value_from_python): Remove unused variables.
+
2010-05-07 Michael Snyder <msnyder@vmware.com>
* valops.c (value_cast_pointers): Restore unused variable 'type1',
struct block *block;
struct obj_section *section;
struct symtab *symtab;
- PyObject *sym_obj;
if (!PyArg_ParseTuple (args, "K", &pc))
return NULL;
newbp = PyObject_New (breakpoint_object, &breakpoint_object_type);
if (newbp)
{
- PyObject *hookfn;
-
newbp->number = num;
newbp->bp = bp;
bppy_breakpoints[num] = newbp;
if (! result)
{
PyObject *ptype, *pvalue, *ptraceback;
- char *s, *str;
PyErr_Fetch (&ptype, &pvalue, &ptraceback);
result = (char **) xmalloc ((len + 1) * sizeof (char *));
for (i = out = 0; i < len; ++i)
{
- int l;
PyObject *elt = PySequence_GetItem (resultobj, i);
if (elt == NULL || ! gdbpy_is_string (elt))
{
{
struct frame_info *frame;
struct symtab_and_line sal;
- struct objfile *objfile = NULL;
volatile struct gdb_exception except;
PyObject *sal_obj = NULL; /* Initialize to appease gcc warning. */
fnpy_call (struct gdbarch *gdbarch, const struct language_defn *language,
void *cookie, int argc, struct value **argv)
{
- int i;
struct value *value = NULL;
PyObject *result, *callable, *args;
struct cleanup *cleanup;
object = PyObject_New (objfile_object, &objfile_object_type);
if (object)
{
- PyObject *dict;
-
object->objfile = objfile;
object->printers = PyList_New (0);
char *cmd_name;
int parmclass, cmdtype;
PyObject *enum_values = NULL;
- struct cmd_list_element *cmd_list;
struct cmd_list_element **set_list, **show_list;
volatile struct gdb_exception except;
apply_varobj_pretty_printer (PyObject *printer_obj,
struct value **replacement)
{
- int size = 0;
PyObject *py_str = NULL;
*replacement = NULL;
gdbpy_default_visualizer (PyObject *self, PyObject *args)
{
PyObject *val_obj;
- PyObject *cons, *printer = NULL;
+ PyObject *cons;
struct value *value;
if (! PyArg_ParseTuple (args, "O", &val_obj))
object = PyObject_New (pspace_object, &pspace_object_type);
if (object)
{
- PyObject *dict;
-
object->pspace = pspace;
object->printers = PyList_New (0);
{
sal_object *sal_obj;
- symtab_object *symtab_obj;
int success = 0;
sal_obj = PyObject_New (sal_object, &sal_object_type);
static PyObject *
typy_template_argument (PyObject *self, PyObject *args)
{
- int i, argno, n_pointers;
+ int i, argno;
struct type *type = ((type_object *) self)->type;
struct demangle_component *demangled;
const char *err;
static PyObject *
valpy_string (PyObject *self, PyObject *args, PyObject *kw)
{
- int length = -1, ret = 0;
+ int length = -1;
gdb_byte *buffer;
struct value *value = ((value_object *) self)->value;
volatile struct gdb_exception except;
convert_value_from_python (PyObject *obj)
{
struct value *value = NULL; /* -Wall */
- PyObject *target_str, *unicode_str;
struct cleanup *old;
volatile struct gdb_exception except;
int cmp;
static PyObject *
execute_gdb_command (PyObject *self, PyObject *args)
{
- struct cmd_list_element *alias, *prefix, *cmd;
- char *arg, *newarg;
+ char *arg;
PyObject *from_tty_obj = NULL;
int from_tty;
int cmp;