comparison src/os_unix.c @ 758:d591d4ceeaee

updated for version 7.0224
author vimboss
date Tue, 14 Mar 2006 23:00:46 +0000
parents b526e10493b1
children 335444c09581
comparison
equal deleted inserted replaced
757:8b0484fd9119 758:d591d4ceeaee
927 927
928 #ifdef HAVE_STACK_LIMIT 928 #ifdef HAVE_STACK_LIMIT
929 /* Since we are now using the signal stack, need to reset the stack 929 /* Since we are now using the signal stack, need to reset the stack
930 * limit. Otherwise using a regexp will fail. */ 930 * limit. Otherwise using a regexp will fail. */
931 get_stack_limit(); 931 get_stack_limit();
932 #endif
933
934 #if 0
935 /* This is for opening gdb the moment Vim crashes.
936 * You need to manually adjust the file name and Vim executable name.
937 * Suggested by SungHyun Nam. */
938 {
939 # define VI_GDB_FILE "/tmp/vimgdb"
940 # define VIM_NAME "/usr/bin/vim"
941 FILE *fp = fopen(VI_GDB_FILE, "w");
942 if (fp)
943 {
944 fprintf(fp,
945 "file %s\n"
946 "attach %d\n"
947 "set height 1000\n"
948 "bt full\n"
949 , VIM_NAME, getpid());
950 fclose(fp);
951 system("xterm -e gdb -x "VI_GDB_FILE);
952 unlink(VI_GDB_FILE);
953 }
954 }
932 #endif 955 #endif
933 956
934 #ifdef SIGHASARG 957 #ifdef SIGHASARG
935 /* try to find the name of this signal */ 958 /* try to find the name of this signal */
936 for (i = 0; signal_info[i].sig != -1; i++) 959 for (i = 0; signal_info[i].sig != -1; i++)