home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.1.367 < prev    next >
Encoding:
Internet Message Format  |  2003-03-07  |  2.4 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.367
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.1.367 (depends on 6.1.365)
  11. Problem:    Setting a breakpoint in a function doesn't work.  For a sourced
  12.         file it doesn't work when symbolic links are involved.  (Servatius
  13.         Brandt)
  14. Solution:   Expand the file name in the same way as do_source() does.  Don't
  15.         prepend the path to a function name.
  16. Files:        src/ex_cmds2.c
  17.  
  18.  
  19. *** ../vim61.366/src/ex_cmds2.c    Mon Mar  3 20:17:02 2003
  20. --- src/ex_cmds2.c    Sat Mar  8 15:13:45 2003
  21. ***************
  22. *** 293,298 ****
  23. --- 293,299 ----
  24.       char_u    *arg;
  25.   {
  26.       char_u    *p = arg;
  27. +     char_u    *q;
  28.       struct debuggy *bp;
  29.   
  30.       if (ga_grow(&dbg_breakp, 1) == FAIL)
  31. ***************
  32. *** 327,333 ****
  33.       EMSG2(_(e_invarg2), arg);
  34.       return FAIL;
  35.       }
  36. !     if ((bp->dbg_name = FullName_save(p, FALSE)) == NULL)
  37.       return FAIL;
  38.       return OK;
  39.   }
  40. --- 328,365 ----
  41.       EMSG2(_(e_invarg2), arg);
  42.       return FAIL;
  43.       }
  44. !     if (bp->dbg_type == DBG_FUNC)
  45. !     bp->dbg_name = vim_strsave(p);
  46. !     else
  47. !     {
  48. !     /* Expand the file name in the same way as do_source().  This means
  49. !      * doing it twice, so that $DIR/file gets expanded when $DIR is
  50. !      * "~/dir". */
  51. ! #ifdef RISCOS
  52. !     q = mch_munge_fname(p);
  53. ! #else
  54. !     q = expand_env_save(p);
  55. ! #endif
  56. !     if (q == NULL)
  57. !         return FAIL;
  58. ! #ifdef RISCOS
  59. !     p = mch_munge_fname(q);
  60. ! #else
  61. !     p = expand_env_save(q);
  62. ! #endif
  63. !     vim_free(q);
  64. !     if (p == NULL)
  65. !         return FAIL;
  66. !     bp->dbg_name = fix_fname(p);
  67. !     vim_free(p);
  68. ! #ifdef MACOS_CLASSIC
  69. !     if (bp->dbg_name != NULL)
  70. !         slash_n_colon_adjust(bp->dbg_name);
  71. ! #endif
  72. !     }
  73. !     if (bp->dbg_name == NULL)
  74.       return FAIL;
  75.       return OK;
  76.   }
  77. *** ../vim61.366/src/version.c    Sat Mar  8 20:33:33 2003
  78. --- src/version.c    Sat Mar  8 20:54:16 2003
  79. ***************
  80. *** 613,614 ****
  81. --- 613,616 ----
  82.   {   /* Add new patch number below this line */
  83. + /**/
  84. +     367,
  85.   /**/
  86.  
  87. -- 
  88. Imagine a world without hypothetical situations.
  89.  
  90.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  91. ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
  92. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  93.  \\\     Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
  94.