This is a multi-part message in MIME format.
Op 5-12-2024 om 9:21 schreef ldries46:
I think we do not understand each other. I an using the compiler 25.0
of he community. In this compiler that includes an editor you are
asked which .gpr file you want to use. As a result all files that are mentioned in the .gpr file can be reached by the editor as belonging
to the project. If you open another file it is not mentioned as a file beloning to the project. The compiler just compiles only the files
belonging to the project. uses the .gpr file only as a guideline howe
to create an .exe file. In the program I have a BUILD command which
has sub commands (CHECK SYNTAX, CHECK SEMANTIC, COMPILE FILE, PROJECT,
CLEAN, RUN, SETTINGS) of which PROJECT is split into BUILD & RUN, BUID
& DEBUG. I have tried CHECK SYNTAX, CHECK CHECK SEMANTIC, which are
all without error, COMPILE, PROJECT/.. create errors So what do
exactly do wrong.
In mean time I found:
It looks like there is a complete compilation I have set a breakpoint at
line 44 of the main procedure of the program and with a part of the
listing of the BUILD & DEBUG I see:
(gdb) whatis n_ini
type = integer
(gdb) ptype n_ini
type = <4-byte integer>
(gdb) print n_ini
$1 = 0
(gdb) print n_ini
$2 = 0
(gdb) break sudoku_main.adb:44
Breakpoint 1 at 0x4015a8: file
D:\ada\project\Sudoku\src\sudoku_main.adb, line 44.
(gdb) info breakpoints
Num Type Disp Enb Address What
1 breakpoint keep y 0x00000000004015a8 in sudoku_main at D:\ada\project\Sudoku\src\sudoku_main.adb:44
(gdb) info breakpoints
Num Type Disp Enb Address What
1 breakpoint keep y 0x00000000004015a8 in sudoku_main at D:\ada\project\Sudoku\src\sudoku_main.adb:44
(gdb) ptype &use
No definition of "use" in current context.
(gdb)
The part of the program is:
41 procedure Sudoku_main is
42 begin
43 n_ini := 2;
44 n_ini := Use_File("Sudoku");
45 Box_H := Get_Value(n_ini, "Grid", "H", 3);
etc...
The program stops before line 44.
Restarting the program to the next line result in
(gdb) where
No stack.
(gdb) x/32gx
0x000000000000000000000000000000000000000000000000000000000000000
0x0: Cannot access memory at address 0x0
(gdb) x/256b
0x000000000000000000000000000000000000000000000000000000000000000
0x0: Cannot access memory at address 0x0
(gdb) <^C>
So it looks like the program is still not starting
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Op 5-12-2024 om 9:21 schreef ldries46:<br>
</div>
<blockquote type="cite"
cite="mid:nnd$0c77a74a$7903d583@d25fd620e9918bf1">I think we do
not understand each other. I an using the compiler 25.0 of he
community. In this compiler that includes an editor you are asked
which .gpr file you want to use. As a result all files that are
mentioned in the .gpr file can be reached by the editor as
belonging to the project. If you open another file it is not
mentioned as a file beloning to the project. The compiler just
compiles only the files belonging to the project. uses the .gpr
file only as a guideline howe to create an .exe file. In the
program I have a BUILD command which has sub commands (CHECK
SYNTAX, CHECK SEMANTIC, COMPILE FILE, PROJECT, CLEAN, RUN,
SETTINGS) of which PROJECT is split into BUILD & RUN, BUID
& DEBUG. I have tried CHECK SYNTAX, CHECK CHECK SEMANTIC,
which are all without error, COMPILE, PROJECT/.. create errors
So what do exactly do wrong.
<br>
</blockquote>
In mean time I found:<br>
It looks like there is a complete compilation I have set a
breakpoint at line 44 of the main procedure of the program and with
a part of the listing of the BUILD & DEBUG I see: <br>
<p style="line-height: 100%; margin-bottom: 0cm">
(gdb) whatis n_ini</p>
<p style="line-height: 100%; margin-bottom: 0cm">type = integer</p>
<p style="line-height: 100%; margin-bottom: 0cm">(gdb) ptype n_ini</p>
<p style="line-height: 100%; margin-bottom: 0cm">type = <4-byte
integer></p>
<p style="line-height: 100%; margin-bottom: 0cm">(gdb) print n_ini</p>
<p style="line-height: 100%; margin-bottom: 0cm">$1 = 0</p>
<p style="line-height: 100%; margin-bottom: 0cm">(gdb) print n_ini</p>
<p style="line-height: 100%; margin-bottom: 0cm">$2 = 0</p>
<p style="line-height: 100%; margin-bottom: 0cm">(gdb) break
sudoku_main.adb:44</p>
<p style="line-height: 100%; margin-bottom: 0cm">Breakpoint 1 at
0x4015a8: file D:\ada\project\Sudoku\src\sudoku_main.adb, line 44.</p>
<p style="line-height: 100%; margin-bottom: 0cm">(gdb) info
breakpoints</p>
<p style="line-height: 100%; margin-bottom: 0cm">Num Type Disp Enb
Address What</p>
<p style="line-height: 100%; margin-bottom: 0cm">1 breakpoint keep y
0x00000000004015a8 in sudoku_main at
D:\ada\project\Sudoku\src\sudoku_main.adb:44</p>
<p style="line-height: 100%; margin-bottom: 0cm">(gdb) info
breakpoints</p>
<p style="line-height: 100%; margin-bottom: 0cm">Num Type Disp Enb
Address What</p>
<p style="line-height: 100%; margin-bottom: 0cm">1 breakpoint keep y
0x00000000004015a8 in sudoku_main at
D:\ada\project\Sudoku\src\sudoku_main.adb:44</p>
<p style="line-height: 100%; margin-bottom: 0cm">(gdb) ptype
&use</p>
<p style="line-height: 100%; margin-bottom: 0cm">No definition of
"use" in current context.</p>
<p style="line-height: 100%; margin-bottom: 0cm">(gdb) <br>
</p>
<p style="line-height: 100%; margin-bottom: 0cm">The part of the
program is:</p>
<p style="line-height: 100%; margin-bottom: 0cm">41 procedure
Sudoku_main is<br>
42 begin<br>
43 n_ini := 2;<br>
44 n_ini := Use_File("Sudoku");<br>
45 Box_H := Get_Value(n_ini, "Grid", "H", 3);</p>
<p style="line-height: 100%; margin-bottom: 0cm">etc...</p>
<p style="line-height: 100%; margin-bottom: 0cm">The program stops
before line 44.</p>
<p style="line-height: 100%; margin-bottom: 0cm">Restarting the
program to the next line result in</p>
<p style="line-height: 100%; margin-bottom: 0cm">(gdb) where<br>
No stack.<br>
(gdb) x/32gx
0x000000000000000000000000000000000000000000000000000000000000000<br>
0x0: Cannot access memory at address 0x0<br>
(gdb) x/256b
0x000000000000000000000000000000000000000000000000000000000000000<br>
0x0: Cannot access memory at address 0x0<br>
(gdb) <^C></p>
<p style="line-height: 100%; margin-bottom: 0cm">So it looks like
the program is still not starting<br>
</p>
</body>
</html>
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)