[PATCH] fix build failure with Python 3.7

Pedro Alves palves@redhat.com
Fri Jun 1 13:10:00 GMT 2018


On 06/01/2018 01:54 PM, Paul.Koning@dell.com wrote:

>> Can the function be made static?
> 
> No; I did that first but PyMODINIT_FUNC is a #define that conflicts with "static".

I see.

>> I'm a little surprised to see the function being named "Py...", since
>> that kind of looks like stepping in Python's namespace.
> 
> True.  How about "init__gdb_module"?

Sounds fine to me.

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list