From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5980 invoked by alias); 3 Jun 2003 10:41:22 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 5807 invoked from network); 3 Jun 2003 10:41:18 -0000 Received: from unknown (HELO smtp8.access.co.jp) (157.78.36.253) by sources.redhat.com with SMTP; 3 Jun 2003 10:41:18 -0000 Received: (qmail 30797 invoked from network); 3 Jun 2003 19:41:14 +0900 Received: from unknown (HELO smtp5.access.co.jp) (157.78.36.243) by 0 with SMTP; 3 Jun 2003 19:41:14 +0900 Received: (qmail 6295 invoked by alias); 3 Jun 2003 19:41:14 +0900 Received: (qmail 6283 invoked from network); 3 Jun 2003 19:41:14 +0900 Received: from unknown (HELO ADMIN) (157.78.69.163) by 0 with SMTP; 3 Jun 2003 19:41:14 +0900 From: "Raja Saleru" To: Subject: GAB side - how to resolve unresolved symbols Date: Tue, 03 Jun 2003 10:41:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2003-06/txt/msg00024.txt.bz2 Hi all, I am porting GDB Server on Vendor OS ( micro itron) on sh target. The Target already has OS and TCP/IP and others. In host side Linux environment, I have application. These applications uses OS and TCP/IP service calls. After compiling the application, I will downloading to target and the linking takes place at target side. I am going to reboot the target. In the host side, gdb has symbols, but the addresses are not fixed. After linking the application at target side, the linked version contains the debug info as well as complete image, which is going to run on target. The image has been created in elf / Dwarf 2 format. The linking at target takes places at any time dynamically. Whenever linking happens, the target reboots. For debugging the application, in host side all the symbols should be resolved. I don't want to copy the whole liked version of image into host side. 1. How can I re-solve the un-resolved symbols at host side by sending only required addresses of un-resolved symbols at host ? 2. if we assume that at target side, we have some utility, after linking this utility will generates a table which contains the symbols and their addresses. then how can I update at host side ? 3. I found out some commands in gdb symbol file - use symbol table from file load file - dynamically link file and add its symbols add-sym file addr - read additional symbols from file, dynamically located at address addr from these commands can I solve my problem ? what format the above commands expects the file ? If anybody has more information on these queries please update me. Thanks in advance. Regards raja s