comp.lang.ada
 help / color / mirror / Atom feed
From: Anonymous Coward <spam@spam.com>
Subject: Re: Debugger for GNAT
Date: Sat, 19 Nov 2005 15:39:49 GMT
Date: 2005-11-19T15:39:49+00:00	[thread overview]
Message-ID: <slrndnuotp.1qh.bogus_addy@tango.mindfuq.org> (raw)
In-Reply-To: m2veypo9os.fsf@grendel.local

Regarding this discussion as to whether GDB is robust, I've
encountered many problems with GDB, many of which I believe are not
user errors.  I'd like to post some examples of the anomalies I've
observed, to see if you folks can discover user errors that I'm
unaware of.

Here is the first example.  Keeping it simple, I'm merely asking gdb
to list the functions that I can set breakpoints in.

[hello_world.adb]

   with Ada.Text_IO;

   procedure Hello_World is

      function Hello_World_String return String is
      begin

         return "Hello world!";

      end Hello_World_String;

   begin

      Ada.Text_IO.Put_Line(Hello_World_String);

   end Hello_World;

compiled as:

   $ gnatmake -O0 -ggdb hello_world.adb
   gcc -c -O0 -ggdb hello_world.adb
   gnatbind -x hello_world.ali
   gnatlink -ggdb hello_world.ali

GDB session:

   GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
   (gdb) file hello_world
   Reading symbols from hello_world...done.
   (gdb) info function
   internal error - unimplemented function unk_lang_create_fundamental_type called.
   (gdb) break hello_world.adb:14
   internal error - unimplemented function unk_lang_create_fundamental_type called.

So GDB finds no functions, and it also fails to set a breakpoint on
line 14.



  reply	other threads:[~2005-11-19 15:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-18 12:43 Debugger for GNAT markp
2005-11-18 14:07 ` Jeff Creem
2005-11-18 14:11 ` Marc A. Criley
2005-11-18 22:47 ` Simon Wright
2005-11-19 15:39   ` Anonymous Coward [this message]
2005-11-19 16:47     ` Ludovic Brenta
2005-11-19 23:55     ` Georg Bauhaus
2005-11-20  0:17       ` Anonymous Coward
2005-11-24  5:47         ` GDB 2.8.1 defect Anonymous Coward
2005-11-24  7:01           ` Brian May
2005-11-24 12:17             ` Georg Bauhaus
replies disabled

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