From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!news.uzoreto.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 25 Feb 2021 08:48:29 -0600 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: Alternative for Gnat Studio Date: Thu, 25 Feb 2021 09:48:29 -0500 Organization: IISS Elusive Unicorn Message-ID: References: <602e608e$0$27680$e4fe514c@news.kpn.nl> <60379b69$0$20345$e4fe514c@news.kpn.nl> User-Agent: ForteAgent/8.00.32.1272 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-iUBh/bDPdNbQLT88spilWQoQH74KZws4rRz5TaGfPktsWCGdtlFmwUa37K0E787UJRRz/nUkj3667AI!esDkE0Yc5iis2x633dRG9dRgYTV403o66zZDV6id6vn11v4cCDbgUO2dkFh6D19LYJ2+GFzH X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 5817 Xref: reader02.eternal-september.org comp.lang.ada:61444 List-Id: On Thu, 25 Feb 2021 13:43:20 +0100, ldries46 declaimed the following: >My problem has become more acute. Till now I avoided the debugging >option in the GNAT 2020 Community edition by badding print statements >within the normal running program but now I have an error mentioned >somewhere within the Ada. Unbounded_Strings which is used on a lot of >positions in the program. The only way I know to detect wher the problem >is is using the debug option with several brakpoints and as possible >shifting these around to find this error but uding the debu option just >makes the program coming to the "program does not react". So either this >problem must be solved (who knows how) or an other compiler and debugger >combination that really works (and is freeware) Who knows which and has >a good tutorial how to install. Up to this moment with Visual Suodio I >do not know how to do that. So far as I know, the debugger used for GNAT is a version of GDB. GDB originated with a command line interface. Have you tried opening a command shell and invoking the debugger (and your executable) from there, then using GDB commands to set any needed breakpoints, etc.? I've never used GDB so my knowledge is rather limited -- I'd have to keep the help file open in a browser. The last debugger I had any real experience using was the one in (Open)VMS, and I was usually debugging F77 logic. I've also not updated to GNAT 2020 yet -- looks like 2019 has some Python related glitches too, but it did run... -=-=- C:\Users\Wulfraed\Documents\_Hg-Repositories\Ada Progs>gdb threeint.exe 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 import copy File "c:\gnat\2019\share\gdb-8.3\python-2.7.16\lib\copy.py", line 52, in 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 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\pretty_printers.py", line 19, in import copy File "c:\gnat\2019\share\gdb-8.3\python-2.7.16\lib\copy.py", line 52, in 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 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\type_printers.py", line 17, in import copy File "c:\gnat\2019\share\gdb-8.3\python-2.7.16\lib\copy.py", line 52, in 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 GNU gdb (GDB) 8.3 for GNAT Community 2019 [rev=gdb-8.3-ref-194-g3fc1095] Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. See your support agreement for details of warranty and support. If you do not have a current support agreement, then there is absolutely no warranty for this version of GDB. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-mingw32". Type "show configuration" for configuration details. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from threeint.exe... (gdb) r Starting program: C:\Users\Wulfraed\Documents\_Hg-Repositories\Ada Progs\threeint.exe [New Thread 15068.0x17a0] [New Thread 15068.0x5f0] Enter three integers => 123 456 8373 A + B = 579 C - B = 7917 [Thread 15068.0x17a0 exited with code 0] [Thread 15068.0x5f0 exited with code 0] [Inferior 1 (process 15068) exited normally] (gdb) q C:\Users\Wulfraed\Documents\_Hg-Repositories\Ada Progs> -=-=- -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/