comp.lang.ada
 help / color / mirror / Atom feed
* GDB Problems with new install of GPS 2019 x86 64 Windows
@ 2019-12-20 15:55 William Thomas
  2019-12-21 22:55 ` William Thomas
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: William Thomas @ 2019-12-20 15:55 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GDB Problems with new install of GPS 2019 x86 64 Windows
  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
  2 siblings, 0 replies; 6+ messages in thread
From: William Thomas @ 2019-12-21 22:55 UTC (permalink / raw)


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

Is it my breath?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GDB Problems with new install of GPS 2019 x86 64 Windows
  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
  2 siblings, 0 replies; 6+ messages in thread
From: William Thomas @ 2019-12-22  0:26 UTC (permalink / raw)


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

No your just lazy!


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GDB Problems with new install of GPS 2019 x86 64 Windows
  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
  2019-12-27 17:04   ` gautier_niouzes
  2 siblings, 2 replies; 6+ messages in thread
From: William Thomas @ 2019-12-22  0:38 UTC (permalink / raw)


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GDB Problems with new install of GPS 2019 x86 64 Windows
  2019-12-22  0:38 ` William Thomas
@ 2019-12-22 11:44   ` Simon Wright
  2019-12-27 17:04   ` gautier_niouzes
  1 sibling, 0 replies; 6+ messages in thread
From: Simon Wright @ 2019-12-22 11:44 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GDB Problems with new install of GPS 2019 x86 64 Windows
  2019-12-22  0:38 ` William Thomas
  2019-12-22 11:44   ` Simon Wright
@ 2019-12-27 17:04   ` gautier_niouzes
  1 sibling, 0 replies; 6+ messages in thread
From: gautier_niouzes @ 2019-12-27 17:04 UTC (permalink / raw)


> 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.

Big snake? Big snake*s* (2.7, 3.6, ...) !

https://xkcd.com/1987/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-12-27 17:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2019-12-27 17:04   ` gautier_niouzes

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