summarylogtreecommitdiffstats
path: root/gdbmgr.diff
diff options
context:
space:
mode:
authorMatthias Devlamynck2015-06-12 21:34:00 +0200
committerMatthias Devlamynck2015-06-12 21:34:37 +0200
commit25fa7564fce25bcd30389c8c7caba1944ac87715 (patch)
treea66b50d1a4c14a66117f13375826b27e315d01cb /gdbmgr.diff
downloadaur-25fa7564fce25bcd30389c8c7caba1944ac87715.tar.gz
Initial Commit, import package
Diffstat (limited to 'gdbmgr.diff')
-rwxr-xr-xgdbmgr.diff28
1 files changed, 28 insertions, 0 deletions
diff --git a/gdbmgr.diff b/gdbmgr.diff
new file mode 100755
index 00000000000..f7b7b7a24cd
--- /dev/null
+++ b/gdbmgr.diff
@@ -0,0 +1,28 @@
+diff -Nru gdbmgr/autoload/gdbmgr.vim gdbmgr-fix//autoload/gdbmgr.vim
+--- gdbmgr/autoload/gdbmgr.vim 2010-11-24 01:16:17.000000000 +0800
++++ gdbmgr-fix//autoload/gdbmgr.vim 2011-08-16 13:54:40.259742496 +0800
+@@ -3322,9 +3322,9 @@
+ " save user's options and maps
+ call s:GdbMgrOptionSave()
+ if a:0 > 0
+- let curfile= expand(a:1)
++ let curfile= getcwd()."/".expand(a:1)
+ else
+- let curfile= expand("%")
++ let curfile= expand("%:p")
+ endif
+
+ " examine the command line arguments, if any
+@@ -3333,10 +3333,10 @@
+ " :DI pgmname core... :DI winctrl pgmname core...
+ if curfile != '--attaching--'
+ " call Decho("initialization: is curfile<".curfile."> executable? ------------------")
+- if executable(substitute(curfile,'\.[^.]\+$','','')) && !isdirectory(curfile)
++ if executable(substitute(curfile,'\.[^./]\+$','','')) && !isdirectory(curfile)
+ " if current file, less its suffix, is executable, assume that the "curfile" is the program to be debugged
+ " call Decho("case: curfile<".curfile."> is executable")
+- let gdbcmd= substitute(curfile,'\.[^.]\+$','','')
++ let gdbcmd= substitute(curfile,'\.[^./]\+$','','')
+ " call Decho("curfile<".curfile."> is executable, assuming its the pgm to be debugged")
+ else
+ " call Decho("case: curfile<".curfile."> is not executable")