From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!peer03.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx34.iad.POSTED!not-for-mail Newsgroups: comp.lang.ada X-Mozilla-News-Host: news://news.newsdemon.com:119 From: Rick Newbie Subject: Ada Community and GDB/Python problems User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Date: Thu, 06 Feb 2020 19:49:40 UTC Date: Thu, 6 Feb 2020 11:49:40 -0800 X-Received-Bytes: 4737 X-Received-Body-CRC: 1755021480 Xref: reader01.eternal-september.org comp.lang.ada:58008 Date: 2020-02-06T11:49:40-08:00 List-Id: Hi all, I'm trying to get going with Ada community edition. So far so good but I had major problems with Python. I always get error messages when trying to debug, messages that show that the wrong number of parameters are provided to Python calls. It is as if the community pack contains the wrong version of Python. For instance I compiled my hello world program with debug info etc, then tried to start gdb from the commandline. At first it tells me it can't find the pyton libraries. Then I follow the suggestions and supply the python path like so: gdb --data-directory=D:\GNAT\2019\share\gdb-8.3 and I get a ton of errors: Traceback (most recent call last): File "D:\GNAT\2019\share\gdb-8.3/python\gdb\__init__.py", line 143, in auto_load_packages __import__(modname) File "D:\GNAT\2019\share\gdb-8.3/python\gdb\command\explore.py", line 746, in Explorer.init_env() File "D:\GNAT\2019\share\gdb-8.3/python\gdb\command\explore.py", line 135, in init_env gdb.TYPE_CODE_RVALUE_REF : ReferenceExplorer, AttributeError: 'module' object has no attribute 'TYPE_CODE_RVALUE_REF' Traceback (most recent call last): File "D:\GNAT\2019\share\gdb-8.3/python\gdb\__init__.py", line 143, in auto_load_packages __import__(modname) File "D:\GNAT\2019\share\gdb-8.3/python\gdb\command\frame_filters.py", line 21, in import copy File "D:\GNAT\2019\share\gdb-8.3\python-2.7.16\lib\copy.py", line 52, in import weakref File "D:\GNAT\2019\share\gdb-8.3\python-2.7.16\lib\weakref.py", line 21 ReferenceType), ^ SyntaxError: invalid syntax Traceback (most recent call last): File "D:\GNAT\2019\share\gdb-8.3/python\gdb\__init__.py", line 143, in auto_load_packages __import__(modname) File "D:\GNAT\2019\share\gdb-8.3/python\gdb\command\pretty_printers.py", line 19, in import copy File "D:\GNAT\2019\share\gdb-8.3\python-2.7.16\lib\copy.py", line 52, in import weakref File "D:\GNAT\2019\share\gdb-8.3\python-2.7.16\lib\weakref.py", line 21 ReferenceType), ^ SyntaxError: invalid syntax Traceback (most recent call last): File "D:\GNAT\2019\share\gdb-8.3/python\gdb\__init__.py", line 143, in auto_load_packages __import__(modname) File "D:\GNAT\2019\share\gdb-8.3/python\gdb\command\type_printers.py", line 17, in import copy File "D:\GNAT\2019\share\gdb-8.3\python-2.7.16\lib\copy.py", line 52, in import weakref File "D:\GNAT\2019\share\gdb-8.3\python-2.7.16\lib\weakref.py", line 21 ReferenceType), ^ SyntaxError: invalid syntax GNU gdb (GDB) 7.8 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-w64-mingw32". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) Again this is just the install package from Adacore. I am using Windows 10 and I must admit that I don't have experience with gcc or gdb. To my knowledge there was never another python installation on my machine, not unless some other application installed it silently but I checked and can't find anything Python related, so this should be the only one (2.7.16). I just have no idea how to fix this since I would assume that the pack from Adacore should run out of the box. Any help is appreciated.