comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: GDB Problems with new install of GPS 2019 x86 64 Windows
Date: Sun, 22 Dec 2019 11:44:47 +0000
Date: 2019-12-22T11:44:47+00:00	[thread overview]
Message-ID: <lysglcfuts.fsf@pushface.org> (raw)
In-Reply-To: d516fef5-e32e-499a-bf4a-0b2788c680f4@googlegroups.com

William Thomas <billybits1815@gmail.com> writes:

> On Friday, December 20, 2019 at 10:55:15 AM UTC-5, William Thomas wrote:
>> Running Windows 10.
>> When trying to debug a simple Hello World main, I get this (three times).
>> Tried running it as admin, maybe I have to install as admin? Or maybe its a Python GPS command thing?
>> 
>> Any suggestions? 
>> 
>> 
>> C:\GNAT\2019\bin\gdb.exe: warning: Couldn't determine a path for the index cache directory.
>> Traceback (most recent call last):
>>   File "c:\gnat\2019\share\gdb-8.3/python\gdb\__init__.py", line 143, in auto_load_packages
>>     __import__(modname)
>>   File "c:\gnat\2019\share\gdb-8.3/python\gdb\command\frame_filters.py", line 21, in <module>
>>     import copy
>>   File "c:\gnat\2019\share\gdb-8.3\python-2.7.16\lib\copy.py", line 52, in <module>
>>     import weakref
>>   File "c:\gnat\2019\share\gdb-8.3\python-2.7.16\lib\weakref.py", line 14, in <module>
>>     from _weakref import (
>> ImportError: cannot import name _remove_dead_weakref
>
> OK,
>
> So I go into the file weakref.py and I comment out the following:
>
> from _weakref import (
>      getweakrefcount,
>      getweakrefs,
>      ref,
>      proxy,
>      CallableProxyType,
>      ProxyType,
>      ReferenceType) #,
> #     _remove_dead_weakref)
>
> I just removed the "_remove_dead_weakref" (kind of ironic) from the
> python import thingy and now it works. GDB fired up and I can finally
> start to debug my Hello World program.

I wonder whether you have python 3 installed? maybe running 3 with
2.7-related libraries causes trouble? (both 2.7.16 and 3.7.4 execute
that import on its own just fine).

No idea why GNAT CE includes so much gdb-related python; standard gdb
(8.3) such as I run on Mac with FSF GCC 9.1.0 doesn't.

  reply	other threads:[~2019-12-22 11:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-20 15:55 GDB Problems with new install of GPS 2019 x86 64 Windows William Thomas
2019-12-21 22:55 ` William Thomas
2019-12-22  0:26 ` William Thomas
2019-12-22  0:38 ` William Thomas
2019-12-22 11:44   ` Simon Wright [this message]
2019-12-27 17:04   ` gautier_niouzes
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox