From owner-freebsd-current Fri May 2 03:54:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA24895 for current-outgoing; Fri, 2 May 1997 03:54:47 -0700 (PDT) Received: from peedub.gj.org (newpc.muc.ditec.de [194.120.126.33]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA24889 for ; Fri, 2 May 1997 03:54:33 -0700 (PDT) Received: from peedub.gj.org (localhost [127.0.0.1]) by peedub.gj.org (8.8.5/8.6.9) with ESMTP id MAA17508; Fri, 2 May 1997 12:53:02 GMT Message-Id: <199705021253.MAA17508@peedub.gj.org> X-Mailer: exmh version 2.0gamma 1/27/96 To: KATO Takenori Cc: freebsd-current@freebsd.org Subject: Re: gdb broken ? Reply-To: Gary Jennejohn In-reply-to: Your message of "Fri, 02 May 1997 19:16:06 +0900." <199705021016.TAA00349@gneiss.eps.nagoya-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 02 May 1997 12:53:01 +0000 From: Gary Jennejohn Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk KATO Takenori writes: >From: Gary Jennejohn >Subject: gdb broken ? >Date: Fri, 02 May 1997 11:12:13 +0000 > >> ``GDB can't read core files on this machine.'' >> >> I've tried doing a cleandir in /usr/src and even making gdb in >> a freshly checked-out directory. No dice. >> >> Is it just me, or has anyone else seen this ? > >I got same problem. I cannot analyze vmcore :-(. > I figured out what it is. init.c is calling _initialize_kcorelow() twice. That's because (mea culpa) the totally unneeded kcorelow.c is listed in the XSRCS. kcorelow.c is always empty because its compilation is controlled by KERNEL_DEBUGGING, which isn't defined anywhere. However, the generation of init.c isn't smart enough to know that it shouldn't pull the _initialize_kcorelow in from kcorelow.c. Only the reference from kvm-fbsd.c is needed. Just delete kcorelow.c from the list of sources, regenerate init.c and everything should work. That's what I did and gdb is now OK. --- Gary Jennejohn Home - Gary.Jennejohn@munich.netsurf.de Work - gjennejohn@frt.dec.com