comp.lang.ada
 help / color / mirror / Atom feed
From: Brian May <bam@snoopy.apana.org.au>
Subject: Re: GDB 2.8.1 defect
Date: Thu, 24 Nov 2005 18:01:15 +1100
Date: 2005-11-24T18:01:15+11:00	[thread overview]
Message-ID: <sa4acfufs1w.fsf@snoopy.microcomaustralia.com.au> (raw)
In-Reply-To: slrndoas4l.2v0.bogus_addy@tango.mindfuq.org

>>>>> "Anonymous" == Anonymous Coward <spam@spam.com> writes:

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

on debian/sarge, powerpc, gnat 3.15p-12 compiler:

# gdb gdb_final_failure
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) tbreak gdb_final_failure.adb:5
Breakpoint 1 at 0x1800c2c: file gdb_final_failure.adb, line 5.
(gdb) run
Starting program: /home/bam/tmp/gdb_final_failure
gdb_final_failure.simple_float () at gdb_final_failure.adb:5
5                return 5.5;
(gdb) finish
Run till exit from #0  gdb_final_failure.simple_float ()
    at gdb_final_failure.adb:5
0x01800c68 in gdb_final_failure () at gdb_final_failure.adb:12
12            Some_Float := Simple_Float;
Value returned is $1 = 5.5
(gdb) next
13            null;
(gdb) info locals
some_float = 5.5
(gdb) c
Continuing.

Program exited normally.
(gdb) q

It looks OK to me...
-- 
Brian May <bam@snoopy.apana.org.au>



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