Make array object extern
authorPedro Alves <palves@redhat.com>
Mon, 9 Feb 2015 14:59:06 +0000 (14:59 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 27 Feb 2015 17:25:45 +0000 (17:25 +0000)
commitbcabf4207e7ba20f09e15141c6c3241862ac4aee
treeea68f77b498cc69730ff6867de4977f6898d7947
parent928dbe07562fa842a990d1c3aa65e12343426e68
Make array object extern

Compiling python.c in C++ mode, we get:

  ...src/gdb/python/python.c: At global scope:
  ...src/gdb/python/python.c:106:31: error: storage size of ‘GdbMethods’ isn’t known
   static PyMethodDef GdbMethods[];
 ^

Fix it by making the affected array objects extern.

gdb/ChangeLog:
2015-02-27  Pedro Alves  <palves@redhat.com>

* python/python.c (GdbMethods): Rename to ...
(python_GdbMethods): ... this and make extern.
(GdbModuleDef): Rename to ...
(python_GdbModuleDef): ... this and make extern.
gdb/ChangeLog
gdb/python/python.c