Fixed GDB's value setting problem
This commit is contained in:
parent
1688d04f24
commit
823bcb9c35
@ -124,13 +124,8 @@ endfunction
|
|||||||
function! s:executeStatements(writeAction,debugger)
|
function! s:executeStatements(writeAction,debugger)
|
||||||
for l:evalAction in a:writeAction
|
for l:evalAction in a:writeAction
|
||||||
if has_key(l:evalAction,'statement')
|
if has_key(l:evalAction,'statement')
|
||||||
let l:statement=l:evalAction.statement
|
"Use eval to run the statement - but first we need to remove the ;
|
||||||
let l:statement=substitute(l:statement,'\v;\s*$','','') "remove trailing `;`
|
call a:debugger.writeLine('print '.substitute(l:evalAction.statement,'\v;\s*$','',''))
|
||||||
if l:statement=~'\v^[^(]+\=.+'
|
|
||||||
call a:debugger.writeLine('set '.l:statement)
|
|
||||||
else
|
|
||||||
call a:debugger.writeLine('call '.l:statement)
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user