bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug?


From: Eugen Dedu
Subject: Bug?
Date: Fri, 29 Sep 2000 20:38:38 +0200

Hi,

I do not know if it is really a bug.

My program stops to an assertion (with abort).  I examine the core file
and here is what happens (compiled with gcc -O0 -ggdb):
--
eminescu:~/abc/parmass2$ gdb a.out core 
[...]
(gdb) p nb
$1 = 4
--
The same program compiled with -O3 instead of -O3 gives:
--
eminescu:~/abc/parmass2$ gdb a.out core 
[...]
(gdb) p nb
$1 = 6
--

The correct variant is the first (I looked in the program too).  So if
you think this is a bug (the value of a parameter is different if
compiled with -O0 or with -O3) please let me know.  I will send you more
information.

GNU gdb 19991004
This GDB was configured as "i386-redhat-linux".  (the gdb which comes
with RedHat 6.2 distribution).

HTH,
Eugen
-- 
http://www.ese-metz.fr/~dedu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]