From 1f2553a71bd69b70fdc714f06d0e15fd03591297 Mon Sep 17 00:00:00 2001 From: Ingo Heimbach Date: Mon, 25 Jun 2018 16:15:41 +0200 Subject: [PATCH] Transform filenames to absolute paths when reading debugger locations Before this commit, many debugger `where` functions transformed the filename of the current debugger location to a path relative to vim's current working directory. When the user changed the current working directory in the meantime, the previously saved location could not resolved any more and lead to errors. This commit fixes this problem by storing absolute paths instead. --- autoload/vebugger/gdb.vim | 2 +- autoload/vebugger/jdb.vim | 2 +- autoload/vebugger/lldb.vim | 2 +- autoload/vebugger/mdbg.vim | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/vebugger/gdb.vim b/autoload/vebugger/gdb.vim index f94ddce..1298e83 100644 --- a/autoload/vebugger/gdb.vim +++ b/autoload/vebugger/gdb.vim @@ -128,7 +128,7 @@ function! vebugger#gdb#_readWhere(pipeName,line,readResult,debugger) let l:matches=matchlist(a:line,'\v^\*stopped.*fullname\=\"([^"]+)\",line\=\"(\d+)"') if 2