From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 17 17:44:57 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 475901065678 for ; Sun, 17 Aug 2008 17:44:57 +0000 (UTC) (envelope-from gballet@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.freebsd.org (Postfix) with ESMTP id ED8B18FC20 for ; Sun, 17 Aug 2008 17:44:56 +0000 (UTC) (envelope-from gballet@gmail.com) Received: by py-out-1112.google.com with SMTP id p76so1464636pyb.10 for ; Sun, 17 Aug 2008 10:44:56 -0700 (PDT) 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:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=NGFXfGH421UimzCXBGuDRFQIMwr1Q8eol6E2gsfhacY=; b=OTHw4odA1Q/NQ7WeQZMwPqheG9QZHJUIPPlKgs9uMQTCAFcrSZlcuqtSCjalH4kqcr gcm4RhFKIp9+qBNDIvkepgnJNtiT9JXQo3DCwQRLG2O1YeqBm+J/c6EtfGLGcto99+8M F8i7rkpgq/3IGnSZhRTFDs2ikkTfit1wgE/T4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=U5y44grQHpCrO/JHrbfqJ6E8dotk/I04hSj+uWbg0l8P5uqVtba7CYXpiyKYALbCfG IiO2W7lcjCHc3J1BfxwOxIljhzDK434D+koJtPi9JrS4UwY+8Jvwu9go2L78OSo0wAkS suuF5xwbiuuEkRvx5GxQ0SOvxQ2zoZrtepBAI= Received: by 10.114.234.13 with SMTP id g13mr4320026wah.176.1218995095715; Sun, 17 Aug 2008 10:44:55 -0700 (PDT) Received: by 10.115.16.9 with HTTP; Sun, 17 Aug 2008 10:44:55 -0700 (PDT) Message-ID: Date: Sun, 17 Aug 2008 17:44:55 +0000 From: "Guillaume Ballet" To: "Kostik Belousov" In-Reply-To: <20080817172051.GX1803@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48A70B37.60401@freebsd.org> <20080817172051.GX1803@deviant.kiev.zoral.com.ua> Cc: freebsd-hackers@freebsd.org, Sam Leffler Subject: Re: Extending the ddb command set X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Aug 2008 17:44:57 -0000 >> >> It is indeed doable: Here are the diffs for a first attempt at doing >> this. I am not entirely satisfied with it, though, as it does not work >> with DB_SHOW_COMMAND and the likes... Also, I have to declare a lot of >> ddb-related stuff into kern_linker.c and I don't like it. I am >> currently working at improving the whole thing, but in the mean time >> if someone wants to give it a try, comments/rants would be greatly >> appreciated. > > What about module unloading ? > Thanks for replying so quickly :) When a module is unloaded from the system, it is removed from the linker_files list and will therefore not be available anymore when walking through the module list. I have checked on my side and this is indeed what happens. If you saw some problem I didn't, would you please mind to elaborate? Guillaume