From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18885 invoked by alias); 27 Oct 2005 08:56:23 -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 18797 invoked by uid 22791); 27 Oct 2005 08:56:12 -0000 Received: from elbarto.betaversion.net (HELO elbarto.betaversion.net) (82.165.28.81) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 27 Oct 2005 08:56:12 +0000 Received: by elbarto.betaversion.net (Postfix, from userid 8) id 8E94AA36E7; Thu, 27 Oct 2005 10:56:01 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by elbarto.betaversion.net (Postfix) with ESMTP id AC561A36F2 for ; Thu, 27 Oct 2005 10:55:53 +0200 (CEST) Received: from elbarto.betaversion.net ([127.0.0.1]) by localhost (elbarto.betaversion.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12799-03 for ; Thu, 27 Oct 2005 10:55:52 +0200 (CEST) Received: from elbarto.betaversion.net (localhost [127.0.0.1]) by elbarto.betaversion.net (Postfix) with ESMTP id DEEA0A36E7 for ; Thu, 27 Oct 2005 10:55:52 +0200 (CEST) Received: from p54A7C621.dip.t-dialin.net (p54A7C621.dip.t-dialin.net [84.167.198.33]) by admin.betaversion.net (Horde) with HTTP for ; Thu, 27 Oct 2005 10:52:00 +0200 Message-ID: <20051027105200.0cya97mnpnwo84sg@admin.betaversion.net> Date: Thu, 27 Oct 2005 08:56:00 -0000 From: frank@betaversion.net To: gdb@sources.redhat.co Subject: Remote debugging and dynamic libraries MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit Resent-Date: Thu, 27 Oct 2005 10:55:52 +0200 Resent-From: frank@betaversion.net Resent-To: gdb@sources.redhat.com Resent-Message-ID: <20051027105552.tlgj5679lklcsww8@admin.betaversion.net> User-Agent: Internet Messaging Program (IMP) H3 (4.0) X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 Firefox/1.0.7 SUSE/1.0.7-0.1 X-SW-Source: 2005-10/txt/msg00153.txt.bz2 Hello, i'm trying to remote debug a program running on an arm system running linux but i ran into various problems. If i interrupt the debugged program i can't get symbolic information where it stopped. Also backtraces don't seem to work. frank@linux:~/> /usr/local/bin/arm-linux-gdb GNU gdb 6.3 This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-linux". (gdb) target remote 192.168.1.133:5555 Remote debugging using 192.168.1.133:5555 0x400028b0 in ?? () (gdb) symbol-file test Reading symbols from /home/frank/test...done. (gdb) l 1 int main() { 2 while(1) 3 { 4 printf("bla"); 5 6 } 7 8 } (gdb) b 1 Breakpoint 1 at 0x8428: file main.c, line 1. (gdb) c Continuing. Breakpoint 1, main () at main.c:1 1 int main() { (gdb) n 2 while(1) (gdb) n 4 printf("bla"); (gdb) n 0x0000832c in ?? () (gdb) n Cannot find bounds of current function (gdb) Cannot find bounds of current function (gdb) bt #0 0x0000832c in ?? () (gdb) When test is statically linked everything works as expected: frank@linux:~/uclibc_kram/apdf> /usr/local/bin/arm-linux-gdb GNU gdb 6.3 This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-linux". (gdb) target remote 192.168.1.133:5555 Remote debugging using 192.168.1.133:5555 Couldn't establish connection to remote target Remote communication error: Connection reset by peer. (gdb) target remote 192.168.1.133:5555 Remote debugging using 192.168.1.133:5555 0x000080e0 in ?? () (gdb) symbol-file test Reading symbols from /home/frank/uclibc_kram/apdf/test...done. (gdb) l 1 int main() { 2 while(1) 3 { 4 printf("bla"); 5 6 } 7 8 } (gdb) c Continuing. Program received signal SIGINT, Interrupt. 0x000282b4 in write () (gdb) bt #0 0x000282b4 in write () #1 0x00025bd0 in _IO_new_file_write () #2 0x0002513c in new_do_write () #3 0x00025084 in _IO_new_do_write () #4 0x000254ac in _IO_new_file_overflow () #5 0x00025d10 in _IO_new_file_xsputn () #6 0x0001a2e0 in vfprintf () #7 0x000088b0 in printf () #8 0x000081ec in main () at main.c:4 Therefore i tried to set a path for the dynamic libraries but neither: 1) set solib-absolute-prefix /usr/local/arm/arm-linux/ nor: 2) set solib-absolute-prefix /dev/null set solib-search-path /usr/local/arm/arm-linux/lib had any effect. Any ideas how i can fix this? Regards, Frank