All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juan Antonio Garcia Redondo <juan-antonio.garcia@nabla-designs.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] u-boot debugging boot with gdb and bdi2000 in lubbock(PXA255) board
Date: Thu, 04 Sep 2003 13:34:21 +0200	[thread overview]
Message-ID: <3F57233D.8060305@nabla-designs.com> (raw)

Hello,

I have a lubbock development board and a BDI2000 jtag debuggger.
I would like to debug the boot process before the relocate of the boot code.

My steps to debug the booter:
	o I've modified the config.mk file to enable the debug options
	    DBGFLAGS = -g -DDEBUG.
	   ( I haven't a u-boot.lds.debug for my board (lubbock). Do I need it ?)
	o Start my target, the jtag debugger is configured to stop the execution.
	o Start arm-linug-gdb u-boot
	o The ouput of the gdb is :

************************************************************
Current directory is /home/jgarcia/XSCALE/boot/u-boot-0.4.0/
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-linux"...
(gdb) target remote bdi2000:2001
Remote debugging using bdi2000:2001
0x00000060 in ?? ()
(gdb) b start_armboot
Breakpoint 1 at 0xa030bd4: file board.c, line 214.
(gdb) monitor bi 0xa030bd4
Breakpoint identification is 0
***************************************************************

	o From here, I can stop the execution and debug the sources beginning
with the start_armboot function.

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 ).

Regards,
      Juan Antonio

             reply	other threads:[~2003-09-04 11:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-04 11:34 Juan Antonio Garcia Redondo [this message]
2003-09-04 12:23 ` [U-Boot-Users] u-boot debugging boot with gdb and bdi2000 in lubbock(PXA255) board Wolfgang Denk
2003-09-04 12:32 ` Kyle Harris
2003-09-04 14:10   ` Wolfgang Denk
2003-09-04 15:46     ` Juan Antonio Garcia Redondo
2003-09-04 16:07       ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F57233D.8060305@nabla-designs.com \
    --to=juan-antonio.garcia@nabla-designs.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.