From owner-freebsd-current Sun Aug 29 1:56:37 1999 Delivered-To: freebsd-current@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 21B6114E7C for ; Sun, 29 Aug 1999 01:56:31 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id SAA23035; Sun, 29 Aug 1999 18:23:34 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id SAA72517; Sun, 29 Aug 1999 18:23:33 +0930 (CST) Date: Sun, 29 Aug 1999 18:23:33 +0930 From: Greg Lehey To: Pascal Hofstee Cc: freebsd-current@FreeBSD.ORG Subject: Re: gdb weirdness Message-ID: <19990829182332.S13904@freebie.lemis.com> References: <19990829181058.R13904@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from Pascal Hofstee on Sun, Aug 29, 1999 at 10:46:33AM +0200 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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