Merge pull request #68 from kyouryuukunn/develop
Fixed windows path problem
This commit is contained in:
commit
a307f84680
@ -127,7 +127,7 @@ function! vebugger#gdb#_readWhere(pipeName,line,readResult,debugger)
|
|||||||
if 'out'==a:pipeName
|
if 'out'==a:pipeName
|
||||||
let l:matches=matchlist(a:line,'\v^\*stopped.*fullname\=\"([^"]+)\",line\=\"(\d+)"')
|
let l:matches=matchlist(a:line,'\v^\*stopped.*fullname\=\"([^"]+)\",line\=\"(\d+)"')
|
||||||
if 2<len(l:matches)
|
if 2<len(l:matches)
|
||||||
let l:file=l:matches[1]
|
let l:file=has('win32') ? substitute(l:matches[1], '\\\\', '\\', 'g') : l:matches[1]
|
||||||
let l:file=fnamemodify(l:file,':p')
|
let l:file=fnamemodify(l:file,':p')
|
||||||
let a:readResult.std.location={
|
let a:readResult.std.location={
|
||||||
\'file':(l:file),
|
\'file':(l:file),
|
||||||
|
Loading…
Reference in New Issue
Block a user