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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:ae9:d887:: with SMTP id u129mr14512793qkf.357.1576975091874; Sat, 21 Dec 2019 16:38:11 -0800 (PST) X-Received: by 2002:a05:6830:1185:: with SMTP id u5mr22158084otq.147.1576975091654; Sat, 21 Dec 2019 16:38:11 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!feeder1.feed.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!g89no5952209qtd.0!news-out.google.com!w29ni365qtc.0!nntp.google.com!g89no5952202qtd.0!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 21 Dec 2019 16:38:11 -0800 (PST) In-Reply-To: <4e411af7-682b-4d46-9454-85b0f8c0b410@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=75.69.31.70; posting-account=7VSCsgoAAADneoYABehA8vtOW93URdR9 NNTP-Posting-Host: 75.69.31.70 References: <4e411af7-682b-4d46-9454-85b0f8c0b410@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: GDB Problems with new install of GPS 2019 x86 64 Windows From: William Thomas Injection-Date: Sun, 22 Dec 2019 00:38:11 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:57754 Date: 2019-12-21T16:38:11-08:00 List-Id: 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? >=20 > Any suggestions?=20 >=20 >=20 > C:\GNAT\2019\bin\gdb.exe: warning: Couldn't determine a path for the inde= x 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 > import copy > File "c:\gnat\2019\share\gdb-8.3\python-2.7.16\lib\copy.py", line 52, i= n > import weakref > File "c:\gnat\2019\share\gdb-8.3\python-2.7.16\lib\weakref.py", line 14= , in > 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 deb= ug my Hello World program.=20 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, becau= se 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.