* breakpointing with bdi2000
@ 2001-08-23 21:24 Boerner, Brian
2001-08-23 22:41 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Boerner, Brian @ 2001-08-23 21:24 UTC (permalink / raw)
To: 'linuxppc-embedded@lists.linuxppc.org'
I'm trying to set a break in mem_init. I take a machine check soon after
that and want to take at look at things right before it crashes. Normally, I
could just look at the values of srr0 and the msr, but those seem to be in
an odd state, i.e. they are the same and what is expected..
Anyway so here's what I'm doing.
1. Power on the box and let ppcboot load my vmlinux file via tftp
2. start up gdb and do the following:
(gdb) target remote bdi:2001
Remote debugging using bdi:2001
0x1fd3540 in ?? ()
(gdb) add-sym vmlinux 0xc0000000
add symbol table from file "vmlinux" at
.text_addr = 0xc0000000
Reading symbols from vmlinux...done.
(gdb) break mem_init
Breakpoint 1 at 0xc014c424: file init.c, line 861.
(gdb) c
Continuing.
3. Pop back over to ppcboot and then type:
bootm 00100000
The kernel starts but never stops at mem_init. If I pop over to the telnet
window for the bdi and manually stop the box I can step, but it won't break.
I've tried using both hard and soft breakpoint settings on the bdi. So, I'm
a bit confused why this won't work. I understand the previous e-mails that
you can't break before the MMU is set up, but now that I'm in virtual
address space, I should be fine.
-bmb
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: breakpointing with bdi2000
2001-08-23 21:24 breakpointing with bdi2000 Boerner, Brian
@ 2001-08-23 22:41 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2001-08-23 22:41 UTC (permalink / raw)
To: Boerner, Brian; +Cc: 'linuxppc-embedded@lists.linuxppc.org'
In message <200108232122.QAA24130@lists.linuxppc.org> you wrote:
>
> 1. Power on the box and let ppcboot load my vmlinux file via tftp
You missed Step 0: RTFM.
> 2. start up gdb and do the following:
> (gdb) target remote bdi:2001
> Remote debugging using bdi:2001
> 0x1fd3540 in ?? ()
> (gdb) add-sym vmlinux 0xc0000000
> add symbol table from file "vmlinux" at
> .text_addr = 0xc0000000
> Reading symbols from vmlinux...done.
> (gdb) break mem_init
> Breakpoint 1 at 0xc014c424: file init.c, line 861.
> (gdb) c
> Continuing.
>
> 3. Pop back over to ppcboot and then type:
> bootm 00100000
>
> The kernel starts but never stops at mem_init. If I pop over to the telnet
> window for the bdi and manually stop the box I can step, but it won't break.
See the BDI2000 manual, especially section 3.3.4 Embedded Linux MMU
Support.
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
I have made mistakes, but have never made the mistake of claiming I
never made one. - James G. Bennet
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-23 22:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-23 21:24 breakpointing with bdi2000 Boerner, Brian
2001-08-23 22:41 ` Wolfgang Denk
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).