1 diff -Nru gdbmgr/autoload/gdbmgr.vim gdbmgr-fix//autoload/gdbmgr.vim
2 --- gdbmgr/autoload/gdbmgr.vim 2010-11-24 01:16:17.000000000 +0800
3 +++ gdbmgr-fix//autoload/gdbmgr.vim 2011-08-16 13:54:40.259742496 +0800
5 " save user's options and maps
6 call s:GdbMgrOptionSave()
8 - let curfile= expand(a:1)
9 + let curfile= getcwd()."/".expand(a:1)
11 - let curfile= expand("%")
12 + let curfile= expand("%:p")
15 " examine the command line arguments, if any
16 @@ -3333,10 +3333,10 @@
17 " :DI pgmname core... :DI winctrl pgmname core...
18 if curfile != '--attaching--'
19 " call Decho("initialization: is curfile<".curfile."> executable? ------------------")
20 - if executable(substitute(curfile,'\.[^.]\+$','','')) && !isdirectory(curfile)
21 + if executable(substitute(curfile,'\.[^./]\+$','','')) && !isdirectory(curfile)
22 " if current file, less its suffix, is executable, assume that the "curfile" is the program to be debugged
23 " call Decho("case: curfile<".curfile."> is executable")
24 - let gdbcmd= substitute(curfile,'\.[^.]\+$','','')
25 + let gdbcmd= substitute(curfile,'\.[^./]\+$','','')
26 " call Decho("curfile<".curfile."> is executable, assuming its the pgm to be debugged")
28 " call Decho("case: curfile<".curfile."> is not executable")