* Re: gdb(1) quirks ...
@ 2001-01-10 19:48 S.D. Brown
2001-01-11 6:47 ` Andrei A. Dergatchev
0 siblings, 1 reply; 4+ messages in thread
From: S.D. Brown @ 2001-01-10 19:48 UTC (permalink / raw)
To: axp-list
I just grabbed and built the gdb 5.0 and I am getting the same types
of results. Again, the "test" below may look bizarre, but trying to
do the same with two floats or doubles in a program yields the same
results.
--
GNU gdb 5.0
Copyright 2000 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 "alphaev56-unknown-linux-gnu".
Setting up the environment for debugging gdb.
No symbol table is loaded. Use the "file" command.
(gdb) p 1.0+1
$1 = 0
(gdb) Erroneous arithmetic operation.
(gdb) p 1.0+1.0
$2 = 0
(gdb)
Scott
--
Scott D. Brown // Scientist // brown@cis.rit.edu
Digital Imaging and Remote Sensing Lab // Rochester Institute of Technology
54 Lomb Memorial Dr. Rochester, NY 14623 // 716.475.7194 // FX:716.475.5988
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gdb(1) quirks ...
2001-01-10 19:48 gdb(1) quirks S.D. Brown
@ 2001-01-11 6:47 ` Andrei A. Dergatchev
0 siblings, 0 replies; 4+ messages in thread
From: Andrei A. Dergatchev @ 2001-01-11 6:47 UTC (permalink / raw)
To: axp-list
Hi,
> I just grabbed and built the gdb 5.0 and I am getting the same types
> of results. Again, the "test" below may look bizarre, but trying to
> do the same with two floats or doubles in a program yields the same
> results.
>
> --
> GNU gdb 5.0
> Copyright 2000 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 "alphaev56-unknown-linux-gnu".
> Setting up the environment for debugging gdb.
> No symbol table is loaded. Use the "file" command.
> (gdb) p 1.0+1
> $1 = 0
> (gdb) Erroneous arithmetic operation.
> (gdb) p 1.0+1.0
> $2 = 0
> (gdb)
Currently I'm running Debian and not Redhat, I also built gdb 5.0
myself yesterday and I can't repeat the errors you're getting:
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
andrei@wit379215:~$ /usr/local/bin/gdb
GNU gdb 5.0
Copyright 2000 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 "alphapca56-unknown-linux-gnu".
(gdb) p 1.0+1
$1 = 2
(gdb) p 1.0+1.0
$2 = 2
(gdb)
My Alpha is sx164, what is yours - LX ? Which version of glibc you're running ?
>
> Scott
>
> --
> Scott D. Brown // Scientist // brown@cis.rit.edu
> Digital Imaging and Remote Sensing Lab // Rochester Institute of Technology
> 54 Lomb Memorial Dr. Rochester, NY 14623 // 716.475.7194 // FX:716.475.5988
>
Regards,
Andrei
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20010109225502.39C712F79B@listman.redhat.com>]
* gdb(1) quirks ...
[not found] <20010109225502.39C712F79B@listman.redhat.com>
@ 2001-01-10 14:16 ` S.D. Brown
2001-01-10 14:25 ` Andrei A. Dergatchev
0 siblings, 1 reply; 4+ messages in thread
From: S.D. Brown @ 2001-01-10 14:16 UTC (permalink / raw)
To: axp-list
I work on a computationally intensive software model and my development
machine is a AlphaPC 164/UX running RedHat 6.2 (kernel 2.2.14-6.0).
I spend a lot of time debugging my code and ever since I went to 6.2
and the distributed kernel I have had "issues" with gdb(1) regarding
floating point numbers. I could list lots of things that don't work,
but the mini session below should demonstrate the problems fine enough.
These same steps work fine on other non-Linux boxes and on a RedHat 5.1
Sparc machine.
I should note that even though my demo doesn't use an executable, my
daily exposure is using real programs are built with gcc (egcs-2.91.66).
Again, gdb(1) seems to demonstrate this same behavior without an
executable loaded so I don't think the results would change if I used
ccc(1).
Has anyone or everyone seen this before, and if so what do I do to fix
it? Is this a gdb(1) issue or a kernel issue? If you are running a
later gdb(1)/kernel combination do you have this behavior?
Thanks,
Scott
--
$ gdb
GNU gdb 19991004
Copyright 1998 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 "alpha-redhat-linux".
(gdb) p 1+1
$1 = 2
(gdb) p 1.0+1
$2 = 0
(gdb) p 1.0+1.0
$3 = 0
(gdb) Erroneous arithmetic operation.
(gdb)
--
Scott D. Brown // Scientist // brown@cis.rit.edu
Digital Imaging and Remote Sensing Lab // Rochester Institute of Technology
54 Lomb Memorial Dr. Rochester, NY 14623 // 716.475.7194 // FX:716.475.5988
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: gdb(1) quirks ...
2001-01-10 14:16 ` S.D. Brown
@ 2001-01-10 14:25 ` Andrei A. Dergatchev
0 siblings, 0 replies; 4+ messages in thread
From: Andrei A. Dergatchev @ 2001-01-10 14:25 UTC (permalink / raw)
To: axp-list
Hi,
"S.D. Brown" wrote:
> [...]
> Has anyone or everyone seen this before, and if so what do I do to fix
> it? Is this a gdb(1) issue or a kernel issue? If you are running a
> later gdb(1)/kernel combination do you have this behavior?
>
> Thanks,
> Scott
>
> --
>
> $ gdb
> GNU gdb 19991004
[...]
It seems your gdb isn't very new, what happens if you try version 5.0 ?
Just a though.
Regards,
Andrei
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-01-11 6:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-10 19:48 gdb(1) quirks S.D. Brown
2001-01-11 6:47 ` Andrei A. Dergatchev
[not found] <20010109225502.39C712F79B@listman.redhat.com>
2001-01-10 14:16 ` S.D. Brown
2001-01-10 14:25 ` Andrei A. Dergatchev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox