fix pyclewn

This commit is contained in:
Stefan Liebl 2016-10-06 13:49:58 +02:00
parent abf210c9e5
commit 51cf9a1431
2 changed files with 5 additions and 9 deletions

View File

@ -49,8 +49,7 @@ function s:init(debugger)
let s:args .= " --level=info" let s:args .= " --level=info"
endif endif
" Liebl: add --pgm let l:fixed_args = "--editor= --netbeans=" . s:connection . " --cargs="
let l:fixed_args = "--editor= --netbeans=" . s:connection . " --pgm=/opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabi/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/arm-cortexa8-linux-gnueabi-gdb " . " --cargs="
if s:terminal != "" if s:terminal != ""
let s:fixed = l:fixed_args let s:fixed = l:fixed_args
else else

View File

@ -14,6 +14,7 @@ function s:ProjectDlcproSet()
let g:GdbHost = 'dlcpro_stefan' let g:GdbHost = 'dlcpro_stefan'
let g:GdbPort = '2345' let g:GdbPort = '2345'
let s:GdbSlave = '~/tools/gdb-slave.sh' let s:GdbSlave = '~/tools/gdb-slave.sh'
let g:GdbPath = '/opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabi/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/arm-cortexa8-linux-gnueabi-gdb'
set spell spelllang=en,de set spell spelllang=en,de
set expandtab set expandtab
set cinoptions=:2,=2,l1,g2,h2,N-2,t0,+0,(0,w1,Ws,m1,)100,*100 set cinoptions=:2,=2,l1,g2,h2,N-2,t0,+0,(0,w1,Ws,m1,)100,*100
@ -43,13 +44,6 @@ function s:ProjectDlcproSet()
\'!~/tools/vimsuite/vimfiles.YouCompleteMe/*', \'!~/tools/vimsuite/vimfiles.YouCompleteMe/*',
\] \]
" GdbFromVim plugin
let g:gdb_from_vim_log = 1
let g:gdb_from_vim_path = '/opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabi/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/arm-cortexa8-linux-gnueabi-gdb'
" DlcPro configuration
let g:gdb_slave_script = '~/tools/gdb-slave.sh'
endfunction endfunction
" ==== " ====
@ -94,11 +88,14 @@ endfunction
function DlcProDebug(program) function DlcProDebug(program)
DlcProFirmwareDebug DlcProFirmwareDebug
let g:pyclewn_terminal = 'konsole, -e' let g:pyclewn_terminal = 'konsole, -e'
let g:pyclewn_args = '--pgm='.g:GdbPath
Pyclewn gdb Pyclewn gdb
Cmapkeys Cmapkeys
sleep 1 sleep 1
execute 'Ctarget remote ' g:GdbHost.':'.g:GdbPort execute 'Ctarget remote ' g:GdbHost.':'.g:GdbPort
sleep 1 sleep 1
execute 'Cfile ' g:Program execute 'Cfile ' g:Program
" sleep 1
" execute 'C set sysroot '.s:ProjectBuildDir.'/dlcpro-sdk/sysroot-target'
" Ccontinue " Ccontinue
endfunction endfunction