Fixing "run" on Win32

Devlin Bentley <[email protected]> Wed, 18 Aug 2004 15:52:13 -0700
Newsgroups gmane.comp.ide.gps.devel
Message-ID <[email protected]>
"Run using external termina" doesn't work, set to XTerm by default,
even when set to Cmd, does not work because FAT32/NTFS demands any path
with spaces in it be in quotes ("path with spaces" ).

Simple batch file fix,

cmd /k "%*"

will work for any directory with up to 8 spaces in the name (variables
%1 through %9).

GPS refuses to detect executable files aside from .bat in the path
statement. No clue WHY that was implemented, we Windows folk may be
savages, but we do happen to do some occasional scripting/batch work.

Compile .bat file into an EXE, problem solved.

EXE file available on request.

Oh, and run without using external terminal just plain doesn't work
(Ada.Text_IO.Put does not even function. . . .)

The GNU Visual Debugger has the same issue (does not put paths in
quotes), resulting it it only being useful when projects do not have
any spaces in their paths.

Back to GPS;

Within the debugger, typing "Help Target" correctly displays for
"target child" the message "Win32 Child Process (started by the "run"
command)"

Typing in "target child" then says "Use the "run" command to start a
Unix child process."

Not serious, but at very least amusing.

Overall the debugger is rather confusing.

(gdb) target child

Use the "run" command to start a Unix child process.

(gdb) run

No executable specified, use `target exec'.

(gdb) load C:/ADA/Assignment 6/Point2D/point2d_test.exe

You can't do that when your target is `None'

(gdb) target exec

(gdb) load C:/ADA/Assignment 6/Point2D/point2d_test.exe

You can't do that when your target is `None'

(gdb) target exec

(gdb) load C:\Ada\Assignment 6\Point2D\Point2d_Test.exe

You can't do that when your target is `None'

(gdb)

okaaaay....

Oh, and

(gdb) add-symbol-file C:/ADA/Assignment
6/Point2D/Point2D_Test.adb

add symbol table from file "C:/ADA/Assignment" at

.text_addr = 0x6

C:/ADA/Assignment: No such file or directory.

--

-------------------
Devlin Bentley
[email protected]

_______________________________________________
gps-devel mailing list
[email protected]
http://lists.adacore.com/mailman/listinfo/gps-devel