comp.lang.ada
 help / color / mirror / Atom feed
From: Anonymous Coward <spam@spam.com>
Subject: GDB 2.8.1 defect
Date: Thu, 24 Nov 2005 05:47:40 GMT
Date: 2005-11-24T05:47:40+00:00	[thread overview]
Message-ID: <slrndoas4l.2v0.bogus_addy@tango.mindfuq.org> (raw)
In-Reply-To: slrndnvn7l.1r7.bogus_addy@tango.mindfuq.org

In article.., Anonymous Coward wrote:
> 
> One such problem is that the "finish" command does not work.  I had
> a function that returned a float constrained to -1.0 to 1.0.  The
> "finish" command incorrectly reported the function to return
> -1.999xxx when it actually returned 0.89xxx.  So the "finish"
> command cannot be trusted on version 2.8.1.  I'll try to isolate
> that code into a small demonstration, which I will post if someone
> wants to see it.

Okay, here is a piece of code to illustrate the defect:

   procedure GDB_Final_Failure is

      function Simple_Float return Float is
      begin
         return 5.5;
      end Simple_Float;

      Some_Float : Float;

   begin

      Some_Float := Simple_Float;
      null;

   end GDB_Final_Failure;

Run these commands in gdb:

   tbreak gdb_final_failure.adb:5
   run
   finish # observe that it claims to return ~-1.999
   next
   info locals # notice that it actually returned 5.5

I'm not sure if this defect has been corrected in recent versions.



  reply	other threads:[~2005-11-24  5:47 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
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         ` Anonymous Coward [this message]
2005-11-24  7:01           ` GDB 2.8.1 defect 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