From: Knowledge Seeker Date: Fri, 16 Jul 2004 17:18:57 -0700 (PDT) Subject: [U-Boot-Users] Using ELF File in gdb In-Reply-To: <20040716185509.6B571C109F@atlas.denx.de> Message-ID: <20040717001857.70848.qmail@web50502.mail.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang, - I understand issue about debugging after code has been relocated - I can successfully single step, next, cont, before code relocation - I can successfully single step, next, cont, after code is relocated (to following extend) But when code is executing from serial.c file, gdb gets confused. I have started ddd as (among other variations) ddd --debugger /opt/eldk/usr/bin/ppc_8xx-gdb u-boot But still when it gets to serial.c (actually it may be b4 it gets there) it does not know where is serial.c is located. It is looking in / (i.e. u-boot-1.1.1) Other time if I try to set break point in file e.g. ./common/env_dataflash.c, gdb does not know where to find it. I have tried using dir command, with no affect. I am using ELDK version 3.0 ppc_8xx: Build 2004-02-16 and have no other problems. May be I am missing something real basic ? KS --- Wolfgang Denk wrote: > In message <20040716165304.5752.qmail@web50503.mail.yahoo.com> you > wrote: > > > > Regarding my problem of gdb not finding certain source file > > (debugging u-boot remotely) which I posted few days ago. You > > suggested to use ELF binary in ddd (ppc_8xx-gdb) > > > > what would be the sequence of steps. > > Maybe you explain which part of the documentation > (http://www.denx.de/twiki/bin/view/DULG/DebuggingUBoot) you don't > understand. > Best regards, > Wolfgang Denk