From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21015 invoked by alias); 30 Nov 2009 16:29:38 -0000 Received: (qmail 20894 invoked by uid 22791); 30 Nov 2009 16:29:37 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 Nov 2009 16:29:32 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id BF7472BAC05; Mon, 30 Nov 2009 11:29:30 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mVdbFvf-+4k7; Mon, 30 Nov 2009 11:29:30 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 81FA12BAB58; Mon, 30 Nov 2009 11:29:30 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id EAE0BF5889; Mon, 30 Nov 2009 08:29:27 -0800 (PST) Date: Mon, 30 Nov 2009 17:33:00 -0000 From: Joel Brobecker To: Venkatesh Srinivas Cc: gdb@sourceware.org Subject: Re: Using symbols from Message-ID: <20091130162927.GF4034@adacore.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2009-11/txt/msg00219.txt.bz2 > I have the output of the platform specific nm run against the binary; > is there any way I can teach gdb about the data from nm (at least the > entry addresses to my functions, location of some global variables?). It's not something that I have tried, so take with a grain of salt. The only way I can think of is to transform the symbol-table data into another format that GDB understands (for instance, an ELF symbol table). For instance, if you could do an objcopy from your format to ELF, then you can load the symbols from that ELF object file using add-symbol-file. -- Joel