From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15111 invoked by alias); 23 Nov 2009 14:31:18 -0000 Received: (qmail 15103 invoked by uid 22791); 23 Nov 2009 14:31:17 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f211.google.com (HELO mail-fx0-f211.google.com) (209.85.220.211) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Nov 2009 14:30:25 +0000 Received: by fxm3 with SMTP id 3so5976761fxm.4 for ; Mon, 23 Nov 2009 06:30:23 -0800 (PST) Received: by 10.86.108.19 with SMTP id g19mr4151409fgc.16.1258986622953; Mon, 23 Nov 2009 06:30:22 -0800 (PST) Received: from ?192.168.2.99? (cpc2-cmbg8-0-0-cust61.cmbg.cable.ntl.com [82.6.108.62]) by mx.google.com with ESMTPS id l12sm10846232fgb.20.2009.11.23.06.30.20 (version=SSLv3 cipher=RC4-MD5); Mon, 23 Nov 2009 06:30:21 -0800 (PST) Message-ID: <4B0AA02F.4010104@gmail.com> Date: Tue, 24 Nov 2009 19:10:00 -0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: loody CC: Simon Richter , gdb@sourceware.org Subject: Re: how to source level debug if I cannot see source embedded in elf file References: <3a665c760911220903y352e7062m2acfd5fb27a1b169@mail.gmail.com> <20091122171617.GL18195@honey.hogyros.de> <3a665c760911221602y6ff771bdlbccdd27dc9fc0012@mail.gmail.com> In-Reply-To: <3a665c760911221602y6ff771bdlbccdd27dc9fc0012@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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/msg00178.txt.bz2 loody wrote: > mipsel-unknown-elf-ld -T ./link.xn -o TestCode.elf -Map TestCode.map > --oformat elf32-littlemips init.o reset.o atexit.o main.o -static > -nostdlib -L/media/sdb1/newlib-1.17.0/build/mipsel/lib > -L/root/bare_metal/x-tools/mipsel-unknown-elf/lib/gcc/mipsel-unknown-elf/4.2.4 > -lc -lnullmon -lgcc Is your linker script discarding the debug info sections? Look at "objdump -h" of TestCode.elf and of one of the .o files for comparison; if the .o files have debug info sections but not the .elf, the problem is probably there. cheers, DaveK