📄 debugcfe
字号:
#!/bin/sh## First use sb1250-run to generate a hardware file.#if [ "$1" ]; then OPTS="--with-swarm-pcmcia-flash-file $1"fi swarm-run \ -v \ --sim-check-undefined \ --add-hw flash2.m4 \ --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 2x64 \ --with-swarm-rtc-eeprom-file x1240rom.bin \ $OPTS \ --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 *0xffffffffbfc00000rundelset \$pc=0xffffffffbfc00000break *0xffffffffbfc00380break *0xffffffffbfc00200define ssstepix/5i \$pcenddefine gomainbreak __GoRelocontstepistepistepistepistepistepistepiadd-symbol-file cfe 0x9fc00000+\$s8break *(board_console_init+\$s8)endEOF## Finally run the resulting script#sb1-elf-gdb --nx --command=cfe.gdbscript cfe
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -