All of lore.kernel.org
 help / color / mirror / Atom feed
From: mouse1 <mouse1@sch.bme.hu>
To: u-boot@lists.denx.de
Subject: [U-Boot] Problem with u-boot debugging
Date: Wed, 27 May 2009 14:48:44 +0200	[thread overview]
Message-ID: <4A1D36AC.3040402@sch.bme.hu> (raw)

Hi!

I would like to port the U-Boot to a custom developed port with an 
Au1200 chip. I'm using the ELDK as toolchain.
I successfully compiled the U-Boot. I'm trying to debug it with a 
BDI-3000, through GDB. But anywhere I put a breakpoint (e.g. to the 
board_init_f), the program stops at line 234 in the start.s: mtc0 zero, 
CP0_WATCHLO, and it writes out:

Program received signal SIGABRT, Aborted.
reset () at start.S:234
234        mtc0    zero, CP0_WATCHLO


After I continue program running, the BDI writes out:

*** TARGET: all hardware breakpoints in use

and the gdb:

(gdb) c
Continuing.
Warning:
Cannot insert breakpoint 2.
Error accessing memory address 0xbfc01030: Unknown error 4294967295.

Contrarily, I can use the BDI's TI command, so from terminal, I can 
single step the program.
Any idea?

Here's the full gdb output:

(gdb) target remote bdi:2001
Remote debugging using bdi:2001
_start () at start.S:64
64        RVECENT(reset,0)    /* U-boot entry point */
(gdb) b board_init_f
Note: breakpoint 2 also set at pc 0xbfc01030.
Breakpoint 3 at 0xbfc01030: file board.c, line 202.
(gdb) c
Continuing.

Program received signal SIGABRT, Aborted.
reset () at start.S:234
234        mtc0    zero, CP0_WATCHLO
(gdb) c
Continuing.
Warning:
Cannot insert breakpoint -5.
Error accessing memory address 0xbfc00000: Ismeretlen hiba 4294967295.

                 reply	other threads:[~2009-05-27 12:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4A1D36AC.3040402@sch.bme.hu \
    --to=mouse1@sch.bme.hu \
    --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.