From owner-cvs-all@FreeBSD.ORG Wed Jan 30 09:47:09 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8CCC16A418; Wed, 30 Jan 2008 09:47:09 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from itchy.rabson.org (stf-router.rabson.org [IPv6:2002:50b1:e8f2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 3F32D13C45A; Wed, 30 Jan 2008 09:47:09 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from macbook.rabson.org (macbook.rabson.org [192.168.42.2]) by itchy.rabson.org (8.13.3/8.13.3) with ESMTP id m0U9l6ax056904; Wed, 30 Jan 2008 09:47:06 GMT (envelope-from dfr@rabson.org) Message-Id: <9C890129-C909-49DD-A996-2C3D93B0D484@rabson.org> From: Doug Rabson To: John Baldwin In-Reply-To: <200801292344.m0TNiYrd039016@repoman.freebsd.org> Content-Type: multipart/signed; boundary=Apple-Mail-25-40927724; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v915) Date: Wed, 30 Jan 2008 09:47:06 +0000 References: <200801292344.m0TNiYrd039016@repoman.freebsd.org> X-Mailer: Apple Mail (2.915) X-Virus-Scanned: ClamAV 0.87.1/5601/Wed Jan 30 08:07:21 2008 on itchy.rabson.org X-Virus-Status: Clean X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/gnu/usr.bin/gdb/kgdb kgdb.h kld.c trgt.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2008 09:47:10 -0000 --Apple-Mail-25-40927724 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 29 Jan 2008, at 23:44, John Baldwin wrote: > jhb 2008-01-29 23:44:34 UTC > > FreeBSD src repository > > Modified files: > gnu/usr.bin/gdb/kgdb kgdb.h kld.c trgt.c > Log: > - Rework the kld support to hook into GDB's shared library support. > kgdb(8) now treats kld's as shared libraries relative to the kernel > "binary". Thus, you can use 'info sharedlibrary' to list the kld's > along with 'sharedlibrary' and 'nosharedlibrary' to manage symbol > loading and unloading. Note that there isn't an easy way to > force GDB > to use a specific path for a shared library. However, you can use > 'nosharedlibrary' to unload all the klds and then use > 'sharedlibrary' > to load specific klds where it gets the kld correct and use > 'add-kld' for the kld's where the default open behavior doesn't > work. > klds opened via 'sharedlibrary' (and during startup) do have their > sections listed in 'info files'. > - Change the 'add-kld' command to use filename completion to > complete its > argument. This was how it used to work long ago (I forget exactly how long). I had things set up so that GDB's standard ELF shared library code would find KLDs automatically - you can see remnants of this in link_elf.c in 'ifdef GDB' sections which build an RTLD-like list of loaded files which GDB looked for starting at the global symbol r_debug. --Apple-Mail-25-40927724--