いくつかの調査の後、私は私の質問に対する答えを見つけることができました。
ConqueGDBで目的のデバッガを使用するには、プラグインがロードされる前に変数g:ConqueGdb_GdbExe
に指定する必要があります。そうするには
は、私はこの(私はVIMプラグインを管理するためにVundleを使っていることに注意してください)のように見えるように私の.vimrc
ファイルを変更:
今
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"Specify the debugger to be used
let g:ConqueGdb_GdbExe = 'arm-none-eabi-gdb'
Plugin 'VundleVim/Vundle.vim'
"Load ConqueGDB
Plugin 'vim-scripts/Conque-GDB'
call vundle#end()
filetype plugin indent on
、ConqueGDBは、リモートボードをデバッグするために使用することができます。 VIMのコマンドラインから、次のコマンドを実行しますGDBファイルをコマンドから、このコマンドで2つの異なるファイルを指定しないようにするためには
:ConqueGdb -q -x debugOCD.gdb
は、シンボルがロードすることができます。 OpenOCDの実行とターゲット接続は同じ方法で処理できます。ここに私のdebugOCD.gdb
のようなものがあります。すべてだ
#Load the debug symbols
file hello.elf
#Make sure that openOCD is running, otherwise load it
shell if [ ! `pgrep openocd` ]; then xterm -e "openocd -f interface/ftdi/redbee-econotag.cfg -f board/redbee.cfg" & sleep 1; fi
#Connect GDB to OpenOCD and reset the microcontroller
target remote localhost:3333
monitor soft_reset_halt
shell sleep 1
#Upload the image and wait for 1 second
monitor load_image hello.elf
shell sleep 1
#Set a breakpoint at SRAM start address and run from there
b *0x400000
monitor step 0x3ffffc
c
、このコマンドのエイリアスを設定するには罰金だろうので、暗記する方が簡単ですが、私は、これは簡単ですね。 Here you can see a screenshot of VIM with ConqueGDB working.