From 88222b2dbebd0961b11e92df76188bd1953f8c3b Mon Sep 17 00:00:00 2001 From: Stefan Liebl Date: Tue, 10 Sep 2024 09:32:21 +0200 Subject: [PATCH] regtest + debug --- vimfiles.stefan/plugin/toptica.vim | 13 ++++++------- vimfiles.stefan/vimrc | 3 +-- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/vimfiles.stefan/plugin/toptica.vim b/vimfiles.stefan/plugin/toptica.vim index b20bf18..fc1b306 100644 --- a/vimfiles.stefan/plugin/toptica.vim +++ b/vimfiles.stefan/plugin/toptica.vim @@ -103,13 +103,12 @@ function! s:ProjectSet(project_type, project_base_dir) set titlestring=%<%t\ (%{expand('%:p:h')})%=project:\ %{g:project_type}\ \ \ \ compiler:\ %{g:Compiler_version()} let g:DeviceIP = 'dlc_pro__040083' let g:DebugRemote = v:true - if (g:project_type == 'dlcpro-new') - let g:ProjectBuildDir = s:ProjectSrcDir.'/.build/dlcpro-new' " FIXME: get from ??? + let g:ProjectBuildDir = s:ProjectSrcDir.'/.build/'.g:project_type + " if (g:project_type == 'dlcpro-new') let g:termdebugger = 'arm-v7a-linux-gnueabihf-gdb' " FIXME: get from ??? - else - let g:ProjectBuildDir = s:ProjectSrcDir.'/.build/dlcpro' " FIXME: get from ??? - let g:termdebugger = 'arm-cortexa8-linux-gnueabi-gdb' " FIXME: get from ??? - endif + " else + " let g:termdebugger = 'arm-cortexa8-linux-gnueabi-gdb' " FIXME: get from ??? + " endif let s:gdb_connect_script = g:ProjectBuildDir.'/gdb-connect.txt' elseif ((g:project_type == 'dlcpro-tui') || (g:project_type == 'dlcpro-tui-simulator')) let s:Program = '/user-interface/src/user-interface' @@ -425,7 +424,7 @@ function! s:DlcproRegtest(test_cmd) \.' -e' \.' regtest' \.' --device-ip='.g:DeviceIP - \.' --laser-type=DL-CBCpro' + \.' --laser1-type=DL-CBCpro' let regtest_cmd .= ' --marks="'.g:DlcproRegtest_marks.'"' if g:DlcproRegtest_fast_restart == 1 let regtest_cmd .= ' --fast-restart' diff --git a/vimfiles.stefan/vimrc b/vimfiles.stefan/vimrc index 898eb26..a563bda 100644 --- a/vimfiles.stefan/vimrc +++ b/vimfiles.stefan/vimrc @@ -325,8 +325,7 @@ let g:clang_format#enable_fallback_style = 0 " ------------- "let g:ycm_clangd_binary_path = exepath('clangd-13') let g:ycm_clangd_uses_ycmd_caching = 0 " Let clangd fully control code completion -"let g:ycm_clangd_args = ['--all-scopes-completion', '--clang-tidy', '--header-insertion=iwyu', '--suggest-missing-includes', '--enable-config'] -let g:ycm_clangd_args = ['--all-scopes-completion', '--header-insertion=iwyu', '--suggest-missing-includes', '--enable-config'] +let g:ycm_clangd_args = ['--all-scopes-completion', '--header-insertion=iwyu', '--enable-config'] " use tt for YCM GoTo nnoremap tt :YcmCompleter GoTo