linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Q-ha Park" <qha@infoeq.com>
To: <linuxppc-embedded@lists.linuxppc.org>
Subject: using bdi2000 to debug ppcboot on mpc7455
Date: Thu, 25 Sep 2003 09:56:34 +0900	[thread overview]
Message-ID: <004c01c382ff$de2da2f0$2a21a8c0@qha> (raw)


[I apologize this question is off topic in this mailing
list:ppc-embedded. But I coundn't find a better place to ask,
ppcboot-users is inactive..]

I'm new to BDI2000, and after reading a manual that came with the tool,
I tried to debug ppcboot using bdi2000 and gdb. The problem is I just
can't set the breakpoint whether be it software or hardware breakpoint;
For example, when I set the break point at "boot_cold" and type
"continue", the program just runs without ever stopping at the
breakpoint where it's supposed to stop!

Here's what I did:
a. turn on bdi2000.
b. connect to bdi2000 in gdb session.
c. set the breakpoint
d. type "continue"

==========
90              li      r21, BOOTFLAG_COLD      /* Normal Power-On: Boot
from FLASH */
(gdb) l
85              .ascii  CONFIG_IDENT_STRING, "\0"
86
87              . = EXC_OFF_SYS_RESET
88              .globl  _start
89      _start:
90              li      r21, BOOTFLAG_COLD      /* Normal Power-On: Boot
from FLASH */
91              b       boot_cold
92              sync
93
94              . = EXC_OFF_SYS_RESET + 0x10
(gdb) b boot_cold
Breakpoint 1 at 0xfff02000: file
/home/users/qpark/hobby/ppcboot-1.1.6/cpu/74xx_7xx/start.S, line 253.
(gdb) cont
Continuing.
(continues for good...)
==========

What am I probably doing wrong? FYI, I tried to remove H/W breakpoint
before I entered "go"

Any help would be greatly appreciated!!

:::::::::::::::::::::::::::::::::::::::::::::::::
Q-ha Park


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

             reply	other threads:[~2003-09-25  0:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-25  0:56 Q-ha Park [this message]
2003-09-25  2:33 ` using bdi2000 to debug ppcboot on mpc7455 Mark A. Greer
2003-09-25 14:25   ` bradbosch
2003-09-25 18:27     ` Mark A. Greer
2003-09-26  5:52     ` Q-ha Park
2003-09-30 21:35       ` Wolfgang Denk
2003-09-30 21:32     ` Wolfgang Denk
2003-10-01  6:57     ` Q-ha Park
2003-10-01 10:29       ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2003-09-30 22:39 Rod Boyce
2003-09-30 23:38 ` 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='004c01c382ff$de2da2f0$2a21a8c0@qha' \
    --to=qha@infoeq.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).