On Sunday, 29 August 1999 at 10:46:33 +0200, Pascal Hofstee wrote:
> On Sun, 29 Aug 1999, Greg Lehey wrote:
>
>>> I seem to having some weird problems using GDB on 4.0-CURRENT
>>> 27            for (j = 1; j <= 31; j++) {
>>> (gdb)
>>> 28               temp = wmalloc(sizeof(ADay));
>>> (gdb) print j
>>> $1 = -1077947156
>
>> Does it do this without the -O flag?  It may use j elsewhere, but have
>> elided it here.
>
> All files are compiled like this:
> gcc -Wall -ggdb -ansi -pedantic    -I/usr/X11R6/include
> -I/usr/X11R6/include  `get-wraster-flags --cflags` -I. -DCSRG_BASED
> -DFUNCPROTO=15 -DNARROWPROTO   -c main.c
>
> And I still get the weird gdb behaviour

Make sure you're really where you think you are.  If so, it could be a
bug.  What does the assembly code look like?

Greg
--
See complete headers for address, home page and phone numbers
finger [EMAIL PROTECTED] for PGP public key


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to