From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15997 invoked by alias); 20 Jun 2015 23:19:55 -0000 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 Received: (qmail 15985 invoked by uid 89); 20 Jun 2015 23:19:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.2 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 X-HELO: p3plwbeout03-06.prod.phx3.secureserver.net Received: from p3plsmtp03-06-2.prod.phx3.secureserver.net (HELO p3plwbeout03-06.prod.phx3.secureserver.net) (72.167.218.218) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 20 Jun 2015 23:19:54 +0000 Received: from localhost ([72.167.218.245]) by p3plwbeout03-06.prod.phx3.secureserver.net with bizsmtp id inKs1q0025JG3DC01nKs2Y; Sat, 20 Jun 2015 16:19:52 -0700 X-SID: inKs1q0025JG3DC01 Received: (qmail 6204 invoked by uid 99); 20 Jun 2015 23:19:52 -0000 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" User-Agent: Workspace Webmail 5.14.1 Message-Id: <20150620161951.5c1bb9f86d671edec44bb378f25c04cc.fed782fac3.wbe@email03.secureserver.net> From: To: gdb@sourceware.org Subject: Create symbols Dynamically Date: Sat, 20 Jun 2015 23:19:00 -0000 Mime-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2015-06/txt/msg00049.txt.bz2 Hi,=20 Is there a way to load a symbol table from a text file? A number of jtag type debuggers have this feature. Specifically - I have a symbol table that a simple 2 column white space separated text file (the output of "NM" is 3 column ascii text, you get the idea) a simple one line awk script will covert the format if needed. I want to load this into GDB as an extra symbol file. These are various hardware defined peripheral addresses. Things like uart base address, data registers, control registers - it would be very helpful to be able to refer to them as needed in scripts. There are thousands of them. Effectively, if they all became the equivalent of "extern uint32_t SYMBOLNAME[1];" that would be great My last restore (YUCK!) is to create an ELF file, and use 'symbol-add-file' yuck! I also need to - within a gdb script - define my own symbols dynamically at run time in the same way. Thanks