Fix for line stops in GDB.
Apperantly GDB changed the format, so Vebugger was changed to reflect that.
This commit is contained in:
parent
5036961da9
commit
f51ff80896
@ -72,21 +72,14 @@ endfunction
|
|||||||
|
|
||||||
function! s:readWhere(pipeName,line,readResult,debugger)
|
function! s:readWhere(pipeName,line,readResult,debugger)
|
||||||
if 'out'==a:pipeName
|
if 'out'==a:pipeName
|
||||||
let l:matches=matchlist(a:line,'\v^\~"#(\d+)\s+(.+)\s+\(.*\)\s+at\s+([^:]+):(\d+)')
|
"let l:matches=matchlist(a:line,'\v^\~"#(\d+)\s+(.+)\s+\(.*\)\s+at\s+([^:]+):(\d+)')
|
||||||
if 4<len(l:matches)
|
let l:matches=matchlist(a:line,'\v^\*stopped.*fullname\=\"([^"]+)\",line\=\"(\d+)"')
|
||||||
let l:file=l:matches[3]
|
if 2<len(l:matches)
|
||||||
|
let l:file=l:matches[1]
|
||||||
let l:file=fnamemodify(l:file,':~:.')
|
let l:file=fnamemodify(l:file,':~:.')
|
||||||
let l:frameNumber=str2nr(l:matches[1])
|
let a:readResult.std.location={
|
||||||
if 0==l:frameNumber " first stackframe is the current location
|
|
||||||
let a:readResult.std.location={
|
|
||||||
\'file':(l:file),
|
|
||||||
\'line':str2nr(l:matches[4])}
|
|
||||||
endif
|
|
||||||
let a:readResult.std.callstack={
|
|
||||||
\'clearOld':('0'==l:frameNumber),
|
|
||||||
\'add':'after',
|
|
||||||
\'file':(l:file),
|
\'file':(l:file),
|
||||||
\'line':str2nr(l:matches[4])}
|
\'line':str2nr(l:matches[2])}
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user