regtest + debug

This commit is contained in:
Stefan Liebl 2024-09-10 09:32:21 +02:00
parent cd0581a95e
commit 88222b2dbe
2 changed files with 7 additions and 9 deletions

View File

@ -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()} set titlestring=%<%t\ (%{expand('%:p:h')})%=project:\ %{g:project_type}\ \ \ \ compiler:\ %{g:Compiler_version()}
let g:DeviceIP = 'dlc_pro__040083' let g:DeviceIP = 'dlc_pro__040083'
let g:DebugRemote = v:true let g:DebugRemote = v:true
if (g:project_type == 'dlcpro-new') let g:ProjectBuildDir = s:ProjectSrcDir.'/.build/'.g:project_type
let g:ProjectBuildDir = s:ProjectSrcDir.'/.build/dlcpro-new' " FIXME: get from ??? " if (g:project_type == 'dlcpro-new')
let g:termdebugger = 'arm-v7a-linux-gnueabihf-gdb' " FIXME: get from ??? let g:termdebugger = 'arm-v7a-linux-gnueabihf-gdb' " FIXME: get from ???
else " else
let g:ProjectBuildDir = s:ProjectSrcDir.'/.build/dlcpro' " FIXME: get from ??? " let g:termdebugger = 'arm-cortexa8-linux-gnueabi-gdb' " FIXME: get from ???
let g:termdebugger = 'arm-cortexa8-linux-gnueabi-gdb' " FIXME: get from ??? " endif
endif
let s:gdb_connect_script = g:ProjectBuildDir.'/gdb-connect.txt' let s:gdb_connect_script = g:ProjectBuildDir.'/gdb-connect.txt'
elseif ((g:project_type == 'dlcpro-tui') || (g:project_type == 'dlcpro-tui-simulator')) elseif ((g:project_type == 'dlcpro-tui') || (g:project_type == 'dlcpro-tui-simulator'))
let s:Program = '/user-interface/src/user-interface' let s:Program = '/user-interface/src/user-interface'
@ -425,7 +424,7 @@ function! s:DlcproRegtest(test_cmd)
\.' -e' \.' -e'
\.' regtest' \.' regtest'
\.' --device-ip='.g:DeviceIP \.' --device-ip='.g:DeviceIP
\.' --laser-type=DL-CBCpro' \.' --laser1-type=DL-CBCpro'
let regtest_cmd .= ' --marks="'.g:DlcproRegtest_marks.'"' let regtest_cmd .= ' --marks="'.g:DlcproRegtest_marks.'"'
if g:DlcproRegtest_fast_restart == 1 if g:DlcproRegtest_fast_restart == 1
let regtest_cmd .= ' --fast-restart' let regtest_cmd .= ' --fast-restart'

View File

@ -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_binary_path = exepath('clangd-13')
let g:ycm_clangd_uses_ycmd_caching = 0 " Let clangd fully control code completion 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', '--enable-config']
let g:ycm_clangd_args = ['--all-scopes-completion', '--header-insertion=iwyu', '--suggest-missing-includes', '--enable-config']
" use tt for YCM GoTo " use tt for YCM GoTo
nnoremap tt :YcmCompleter GoTo<CR> nnoremap tt :YcmCompleter GoTo<CR>