From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24597 invoked by alias); 4 Dec 2006 22:12:33 -0000 Received: (qmail 24589 invoked by uid 22791); 4 Dec 2006 22:12:33 -0000 X-Spam-Check-By: sourceware.org Received: from tmpnat1.honeywell.com (HELO AZ18CN849.global.ds.honeywell.com) (199.64.0.252) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 04 Dec 2006 22:12:25 +0000 Received: from AZ18EV808.global.ds.honeywell.com ([131.127.167.102]) by AZ18CN849.global.ds.honeywell.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 4 Dec 2006 15:12:23 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: GDB solib interface Date: Mon, 04 Dec 2006 22:12:00 -0000 Message-ID: From: "Smith, Stephen \(SWCOE\)" To: "General GDB Mailing List" X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-12/txt/msg00031.txt.bz2 I'm sorry - way back when Kevin asked that I investigate this. So now I am.=20=20 Anyway - Pretend that my "custom" GDB remote.c has been told that a library has been loaded - what would I need to write to use the solib interface? Another way of asking the question would be, what would I need to add to my remote interface file (remote.c) to have it load the symbols. I am not looking for a command, per se, just trying to figure out what functions/structures etc I need to write to have my "custom" GDB load the libraries symbols. -----Original Message----- From: Daniel Jacobowitz [mailto:drow@false.org]=20 Sent: Monday, December 04, 2006 2:58 PM To: Smith, Stephen (SWCOE) Cc: General GDB Mailing List Subject: Re: GDB solib interface On Mon, Dec 04, 2006 at 02:55:28PM -0700, Smith, Stephen (SWCOE) wrote: > I am running GDB to debug a remote application. If I find that a shared > library has been loaded, I would like to use the solib interface to load > the appropriate shared library symbols.=20=20 >=20 > So lets assume that I have the file name of the shared library, that was > just loaded, how do I inform the solib subsystem that to load the > symbols. There's no command for this. The solib system is designed for targets where the target can report that the library was loaded, or where GDB can otherwise detect it. If you're willing to have a custom GDB for your platform, you might be able to make it examine the shared library table in your target, assuming there is one. --=20 Daniel Jacobowitz CodeSourcery