From owner-freebsd-stable@FreeBSD.ORG Sat Mar 1 11:16:12 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B141D1065671 for ; Sat, 1 Mar 2008 11:16:12 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id 32AE38FC1B for ; Sat, 1 Mar 2008 11:16:11 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so879424uge.37 for ; Sat, 01 Mar 2008 03:16:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=I1GhJABHCAPc2HOHAoYnNUi9lsBMdsWCOSg2dnKw3dU=; b=Ngi111hnw3NueHow+dVfoqHypZ5YuOTZhyXlk9nlf+XRUZbW5Rt6rfc7Dgrr4O84Sd95ozTXxp/RFMVZwelvbEFDof+ZzPMvDrwsWgusaQM+qbqHB6hHpnZ+yszbhMCV0tHJMDBUYfjtyceEZNquJyuF1u5oB6VfHORod+ZmUxo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gd1kvWRWvgnzmNJmlkxAbperSmtyFfMp0akGxUczqVhWDqnwQliydqJD9dUOJVH78QUg3z7WytaXAPBxSEEsBj3xKvK1DMW3lvofN7DpJ0TdlTniTz/OKuzqUEb2cd4dv09bz+ZI81SpysudhcFIaDXuROBZBmKaUzLd+iVzR3s= Received: by 10.78.165.16 with SMTP id n16mr11498136hue.59.1204370170721; Sat, 01 Mar 2008 03:16:10 -0800 (PST) Received: by 10.78.46.11 with HTTP; Sat, 1 Mar 2008 03:16:10 -0800 (PST) Message-ID: Date: Sat, 1 Mar 2008 14:16:10 +0300 From: pluknet To: FreeBSD , "John Baldwin" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: Subject: Re: [kgdb] There is no member named pathname X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Mar 2008 11:16:12 -0000 On 29/02/2008, pluknet wrote: > Hello, > > I've updated to the recent RELENG_7 as of 2008/02/28 > to try the new kld-add feature in kgdb, among other things > (yes, i do debug kernel modules). > > However, now I get an error message; > also I'm unable to use the add-kld command. > > For example: > # kgdb -q /boot/kernel/kernel /dev/mem > [GDB will not be able to debug user-mode threads: > /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] > There is no member named pathname. > ^^^^ > (kgdb) add-kld whatever > Undefined command: "add-kld". Try "help". > > I tried to add missing .symbols data as I did before and as described > in developer's handbook, but that doesn't work anymore. > [to be honest, I only tried it once, and I hope I didn't mix up > the numbers in addresses. It's hard to do, though] > > $FreeBSD: src/gnu/usr.bin/gdb/kgdb/kld.c,v 1.6.2.1 2008/02/25 > 22:19:56 jhb Exp $ > JFYI: It works without that issue In CURRENT. [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] Reading symbols from /boot/kernel/pf.ko...Reading symbols from /boot/kernel/pf.ko.symbols...done. done. Loaded symbols for /boot/kernel/pf.ko Reading symbols from /boot/kernel/snd_envy24ht.ko...Reading symbols from /boot/kernel/snd_envy24ht.ko.symbols...done. done. Loaded symbols for /boot/kernel/snd_envy24ht.ko Reading symbols from /boot/kernel/sound.ko...Reading symbols from /boot/kernel/sound.ko.symbols...done. done. Loaded symbols for /boot/kernel/sound.ko Reading symbols from /boot/kernel/snd_spicds.ko...Reading symbols from /boot/kernel/snd_spicds.ko.symbols...done. done. Loaded symbols for /boot/kernel/snd_spicds.ko Reading symbols from /boot/kernel/atapicam.ko...Reading symbols from /boot/kernel/atapicam.ko.symbols...done. done. Loaded symbols for /boot/kernel/atapicam.ko Reading symbols from /boot/kernel/acpi.ko...Reading symbols from /boot/kernel/acpi.ko.symbols...done. done. Loaded symbols for /boot/kernel/acpi.ko Reading symbols from /boot/kernel/tmpfs.ko...Reading symbols from /boot/kernel/tmpfs.ko.symbols...done. done. Loaded symbols for /boot/kernel/tmpfs.ko Reading symbols from /boot/kernel/msdosfs_iconv.ko...Reading symbols from /boot/kernel/msdosfs_iconv.ko.symbols...done. done. Loaded symbols for /boot/kernel/msdosfs_iconv.ko Reading symbols from /boot/kernel/libiconv.ko...Reading symbols from /boot/kernel/libiconv.ko.symbols...done. done. Loaded symbols for /boot/kernel/libiconv.ko Reading symbols from /boot/kernel/nfsserver.ko...Reading symbols from /boot/kernel/nfsserver.ko.symbols...done. done. Loaded symbols for /boot/kernel/nfsserver.ko #0 doadump () at pcpu.h:195 195 pcpu.h: No such file or directory. in pcpu.h (kgdb) add-kld whatever Unable to locate kld wbr, pluknet