comp.lang.ada
 help / color / mirror / Atom feed
From: Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject: Re: Alternative for Gnat Studio
Date: Thu, 25 Feb 2021 09:48:29 -0500	[thread overview]
Message-ID: <kldf3g9arrovpicvvc00hbn66a6e735nfk@4ax.com> (raw)
In-Reply-To: 60379b69$0$20345$e4fe514c@news.kpn.nl

On Thu, 25 Feb 2021 13:43:20 +0100, ldries46 <bertus.dries@planet.nl>
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 <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

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

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

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
<http://gnu.org/licenses/gpl.html>
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/

  reply	other threads:[~2021-02-25 14:48 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <602e608e$0$27680$e4fe514c@news.kpn.nl>
2021-02-19  3:17 ` Alternative for Gnat Studio Matt Borchers
2021-02-19  8:16   ` Luke A. Guest
2021-02-20 15:48   ` ldries46
2021-02-20 16:12     ` Chris Townley
2021-02-21 12:06       ` ldries46
2021-02-22  7:00         ` Roger Mc
2021-02-22 11:20           ` Simon Wright
2021-02-23  7:52             ` ldries46
2021-02-24  8:11           ` Vadim Godunko
2021-02-24 10:06             ` Roger Mc
2021-02-24 11:42               ` Vadim Godunko
2021-03-05  9:36         ` Jerry
2021-03-05 13:37           ` DrPi
2021-03-06 12:14             ` Jérôme Haguet
2021-03-06 15:22               ` DrPi
2021-02-25 12:43 ` ldries46
2021-02-25 14:48   ` Dennis Lee Bieber [this message]
2021-02-25 18:10   ` Simon Wright
2021-02-25 23:51   ` Stephen Leake
2021-02-26  7:56   ` Dmitry A. Kazakov
2021-02-28 22:54     ` Stephen Leake
2021-03-01 18:04       ` Ludovic Brenta
2021-03-02  5:11       ` John Perry
2021-03-02  8:04         ` Simon Wright
2021-03-02  8:08         ` Emmanuel Briot
2021-03-02  9:13           ` rr (was: Re: Alternative for Gnat Studio) Simon Wright
2021-03-02  9:23             ` Emmanuel Briot
2021-03-04 22:48               ` rr Simon Wright
2021-03-04 22:53             ` rr Simon Wright
2021-03-05  6:53               ` rr Emmanuel Briot
2021-03-03  3:31           ` Alternative for Gnat Studio John Perry
2021-03-05 12:58         ` ldries46
2021-03-05 13:24           ` J-P. Rosen
2021-03-06 19:21 ` Daniel Norte Moraes
2021-03-13 16:17 ` Jaime Tarrasa
2021-03-13 16:26   ` Egil H H
2021-03-13 17:40   ` Stephen Leake
2021-03-13 22:07   ` Simon Wright
2021-03-13 23:35     ` Roger Mc
2021-03-14  6:34       ` Jeffrey R. Carter
2021-03-14  8:47       ` Simon Wright
replies disabled

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