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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, WEIRD_QUOTING autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d423dccf160531eb X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: GDB w/GNAT 3.11p w/NT4.0 Question Date: 1999/03/13 Message-ID: #1/1 X-Deja-AN: 454509720 Content-Transfer-Encoding: 7bit References: <36E81651.5B91E3D3@netspace.net.au> <7cb8fc$o2f$1@cnn.Princeton.EDU> <36EA7B3F.AB91BB97@netspace.net.au> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-03-13T00:00:00+00:00 List-Id: -----Original Message----- From: Jackie & Barry Schiff Newsgroups: comp.lang.ada To: Martin C. Carlisle Date: Saturday, March 13, 1999 8:50 AM Subject: Re: GDB w/GNAT 3.11p w/NT4.0 Question >Here is a small program that will show this behavior. > Unfortunately, the program you supplied would not compile. There is no Text_IO.Put_Line procedure with a parameter with the formal name "Last." I slightly reworked your program as follows: procedure Show_Debugger_Problem is Line : String (1 .. 100); Length : Natural; begin Ada.Text_Io.Put ("Enter Line : "); Ada.Text_Io.Get_Line (Item => Line, Last => Length); Ada.Text_Io.Put_Line ("You Entered """ & Line (1 .. Length) & """"); end Show_Debugger_Problem; And, to answer the previous post.... -----Original Message----- From: Jackie & Barry Schiff Newsgroups: comp.lang.ada To: Steve Doiel Date: Saturday, March 13, 1999 8:47 AM Subject: Re: GDB w/GNAT 3.11p w/NT4.0 Question >Thanks for your reply. Just a quick question. How do you run from a >console? When I type "gdb program.exe" in console window it brings up >the GUI debugger and I get the same behavior. Must be a switch I give to >GDB telling it not be GUI debugger? > As with almost all GNU programs, typing the command name with the single argument --help yields information about command line switches. For gdb: [d:/gnat_examples]$ gdb --help GDB 4.16.gnat.3.11b-1 (i686-pc-mingw32), Copyright 1996 Free Software Foundation, Inc. This is the GNU debugger. Usage: gdb [options] [executable-file [core-file or process-id]] Options: --help Print this message. --quiet Do not print version number on startup. --fullname Output information used by emacs-GDB interface. --emacs-gdbtk Enable emacs-GDBTK interface. --epoch Output information used by epoch emacs-GDB interface. --batch Exit after processing options. --nx Do not read .gdbinit file. --tty=TTY Use TTY for input/output by the program being debugged. --cd=DIR Change current directory to DIR. --directory=DIR Search for source files in DIR. --command=FILE Execute GDB commands from FILE. --symbols=SYMFILE Read symbols from SYMFILE. --exec=EXECFILE Use EXECFILE as the executable. --se=FILE Use FILE as symbol file and executable file. --core=COREFILE Analyze the core dump COREFILE. -b BAUDRATE Set serial port baud rate used for remote debugging. --mapped Use mapped symbol files if supported on this system. --readnow Fully read symbol files on first access. --nw Do not use a window interface. For more information, type "help" from within GDB, or consult the GDB manual (available as on-line info or a printed manual). [d:/gnat_examples]$ The other method which answers a significant portion of the questions posed about GNAT on this newsgroup is to read the wealth of documentation provided with GNAT. This method would have also told you about the -nw switch (which is quite common for GNU programs, by the way).