From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Harris Date: Thu, 4 Sep 2003 08:32:20 -0400 Subject: [U-Boot-Users] u-boot debugging boot with gdb and bdi2000 in lubbock(PXA255) board In-Reply-To: <3F57233D.8060305@nabla-designs.com> References: <3F57233D.8060305@nabla-designs.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > My question is, How can I debug the code __before__ the start_armboot > function ? I would like to debug the assembler code from the first > instruction ( I can do this with the jtag debugger but I can't see the > related source instruction in the gdb ). > Juan, I usually set TEXT_BASE=0 in board/lubbock/config.mk for debugging before start_armboot. No need to reflash. You should be able to reload symbols in gdb at offset 0, but for some reason I've never been able to get this to work correctly. So linking at 0 sets symbols for gdb correctly. Then you can use gdb in a normal manner. HTH, Kyle.