Date: Sun, 29 Aug 1999 18:23:33 +0930 From: Greg Lehey <grog@lemis.com> To: Pascal Hofstee <daeron@Wit401305.student.utwente.nl> Cc: freebsd-current@FreeBSD.ORG Subject: Re: gdb weirdness Message-ID: <19990829182332.S13904@freebie.lemis.com> In-Reply-To: <Pine.BSF.4.10.9908291044400.94805-100000@shadowmere.student.utwente.nl>; from Pascal Hofstee on Sun, Aug 29, 1999 at 10:46:33AM %2B0200 References: <19990829181058.R13904@freebie.lemis.com> <Pine.BSF.4.10.9908291044400.94805-100000@shadowmere.student.utwente.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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 grog@lemis.com for PGP public key
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990829182332.S13904>
