From owner-freebsd-current Sun Aug 29 1:48:51 1999 Delivered-To: freebsd-current@freebsd.org Received: from shadowmere.student.utwente.nl (wit401305.student.utwente.nl [130.89.236.145]) by hub.freebsd.org (Postfix) with ESMTP id 8CDD714E7C for ; Sun, 29 Aug 1999 01:48:44 -0700 (PDT) (envelope-from daeron@Wit401305.student.utwente.nl) Received: by shadowmere.student.utwente.nl (Postfix, from userid 1001) id 15AAEEF; Sun, 29 Aug 1999 10:46:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by shadowmere.student.utwente.nl (Postfix) with ESMTP id 0E5CBE1; Sun, 29 Aug 1999 10:46:33 +0200 (CEST) Date: Sun, 29 Aug 1999 10:46:33 +0200 (CEST) From: Pascal Hofstee To: Greg Lehey Cc: Pascal Hofstee , freebsd-current@FreeBSD.ORG Subject: Re: gdb weirdness In-Reply-To: <19990829181058.R13904@freebie.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 -------------------- Pascal Hofstee - daeron@shadowmere.student.utwente.nl -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS d- s+: a-- C++ UB++++ P+ L- E--- W- N+ o? K- w--- O? M V? PS+ PE Y-- PGP-- t+ 5 X-- R tv+ b+ DI D- G e* h+ r- y+ ------END GEEK CODE BLOCK------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message