Skip to content

Commit

Permalink
- fix the debugger on Windows: the filenames changed to form: X:/path…
Browse files Browse the repository at this point in the history
…/to/file.mo instead of X:\path\to\file.mo due to some changes on handling realpath.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20094 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Apr 10, 2014
1 parent 80dc8da commit 4c5375f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/runtime/printimpl.c
Expand Up @@ -392,10 +392,10 @@ static int PrintImpl__writeBufConvertLines(threadData_t *threadData,const char *
/*#modelicaLine [/path/to/a.mo:4:3-4:12]*/
/*#endModelicaLine*/
/* which on Windows is (N is the drive letter): */
/*#modelicaLine [N:\path\to\a.mo:4:3-4:12]*/
/*#modelicaLine [N:/path/to/a.mo:4:3-4:12]*/
/*#endModelicaLine*/
#if defined(__MINGW32__) || defined(_MSC_VER)
const char *re_str[2] = {"^ */[*]#modelicaLine .(.:\\\\[^:]*):([0-9]*):[0-9]*-[0-9]*:[0-9]*.[*]/$", "^ */[*]#endModelicaLine[*]/$"};
const char *re_str[2] = {"^ */[*]#modelicaLine .(.:/[^:]*):([0-9]*):[0-9]*-[0-9]*:[0-9]*.[*]/$", "^ */[*]#endModelicaLine[*]/$"};
#else /* real OSes */
const char *re_str[2] = {"^ */[*]#modelicaLine .([^:]*):([0-9]*):[0-9]*-[0-9]*:[0-9]*.[*]/$", "^ */[*]#endModelicaLine[*]/$"};
#endif
Expand Down

0 comments on commit 4c5375f

Please sign in to comment.