From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13021 invoked by alias); 24 Aug 2004 14:05:00 -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 12955 invoked from network); 24 Aug 2004 14:04:57 -0000 Received: from unknown (HELO pegasus.siol.net) (193.189.160.40) by sourceware.org with SMTP; 24 Aug 2004 14:04:57 -0000 Received: from kudu.siol.net ([10.10.10.22]) by pegasus.siol.net (InterMail vK.4.03.05.03 201-232-132-103 license 1cbf71897a39210db31154c99f0b4628) with ESMTP id <20040824140454.VCHB4845.pegasus@kudu.siol.net> for ; Tue, 24 Aug 2004 16:04:54 +0200 Received: from [192.168.0.77] ([193.77.157.20]) by kudu.siol.net (InterMail vK.4.03.05.03 201-232-132-103 license 1cbf71897a39210db31154c99f0b4628) with ESMTP id <20040824140454.FNUA16288.kudu@[193.77.157.20]> for ; Tue, 24 Aug 2004 16:04:54 +0200 Message-ID: <412B4B05.8060705@iskramedical.si> Date: Tue, 24 Aug 2004 14:05:00 -0000 From: Hinko Kocevar User-Agent: Mozilla Thunderbird 0.7 (X11/20040615) MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: remote debugging and source files Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2004-08/txt/msg00317.txt.bz2 Hi, I'm remote debugging a programm using gdbserver on target side and gdb on host side. My target CPU is ARM and host is i686. Debugging same program just on host (no cross compilaton) allows me to see the source of each file when doing 'step'. That does not work when same program is cross-compiled, copied to target and started there with: gdbserver host:2345 slider On host I run the debugger- 'ddd --debugger arm-linu-gdb', load the program and specify the target: target remote ipaq:2345 I can see slider.c source displayed, but any other functions, defined outside, are not stepped into. Maybe it is worth mentioning that this functions are in a shared library. I tried adding directory of the actual source with 'dir /path/to/source' but it didn't help. Also, I pointed 'set solib-search-path' to libs containing those functions. What am I missing here? regards, h -- hinko kocevar iskramedical si Hinko Kocevar, developer Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU "Aì rén" | [Analects XII:22]