From owner-freebsd-current Tue Aug 3 14:33:34 1999 Delivered-To: freebsd-current@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id A0A0314BE9; Tue, 3 Aug 1999 14:33:27 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.2/8.9.2) id OAA76026; Tue, 3 Aug 1999 14:31:36 -0700 (PDT) From: Archie Cobbs Message-Id: <199908032131.OAA76026@bubba.whistle.com> Subject: Re: Panic plus advice needed In-Reply-To: <19990803221433.A36019@walton.maths.tcd.ie> from David Malone at "Aug 3, 1999 10:14:33 pm" To: dwmalone@maths.tcd.ie (David Malone) Date: Tue, 3 Aug 1999 14:31:36 -0700 (PDT) Cc: archie@whistle.com (Archie Cobbs), grog@lemis.com, current@FreeBSD.ORG, bde@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David Malone writes: > > > bde has reported that the code may not be identical when compiling for > > > debugging. It should be, but for obscure reasons it doesn't quite > > > make it. > > > > I'd be interested in seeing a pointer to those reasons, if you have one.. > > One reason adding -g doesn't work at times is if the kernel is > recompiled by a person with a different length username. vers.c > is produced with a string which is a different length which screws > up the offsets. > > Maybe newvers.sh should pad usernames to the legal max? Maybe we should > warn people to touch vers.c after editing the Makefile? That would be really helpful to us actually and I imagine lots of people. In fact, you don't need to pad the username, just add the right number of zeroes to the end of the string, eg. const char *uname = "..blah username blah.." "\0\0\0\0\0"; -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message