debugcfe
来自「一个很好的嵌入式linux平台下的bootloader」· 代码 · 共 43 行
TXT
43 行
#!/bin/sh## First use sb1250-run to generate a hardware file.# sb1250-run \ --sim-check-undefined \ --with-boot-flash-file cfe.srec \ --with-boot-flash-type ram \ --no-file \ --with-swarm-devs \ --with-sample-pci-devs \ --with-swarm-ide \ --with-swarm-ide-disk0-file disk0.dsk \ --with-swarm-ide-disk0-size 60 \ --with-memory-config 2x32 \ --with-swarm-rtc-eeprom-file x1240rom.bin \ --dump-config cfe## Now add some stuff to the generated GDB script# We add the "ss" command for single stepping instructions# in the rom, and we get into run mode by running to the boot vector.#cat >>cfe.gdbscript <<EOF loadbreak *0xbfc00000rundelset \$pc=0xffffffffbfc00000define ssstepix/5i \$pcendEOF## Finally run the resulting script#sb1-elf-gdb --nx --command=cfe.gdbscript cfe
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?