comp.lang.ada
 help / color / mirror / Atom feed
From: William Thomas <billybits1815@gmail.com>
Subject: Re: GDB Problems with new install of GPS 2019 x86 64 Windows
Date: Sat, 21 Dec 2019 16:38:11 -0800 (PST)
Date: 2019-12-21T16:38:11-08:00	[thread overview]
Message-ID: <d516fef5-e32e-499a-bf4a-0b2788c680f4@googlegroups.com> (raw)
In-Reply-To: <4e411af7-682b-4d46-9454-85b0f8c0b410@googlegroups.com>

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. 

So like wow, I've been working with Ada, for the last several decades, and I must have missed it when the big snake came in and took over.

It seams like that big old snake can in a wrapped itself around everything. Can hardly see the Ada anymore. Oh well, the big snake must be cool, because everyone is using it. Heck it's even one of the big stars on Mr. Robot, so its got to be good, and good for you.

Thanks Bill.


  parent reply	other threads:[~2019-12-22  0:38 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 [this message]
2019-12-22 11:44   ` Simon Wright
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