System notice: In light of the Debian OpenSSL security issue we've regenerated the server keys. See this thread for instructions and the new key fingerprints.

Commit 0347638ccc0fb8bc787a724ea8a421e322872d3c

Enable optimized compilation when using Python 2.4.

Commit diff

gdb/python/hooks.c

 
3636 hooks = PyObject_GetAttrString (gdb_module, "hooks");
3737 if (! hooks)
3838 return NULL;
39 if (! PyObject_HasAttrString (hooks, name))
39 /* The cast is because the Python function doesn't declare const argument.
40 This is a problem in Python version 2.4, but not in 2.5. */
41 if (! PyObject_HasAttrString (hooks, (char *) name))
4042 return NULL;
41 return PyObject_GetAttrString (hooks, name);
43 /* The cast is because the Python function doesn't declare const argument.
44 This is a problem in Python version 2.4, but not in 2.5. */
45 return PyObject_GetAttrString (hooks, (char *) name);
4246}
4347
4448static void
toggle raw diff

gdb/python/python.c

 
480480PyObject *
481481gdbpy_decode_line (PyObject *self, PyObject *args)
482482{
483 struct symtabs_and_lines sals;
483 struct symtabs_and_lines sals = { NULL, 0 }; /* Initialize to appease gcc. */
484484 struct symtab_and_line sal;
485485 char *arg = NULL;
486486 int free_sals = 0, i;
toggle raw diff