Skip to content

Commit

Permalink
- Use abs_path or gdb gets cranky
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9038 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed May 18, 2011
1 parent d201103 commit 5bf4aee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Compiler/scripts/convert_lines.pl
Expand Up @@ -7,8 +7,8 @@
# -- martin.sjolund@liu.se

use Cwd;
#use Cwd 'abs_path';
use File::Spec;
use Cwd 'abs_path';
#use File::Spec;

sub trim{
my $string = shift;
Expand All @@ -30,8 +30,8 @@ sub trim{
# regex is fun
if ($trimmedLine =~ /^ *..#modelicaLine .([A-Za-z.\/]*):([0-9]*):[0-9]*-[0-9]*:[0-9]*...$/) {
eval {
$inStmtFile = File::Spec->rel2abs($1); # Absolute paths makes GDB a _lot_ happier;
#$inStmtFile = abs_path($1); # Absolute paths makes GDB a _lot_ happier;
#$inStmtFile = File::Spec->rel2abs($1); # Absolute paths makes GDB a _lot_ happier;
$inStmtFile = abs_path($1); # Absolute paths makes GDB a _lot_ happier;
};
if ($@) {
$dir = getcwd();
Expand Down

0 comments on commit 5bf4aee

Please sign in to comment.