From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1276 invoked by alias); 6 Sep 2007 08:24:21 -0000 Received: (qmail 1266 invoked by uid 22791); 6 Sep 2007 08:24:20 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.185) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 06 Sep 2007 08:24:15 +0000 Received: by nf-out-0910.google.com with SMTP id d3so85693nfc for ; Thu, 06 Sep 2007 01:24:12 -0700 (PDT) Received: by 10.78.157.19 with SMTP id f19mr173697hue.1189067052301; Thu, 06 Sep 2007 01:24:12 -0700 (PDT) Received: by 10.78.189.11 with HTTP; Thu, 6 Sep 2007 01:24:12 -0700 (PDT) Message-ID: <58f0b2e40709060124l68ec1970ra90c4fd465e0f8a@mail.gmail.com> Date: Thu, 06 Sep 2007 08:39:00 -0000 From: "Mentat K." To: "Mentat K." , gdb@sourceware.org Subject: Re: add-symbol-file question In-Reply-To: <20070906024026.GA25178@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <58f0b2e40709051630p6d523a8du5f6293c2df7aa16@mail.gmail.com> <20070906024026.GA25178@caradoc.them.org> 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: 2007-09/txt/msg00046.txt.bz2 On 9/5/07, Daniel Jacobowitz wrote: > On Wed, Sep 05, 2007 at 07:30:23PM -0400, Mentat K. wrote: > If all you need is that type, build the definition of the type with > -g into a new object file. Load it with add-symbol-file at an out of > the way address so that it does not overlap the code you care about. > Then you should be able to use the class name and type. > > You have to be sure that debug info for the class is in the file you > compile; sometimes it isn't, with G++. Cool. Thanks a lot :) works great.. > > -- > Daniel Jacobowitz > CodeSourcery >