Is lldb working with fortran?

Viewed 1479

I am trying to breakpoint a fortran program with lldb on a Mac OS 10.12.5 system. I have

program badcall
      integer a,b
      a=2
      b=3

write(*,*) a, b
end

I (have to) compile with the intel compilers.

ifort -g badcall.f90 -o badcall

then I run with lldb and do

breakpoint set -f badcall.f90 -l 5

programs stops normally

Process 59474 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x0000000100000f35 prova`MAIN__ at badcall.f90:6
   3          a=2
   4          b=3
   5          

However if I then try to print the variable b I get nothing

(lldb) p b
(lldb) print b
(lldb) q

So am I missing something? Is lldb really usable to debug fortran code?

1 Answers
Related