Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- crosstool-NG/.build/src/gdb-7.10/gdb/python/python.c.orig 2015-08-28 17:22:07.000000000 -0400
- +++ crosstool-NG/.build/src/gdb-7.10/gdb/python/python.c 2020-05-17 15:11:30.526963236 -0400
- @@ -1620,6 +1620,13 @@
- restore_active_ext_lang (previous_active);
- }
- +#ifdef IS_PY3K
- +PyMODINIT_FUNC
- +PyInit__gdb (void)
- +{
- + return PyModule_Create (&python_GdbModuleDef);
- +}
- +#endif
- #endif
- /* Provide a prototype to silence -Wmissing-prototypes. */
- @@ -1743,6 +1750,9 @@
- remain alive for the duration of the program's execution, so
- it is not freed after this call. */
- Py_SetProgramName (progname_copy);
- +
- + /* Define _gdb as a built-in module. */
- + PyImport_AppendInittab ("_gdb", PyInit__gdb);
- #else
- Py_SetProgramName (progname);
- #endif
- @@ -1752,9 +1762,7 @@
- PyEval_InitThreads ();
- #ifdef IS_PY3K
- - gdb_module = PyModule_Create (&python_GdbModuleDef);
- - /* Add _gdb module to the list of known built-in modules. */
- - _PyImport_FixupBuiltin (gdb_module, "_gdb");
- + gdb_module = PyImport_ImportModule ("_gdb");
- #else
- gdb_module = Py_InitModule ("_gdb", python_GdbMethods);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement