allow coexistance of N build and AC build.
[tomato.git] / release / src-rt-6.x / cfe / build / broadcom / tiny / debugcfe
blobc456290b6b104ea201433953b658aeaa05163168
1 #!/bin/sh
4 # First use sb1250-run to generate a hardware file.
7 sb1250-run \
8 --sim-check-undefined \
9 --with-boot-flash-file cfe.srec \
10 --with-boot-flash-type ram \
11 --no-file \
12 --with-swarm-devs \
13 --with-sample-pci-devs \
14 --with-swarm-ide \
15 --with-swarm-ide-disk0-file disk0.dsk \
16 --with-swarm-ide-disk0-size 60 \
17 --with-memory-config 2x32 \
18 --with-swarm-rtc-eeprom-file x1240rom.bin \
19 --dump-config cfe
22 # Now add some stuff to the generated GDB script
23 # We add the "ss" command for single stepping instructions
24 # in the rom, and we get into run mode by running to the boot vector.
27 cat >>cfe.gdbscript <<EOF
28 load
29 break *0xbfc00000
30 run
31 del
32 set \$pc=0xffffffffbfc00000
33 define ss
34 stepi
35 x/5i \$pc
36 end
37 EOF
40 # Finally run the resulting script
42 sb1-elf-gdb --nx --command=cfe.gdbscript cfe