Skip to contentSkip to conversation

breakpointing with bdi2000

DISCUSSION Boerner, Brian 2 participants 2 messages Aug 23, 2001

lore
Share & tools
lore
#0 lore raw

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/

#1 lore raw
Quoted 2 lines · In message <[email protected]> you wrote:

1. Power on the box and let ppcboot load my vmlinux file via tftp

You missed Step 0: RTFM.

Quoted 14 lines

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.

Quoted 5 lines

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: [email protected] 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/