From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Thu, 11 Mar 2010 16:41:51 +0100 Subject: [U-Boot] Debugging u-boot In-Reply-To: <3F466DDF09A55D46858FC39B22DE56F23A30259045@pat.prediktor.no> References: <3F466DDF09A55D46858FC39B22DE56F23A30259045@pat.prediktor.no> Message-ID: <20100311154151.B6D4BE22AD1@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear =?iso-8859-1?Q?Bj=F8rnar_Syverstad?=, In message <3F466DDF09A55D46858FC39B22DE56F23A30259045@pat.prediktor.no> you wrote: > > I am trying to debug the u-boot with help of gdb + eclipse. Useing the phy3250_config. > > The problem is that when debugging, the listed source code seems to be out of sync. > The debugger pointer in the source code, seems not to point to the correct source code. Did you read the manual, for example here: http://www.denx.de/wiki/view/DULG/DebuggingTricks > The assembler windows shows typical this: > > ... > It does miss the code in "" So what? Eventually the compiler optimized this code away, of shifted it to some other place where you don;t expect it. > I did look at u-boot.lds and did not find any debug sections. The linker script has little to do with that. > Is there something parameters to make to add more debug information? I don't think that this is your problem. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Motto of the Electrical Engineer: Working computer hardware is a lot like an erect penis: it stays up as long as you don't fuck with it.